Color Spaces

Learn to distinguish between different color spaces in this lesson.

What is a color space?

A color space is a specific organization of color. It is a system of representing an array of pixel colors. There are several color spaces, such as BGR, grayscale, HSV, LAB, and many more. Here, we’ll learn to convert our image from one color space to another.

Convert from BGR to grayscale

Note: OpenCV reads the images in BGR format.

To convert the image to grayscale, we use the ...