comparing text in sequential images

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
jjanderson5
Posts: 3
Joined: 2015-07-09T06:53:23-07:00
Authentication code: 1151

comparing text in sequential images

Post by jjanderson5 »

Hi,

I am a total newbie to image processing and ImageMagick. I am a programmer with experience in C, C++, java and python, but have programmed in non-image based applications. I am working on a new web based application and have images containing text passing through the application. The nice thing is that the images are always the same size and in the same location and the text tends to be in the same location too. The bad thing, for me the programmer, is that I do not actually have the text available as text, and so I need an image processor.

So what am I looking for?

1) be able to extract text from localized areas
2) be able to compare 2 sequential images to determine what has changed in localized areas
3) must be able too both in less than 0.25 seconds

Question 1 - Is this doable with ImageMagick?

I assume the answer is, 'yes', but better to find out early if I am trying to do something unrealistic.

Question 2 - Where do I look for more information? (are there tutoritials? readme files? API documentation?)

If someone can point me in the right direction, I will be most appreciative.

Jim A.
jjanderson5
Posts: 3
Joined: 2015-07-09T06:53:23-07:00
Authentication code: 1151

Re: comparing text in sequential images

Post by jjanderson5 »

After posting, I walked the dog and while walking I realized there is one other thing that I am looking for.

3) I need to be able to capture images from the screen display.

I could use pointers on how to do this also.

Jim A.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: comparing text in sequential images

Post by snibgo »

ImageMagick does not contain OCR (Optical Character Recognition) functionality.
snibgo's IM pages: im.snibgo.com
jjanderson5
Posts: 3
Joined: 2015-07-09T06:53:23-07:00
Authentication code: 1151

Re: comparing text in sequential images

Post by jjanderson5 »

Thank you. That is good to know.

As part of the API, is there an ability to read the pixels from an image?

Jim
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: comparing text in sequential images

Post by snibgo »

Certainly, and much more. There are many APIs. I use the C API, known as MagickCore, to directly read and write pixels.

It seems your main requirement is to convert images to text. IM can't do that. It might be useful when preparing images for OCR.
snibgo's IM pages: im.snibgo.com
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: comparing text in sequential images

Post by Bonzo »

You could use compare to see the difference between images but I do not know if that will give you the information you want. Speed would probably depend on the type and size of the input images.
Post Reply