mirror of
https://github.com/elephantrobotics/mycobot_ros.git
synced 2026-07-05 19:47:04 +00:00
13 lines
184 B
Python
13 lines
184 B
Python
import cv2
|
|
|
|
|
|
cap = cv2.VideoCapture(0)
|
|
cap.set(3,640)
|
|
cap.set(4,480)
|
|
|
|
while cv2.waitKey(1)<0:
|
|
ret, frame = cap.read()
|
|
if not ret:
|
|
break
|
|
cv2.imshow('', frame)
|
|
|