OpenCV — is an open source computer vision library that works with many programming languages and provides a wide range of opportunities for understanding the subject of computer vision. In this example, we will be using OpenCV to open the system camera and capture video in two different colors.
Approach: with the libraries available in OpenCV-Python below, we will open two different windows, one of which will display live results from the camera in color and the other — in black and white (black and white).
The cv2 library is installed automatically when you install openCV. To install numpy, use the following command in a cmd / linux terminal:
pip install numpy