Professional Documents
Culture Documents
HAIDER ALI: 70067920: Task 1: Detect Color (Red, Green, Blue) Through Webcame in Python Using Open CV
HAIDER ALI: 70067920: Task 1: Detect Color (Red, Green, Blue) Through Webcame in Python Using Open CV
PROCEDURE:-
-Py modules
cv2.VideoCapture (0) method.
cv2.imshow () method.
read () method.
Inputs
The feature "Color Name Finder" provides the most common names of a color. It
finds color names for 3 types of input:
Color name from an image or a photo
Color name from a hex or an RGB code
Color name from a color picker
Uploading Image
To find the name of a color in an image, the cloud icon can be used to upload or
take a photo.
Once the image is loaded, clicking on the image areas will initiate the color name
identification. You can use the left mouse click to toggle between fixating and
releasing the target.
HAIDER ALI: 70067920
Since lighting conditions strongly affect the colors in an image, it is recommended
to take pictures in natural light to obtain the most representative color names.
Color Codes
The ArtyClick Color Name Finder can be used to find color names from hex or
RGB codes. The following color codes are supported:
Hex (e.g. "#FF0000" or "#FFF")
RGB (e.g. "RGB(255,0,0)")
The supported RGB codes correspond to the 24-bit system where each component
ranges between 0 and 255 (8-bit encoding)
Color Hue
Each color belongs to one of the 8 basic hues:
Red
Orange
Yellow
Green
Cyan (turquoise or aqua)
Blue
Purple (violet)
Magenta (bright pink)
More complex hues can be described as a composition of two hues, with one being
the primary and the other one the secondary hue.
Color Intensity
The color intensity is described using one of 7 the levels (ordered from the most to
the least saturated):
Vibrant
Moderate
Medium
Pastel
Pale
Almost none
None
The intensity is inversely proportional to the amount of grey in a color. Vibrant
colors are pure and only exhibit limited amounts of grey, while pastel and pale
colors are diluted with grey and are less poppy. Vibrant colors are usually used for
setting accents, while pastel and pale colors often appear in the background or in
unprocessed photos.
HAIDER ALI: 70067920
Human Skin
Encoded nonlinear RGB signal, commonly used in video coding and image
compression work.
constructed as a weighted sum of the RGB values, and two color difference
values Cr and Cb that are formed by subtracting luma from RGB red and
blue components
16 to 235 for Y, 16 to 240 for Cb and Cr
Skin pixels form a compact cluster in the Cb-Cr plane.