OpenCV — is a library of programming functions mainly for real-time computer vision.
In this article, let’s create a window that will contain an RGB color palette with track stripes. By moving the trackbars, the RGB Colors value will change from 0 to 255. So using the same we can find a color with its RGB values.
Libraries needed: OpenCV Numpy
Fit:
Create a black window with three color channels at 512 x 512 resolution. Then create three trackbars & # 39; B & # 39; & # 39; G & # 39; & # 39; R & # 39; using the predefined functions of the OpenCV library. Set channel values from 0 to 255. Merges a black box with these colored trackbars.
image [:] = [blue, green, red]
|
Exit:
