tests.optical_flow_test module

Module for testing optical flow computations. Provides test cases for optical flow computation from pose landmarks data.

Classes:

TestOpticalFlow([methodName])

Test cases for optical flow computation.

class tests.optical_flow_test.TestOpticalFlow(methodName='runTest')[source]

Bases: TestCase

Test cases for optical flow computation.

Methods:

test_optical_flow()

Tests optical flow from pose landmarks data and visualize the computed flow using a heatmap.

test_optical_flow()[source]

Tests optical flow from pose landmarks data and visualize the computed flow using a heatmap.

Compares the generated heatmap with the reference image provided in data/optical_flow.png to validate the correctness of the omputed optical flow.

Raises:

AssertionError – If the computed optical flow visualization does not match the reference image.