diff options
author | Timothy Knight <tknight@google.com> | 2014-08-11 21:35:44 -0700 |
---|---|---|
committer | Timothy Knight <tknight@google.com> | 2014-08-11 21:42:44 -0700 |
commit | 5890dfefe11d1c35a74cf82aa8a86b178d23300d (patch) | |
tree | 24d5c306b2a54aa37629f981564242475bb5c632 /apps | |
parent | 7c771b05e15b23c43f2e7a6c28333141e35000d4 (diff) | |
download | pdk-5890dfefe11d1c35a74cf82aa8a86b178d23300d.tar.gz |
CameraITS: Updated test_latching to use small frames
Change-Id: Ib09a15e528d1bc0c5d72aac14e0782f2f8749f19
Diffstat (limited to 'apps')
-rw-r--r-- | apps/CameraITS/tests/scene1/test_latching.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/CameraITS/tests/scene1/test_latching.py b/apps/CameraITS/tests/scene1/test_latching.py index 4b11aef..bc1cad7 100644 --- a/apps/CameraITS/tests/scene1/test_latching.py +++ b/apps/CameraITS/tests/scene1/test_latching.py @@ -32,6 +32,8 @@ def main(): NAME = os.path.basename(__file__).split(".")[0] with its.device.ItsSession() as cam: + props = cam.get_camera_properties() + _,fmt = its.objects.get_fastest_manual_capture_settings(props) e, s = its.target.get_target_exposure_combos(cam)["midExposureTime"] e = e / 2.0 @@ -56,7 +58,7 @@ def main(): its.objects.manual_capture_request(s, e*2, True), ] - caps = cam.do_capture(reqs) + caps = cam.do_capture(reqs, fmt) for i,cap in enumerate(caps): img = its.image.convert_capture_to_rgb_image(cap) its.image.write_image(img, "%s_i=%02d.jpg" % (NAME, i)) |