diff options
author | Manel Caro <mcaro@iseebcn.com> | 2019-03-09 21:38:10 +0100 |
---|---|---|
committer | Manel Caro <mcaro@iseebcn.com> | 2019-03-10 11:25:47 +0100 |
commit | 7edd6c5f599533e67bdf494df13cab06d5995209 (patch) | |
tree | ed36d7f424d7535eff2bf5d089847dc1fe3a31be /test-cli/test/helpers/cv_display_test.py | |
parent | e4366bb1f2dc3a43a1289f6f76967f1005278954 (diff) | |
download | board-7edd6c5f599533e67bdf494df13cab06d5995209.zip board-7edd6c5f599533e67bdf494df13cab06d5995209.tar.gz board-7edd6c5f599533e67bdf494df13cab06d5995209.tar.bz2 |
Modify some Execution Tests and EEprom Support
- Change Board Model to IGEP0000
- Change Audio Test
- Change qbutton Test
- Change qScreen Test
- Added EEprom Support
Diffstat (limited to 'test-cli/test/helpers/cv_display_test.py')
-rw-r--r-- | test-cli/test/helpers/cv_display_test.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test-cli/test/helpers/cv_display_test.py b/test-cli/test/helpers/cv_display_test.py index 7321667..b54a698 100644 --- a/test-cli/test/helpers/cv_display_test.py +++ b/test-cli/test/helpers/cv_display_test.py @@ -1,7 +1,5 @@ import cv2 import numpy as np -import subprocess - @@ -17,9 +15,7 @@ def pattern_detect(cam_device=0): msg="0" # Capture the corresponding camera device [0,1] #capture = cv2.VideoCapture(0) - camid = subprocess.check_output("ls /dev/v4l/by-id/usb-Creative_Technology*", stderr=subprocess.STDOUT, shell=True) - camid = camid.decode('ascii').rstrip() - capture = cv2.VideoCapture(camid) + capture = cv2.VideoCapture("/dev/v4l/by-id/usb-Creative_Technology_Ltd._Live__Cam_Sync_HD_VF0770-video-index0") try: _, image = capture.read() except: @@ -145,3 +141,7 @@ def pattern_detect(cam_device=0): msg = "AVG BLUE COUNT FAIL" return msg return msg + + + + |