OpenCV webcam (Python)

Job ID: 34142696

Budget: $10 – $30 USD

Hi, for this project you need to have an external USB webcam.

I'm using this OpenCV webcam example:
https://www.geeksforgeeks.org/python-opencv-capture-video-from-camera/

It's working fine, but I need to edit it in such a way, that when I disconnect the USB camera, it will not crash (as that's what is happening now), just print "disconnected" to the console & when plugged back, it will continue running.
Related categories: Python OpenCV