I have the following question:
I have a script that I can select the coordinates of an area of an image:
Considering that I have a binária
( black and white ) image, how do I count the amount of black pixels in a certain area of that image.
For example, I want to know the amount of black pixels in the following image area:
{"se":[175,145],"sd":[229,145],"ie":[175,221],"id":[229,221]}
Any ideas how I can do this?