Answer the question
In order to leave comments, you need to log in
How in Delphi to compare two images (particularly faces)?
Hello colleagues!
There was such a problem, I get an image from the camera and save it, I need to make a program that compares the picture I took with the finished picture and check for similarity. Pixel is not an option because the differences between the images will be almost 100%. What other options are there?
Answer the question
In order to leave comments, you need to log in
Divide the image into parts and then compare the pixels as a percentage :)
Or a simpler option, compare only black pixels.
codepaste.ru/2765/delphiru.ru/graphics/182-compare-two-images
_
what are you photographing? perhaps, if it is text or documents, then it makes sense to recognize the text (it’s not so difficult to write according to the example of captcha recognition) and compare it character by character.
Recognizing text is not difficult if it is typed in a known font.
You select the area of the symbol based on the brightness (and it is very different in brightness from the paper) and compare it pixel by pixel with all the pictures of the letters of the font, first aligning it. The highest number of matches is likely to be the recognizable letter.
But your task is not the easiest =)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question