mirror of
https://github.com/elephantrobotics/mycobot_ros.git
synced 2026-07-05 19:47:04 +00:00
8 lines
178 B
Python
Executable file
8 lines
178 B
Python
Executable file
import cv2 as cv
|
|
|
|
if __name__ == "__main__":
|
|
cap_num = 0
|
|
cap = cv.VideoCapture(cap_num)
|
|
while cv.waitKey(1)<0:
|
|
_, img = cap.read()
|
|
cv.imshow("", img)
|