H
H
hr_lolka2013-12-02 17:56:55
Delphi
hr_lolka, 2013-12-02 17:56:55

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

3 answer(s)
F
FedOTs, 2013-12-03
@FedOTs

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
_

V
vSLY, 2013-12-03
@vSLY

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 =)

_
_ _, 2013-12-03
@AMar4enko

You here habrahabr.ru/post/170909/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question