SimpleOCR:SDK Functions – CountPixelsImg
int CountPixelsImg(IMG * img)
Count the number of black pixels in an image.
Return Value
Number of black pixels in the image
Parameters
img
Pointer to an image of type IMG.
Example
IMG *img;
IMG *img2;
int count;
// Create an IMG
...
IMG2 = ExtractImgArea(img,x,y,w,h);
count = CountPixelsImg(img);