diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/CameraITS/tests/scene1/test_param_noise_reduction.py | 7 | ||||
-rw-r--r-- | apps/CameraITS/tests/scene1/test_param_sensitivity.py | 5 | ||||
-rw-r--r-- | apps/CameraITS/tests/scene1/test_tonemap_sequence.py | 2 |
3 files changed, 4 insertions, 10 deletions
diff --git a/apps/CameraITS/tests/scene1/test_param_noise_reduction.py b/apps/CameraITS/tests/scene1/test_param_noise_reduction.py index cd77559..bef029e 100644 --- a/apps/CameraITS/tests/scene1/test_param_noise_reduction.py +++ b/apps/CameraITS/tests/scene1/test_param_noise_reduction.py @@ -33,8 +33,6 @@ def main(): """ NAME = os.path.basename(__file__).split(".")[0] - THRESHOLD_MIN_VARIANCE_RATIO = 0.7 - # List of variances for Y,U,V. variances = [[],[],[]] @@ -86,12 +84,11 @@ def main(): assert(nr_modes_reported == [0,1,2]) - # Check that the variance of the NR=0 image is much higher than for the + # Check that the variance of the NR=0 image is higher than for the # NR=1 and NR=2 images. for j in range(3): for i in range(1,3): - assert(variances[j][i] / variances[j][0] < - THRESHOLD_MIN_VARIANCE_RATIO) + assert(variances[j][i] < variances[j][0]) if __name__ == '__main__': main() diff --git a/apps/CameraITS/tests/scene1/test_param_sensitivity.py b/apps/CameraITS/tests/scene1/test_param_sensitivity.py index 43aec76..0d1b5eb 100644 --- a/apps/CameraITS/tests/scene1/test_param_sensitivity.py +++ b/apps/CameraITS/tests/scene1/test_param_sensitivity.py @@ -26,9 +26,6 @@ def main(): """ NAME = os.path.basename(__file__).split(".")[0] - # Pass/fail threshold. - THRESHOLD_MIN_DIFF = 0.02 - NUM_STEPS = 5 sensitivities = None @@ -65,7 +62,7 @@ def main(): # Test for pass/fail: check that each shot is brighter than the previous. for means in [r_means, g_means, b_means]: for i in range(len(means)-1): - assert(means[i+1] - means[i] > THRESHOLD_MIN_DIFF) + assert(means[i+1] > means[i]) if __name__ == '__main__': main() diff --git a/apps/CameraITS/tests/scene1/test_tonemap_sequence.py b/apps/CameraITS/tests/scene1/test_tonemap_sequence.py index 750c2cd..4f519cb 100644 --- a/apps/CameraITS/tests/scene1/test_tonemap_sequence.py +++ b/apps/CameraITS/tests/scene1/test_tonemap_sequence.py @@ -26,7 +26,7 @@ def main(): # There should be 3 identical frames followed by a different set of # 3 identical frames. MAX_SAME_DELTA = 0.01 - MIN_DIFF_DELTA = 0.20 + MIN_DIFF_DELTA = 0.10 with its.device.ItsSession() as cam: sens, exp_time, _,_,_ = cam.do_3a(do_af=False) |