OpenCV2: Access your USB camera in python

To access your USB camera on your laptop with the help of OpenCV2 in Python is a matter of a few lines of code. I tested it in Anaconda environment with Python 3.7. and OpenCV-4.1.1 library running on Win 10. I assume that you have a working Anaconda environment. Unless, please follow the official instructions…