summaryrefslogtreecommitdiff
path: root/test-cli/test/helpers/cv_display_test.py
diff options
context:
space:
mode:
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
+
+
+
+