Convert OpenCV image to grayscale

Standard

ITo load an image or convert an OpenCV image in grayscale, simply use the code below:

OpenCV C++ image grayscale:

OpenCV Python image grayscale:

Altternatively, you can convert a color image to grayscale.

 

Output:

OpenCV Grayscale image cat

 

Leave a Reply