SimpleOCR:SDK Functions – CountPixelsImg

You are here:
< All Topics

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);
Previous SimpleOCR:SDK Functions -FixOrientationImg
Next SimpleOCR:SDK Functions – DelImage
Table of Contents
Contact Us for FREE Consultation on Your OCR Project
Go to Top