i am trying to create a simple face recoqnition program.could anyone tell me what the best way to scan a picture box for change in pixel colour from black to white or vica versa.
Printable View
i am trying to create a simple face recoqnition program.could anyone tell me what the best way to scan a picture box for change in pixel colour from black to white or vica versa.
Try a nested loop.
Check every 10 or 100 or so pixels accross, loop this going down the image, so you scan a matrix.
I think picture1.point will return the pixel colour.
Check if it has changed more than a certain amount. checking for any change at all may be over-sensitive, especially if it's something like a webcam.