tests.optical_flow_test module
Module for testing optical flow computations. Provides test cases for optical flow computation from pose landmarks data.
Classes:
|
Test cases for optical flow computation. |
- class tests.optical_flow_test.TestOpticalFlow(methodName='runTest')[source]
Bases:
TestCaseTest cases for optical flow computation.
Methods:
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.pngto validate the correctness of the omputed optical flow.- Raises:
AssertionError – If the computed optical flow visualization does not match the reference image.