Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

how to check in python if a pixel in an image is of a specific color? (other than black and white for grey image)

Example image:

image description

Here I want to check if a pixel of green color.

Only getting a BGR value from a pixel and changing it is mentioned here in the Basic Operations on Images in python

What will be the python command that I would have to use to check a pixel?

how to check in python if a pixel in an image is of a specific color? (other than black and white for grey image)

Example image:

image description

Here I want to check if a pixel is of green color.

Only getting a BGR value from a pixel and changing it is mentioned here in the Basic Operations on Images in python

What will be the python command that I would have to use to check a pixel?