6
I have the following question:
I have a script that can select the coordinates of an area of an image:
https://jsfiddle.net/zauk0qLk/2/
Whereas I have an image binária
(black and white), how do I count the amount of black pixels in a given 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 idea how I can do that?
I didn’t quite understand your tags. You want to count the dots with PHP or JS?
– Bacco
For me indifere, because I only need the return amount to handle in PHP, so it can be PHP or JS.
– gelopes