diff options
Diffstat (limited to 'apps/CameraITS/tests/scene1/test_param_tonemap_mode.py')
-rw-r--r-- | apps/CameraITS/tests/scene1/test_param_tonemap_mode.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/CameraITS/tests/scene1/test_param_tonemap_mode.py b/apps/CameraITS/tests/scene1/test_param_tonemap_mode.py index cc7147a..fbd452c 100644 --- a/apps/CameraITS/tests/scene1/test_param_tonemap_mode.py +++ b/apps/CameraITS/tests/scene1/test_param_tonemap_mode.py @@ -13,15 +13,11 @@ # limitations under the License. import its.image +import its.caps import its.device import its.objects import its.target import os -import sys -import numpy -import Image -import math -import time import os.path def main(): @@ -41,6 +37,10 @@ def main(): LM1 = float(L-1) with its.device.ItsSession() as cam: + props = cam.get_camera_properties() + if not its.caps.compute_target_exposure(props): + print "Test skipped" + return e, s = its.target.get_target_exposure_combos(cam)["midExposureTime"] e /= 2 |