How Can We Help?

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);
Contact Us for FREE Consultation on Your OCR Project
=
Table of Contents

Title

Go to Top