coneypo / Dlib_face_recognition_from_camera

Detect and recognize the faces from camera / 调用摄像头进行人脸识别,支持多张人脸同时识别
http://www.cnblogs.com/AdaminXie/p/9010298.html
MIT License
2.07k stars 572 forks source link

打开usb摄像头过程慢 #27

Closed qdushuaicao closed 3 years ago

qdushuaicao commented 4 years ago

我使用python3.8+opencv4,打开摄像头的过程大概20s左右, cap = cv2.VideoCapture(0) while True: ret, frame = cap.read() cv2.imshow("Video", frame)

读取内容

if cv2.waitKey(10) == ord("Q"):
    break

请问下,有没有快速启动摄像头的方式

coneypo commented 3 years ago

需要去看 OpenCV 下面 VideoCapture 的实现,估计是硬件的问题,我这边打开摄像头都在 1s 以内;