python实现调用笔记本摄像头
import cv2
# cv2.CAP_DSHOW 我调用系统摄像头需要的参数,网上cv2.VideoCapture(0)就可以,但我的不行
cap = cv2.VideoCapture(0, cv2.CAP_DSHOW)
flag = cap.isOpened()
while(flag):
#从摄像头读取图片
sucess,img
import cv2
# cv2.CAP_DSHOW 我调用系统摄像头需要的参数,网上cv2.VideoCapture(0)就可以,但我的不行
cap = cv2.VideoCapture(0, cv2.CAP_DSHOW)
flag = cap.isOpened()
while(flag):
#从摄像头读取图片
sucess,img