pose_format.tensorflow.pose_body_test module

Classes:

TestTensorflowPoseBody([methodName])

TestsCases for the TensorflowPoseBody class.

class pose_format.tensorflow.pose_body_test.TestTensorflowPoseBody(methodName='runTest')[source]

Bases: TestCase

TestsCases for the TensorflowPoseBody class.

Methods:

test_tf_pose_body_zero_filled_fills_in_zeros()

Test the zero_filled method of TensorflowPoseBody class.

test_tf_pose_body_zero_filled_fills_in_zeros()[source]

Test the zero_filled method of TensorflowPoseBody class.

Test constructs a TensorflowPoseBody instance with specified fps, data (as a MaskedTensor), and confidence. It then calls zero_filled method and checks if data is filled with zeros.

Raises:

AssertionError – If sum of zero-filled body data is not equal to the expected sum.