Summary
Workaround to reduce delay in launching third party USB Webcam when executing Face Recognition Python* Demo
Description
- Ran Face Recognition Python Demo in Windows:
python ./face_recognition_demo.py -i 0 -m_fd face-detection-retail-0004.xml -m_lm landmarks-regression-retail-0009.xml -m_reid face-reidentification-retail-0095.xml --verbose -fg face_gallery - Face Recognition Python Demo launches the camera immediately when using Logitech C270 HD Webcam and displays the output without issues.
- Face Recognition Python Demo takes 3 minutes to launch the camera and display the output when using the following webcams:
Resolution
Add OpenCV* Video I/O API backend such as Direct Show (cv2.CAP_DSHOW) in Line 147 images_capture.py
status = self.cap.open(int(input), cv2.CAP_DSHOW)