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.circle() method
- Python | Background subtraction using OpenCV
- Python OpenCV | cv2.rectangle() method
- Image Registration using OpenCV | Python
- Image Resizing using OpenCV | Python
- Python OpenCV | cv2.imread() method
- Python OpenCV | cv2.line() method
- Reading an image in OpenCV using Python
- Circle Detection using OpenCV | Python
- Image Translation using OpenCV | Python
- Python | Play a video 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 firstname.lastname@example.org. 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.