Add ITS Test to test Preview Stabilization
This CL adds 2 tests to ensure that enabling preview stabilization
has the intended effect in preview streams.
- test_preview_stabilization: Records a preview stream with preview
stabilization turned on to ensure that the movement in preview is less
than that recorded by the gyroscope.
- test_preview_stabilization_fov: Records a short video with preview
stabilization turned off and another with stabilization turned on. The
frames of the two videos are compared to ensure that the FoV loss is
less than 20%.
For devices that do not support preview stabilization, these tests are
skipped.
Bug: 211806326
Test: python tests/sensor_fusion/test_preview_stabilization.py -c config.yml
python tests/scene4/test_preview_stabilization_fov.py -c config.yml
Change-Id: Ife45079a29236dbc949d9c0d99d6bef68170c38a
7 files changed