summaryrefslogtreecommitdiff
path: root/test-cli/test/helpers/cv_display_test.py
diff options
context:
space:
mode:
authorManel Caro <mcaro@iseebcn.com>2019-03-09 21:38:10 +0100
committerManel Caro <mcaro@iseebcn.com>2019-03-09 21:38:10 +0100
commitfa1e1822769d735745869ef02671408d006f2b13 (patch)
treeed36d7f424d7535eff2bf5d089847dc1fe3a31be /test-cli/test/helpers/cv_display_test.py
parente4366bb1f2dc3a43a1289f6f76967f1005278954 (diff)
downloadboard-fa1e1822769d735745869ef02671408d006f2b13.zip
board-fa1e1822769d735745869ef02671408d006f2b13.tar.gz
board-fa1e1822769d735745869ef02671408d006f2b13.tar.bz2
Change some test
Update some tests
Diffstat (limited to 'test-cli/test/helpers/cv_display_test.py')
-rw-r--r--test-cli/test/helpers/cv_display_test.py10
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
+
+
+
+