OpenCV is a library of programming functions mainly aimed at real-time computer vision.
In this article, Let’s create a window which will contain RGB color palette with track bars. By moving the trackbars the value of RGB Colors will change b/w 0 to 255. So using the same, we can find the color with its RGB values.
Libraries needed: OpenCV Numpy
Create a black window with three color channels with resolution 512 x 512. Then create three ‘B’ ‘G’ ‘R’ trackbars using predefined functions of OpenCV library. Set the values of channels from 0 to 255. Merging the black window with these color trackbars.
Note: Above programs will not run on online IDE.
- Color Spaces in OpenCV | Python
- Detection of a specific color(blue here) using OpenCV with Python
- Opening multiple color windows to capture using OpenCV in Python
- Filter Color with OpenCV
- Python OpenCV | cv2.imwrite() method
- Image Processing without OpenCV | Python
- Python | Image blurring using OpenCV
- Python | Grayscaling of Images using OpenCV
- Python OpenCV | cv2.line() method
- Circle Detection using OpenCV | Python
- Python OpenCV | cv2.imshow() method
- Image Translation using OpenCV | Python
- Python | Play a video using OpenCV
- Cartooning an Image using OpenCV - Python
- Python | Smile detection using OpenCV
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.