views:

167

answers:

4

I want to try to develop an trail application in which the first image containing the some text (suppose it may be "hello World") and that image I want to compare with another image (and suppose it is "hello"). The above image comparison, I want the output there is missing "World" text.

How I will do that?

+8  A: 

That won't be as easy as you might think. If the second image is an exact copy of the first, but cropped, you can create two bitarrays and see if they overlap. If they aren't, I suggest you look at this article about OCR. Either way, this is something that's very hard to do with code and if there is any other way, I suggest you take it.

Jouke van der Maas
@Jouke van der Maas, Thanks.Is not other simple way to searching the words lies on the image?
RRB
No, there isn't. That's why Captchas are so effective.
Jouke van der Maas
@Jouke van der Maas, Thanks.
RRB
+1  A: 

It sounds like you would want some kind of optical character recognition software. Use an OCR package to produce the text, then run a textual diff.

Mark Wilkins
Once you have a text file from OCR, consider a free diffing utility that shipped as part of TortoiseSVN. BeyondCompare is excellent too.
GregC
+4  A: 

The above suggestions are good if your images always contain text (to be OCRed). A more generic application would be to use a library like OpenCV - it gives you a number of ways of extracting features (edge, shape, color etc.) from the images and comparing them.

An even simpler method would be to use the OpenCV template matching method which "compares" one image (template) to another.

Since you are on C#, you should look at Emgu .NET wrapper for OpenCV.

Mikos