Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2006-12

Reading text from images

6 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Antal

Does anybody have an idea about how to read text from an image, using freepascal?
There are lots of fonts, and so on, but it would be rather interesting to make able fpc to read from jpegs or gifs, since on the net there is so much information stored in images.

Darius Blaszijk
to Antal

This technique is called OCR. No idea if there is a pascal implementation, but it should not be too hard to make one. It's based on neural networks that "learn" to recognize any character from any font.

Darius

Earlier message 15 lines
----- Original Message ----- From: "Antal" To: Sent: Saturday, December 09, 2006 3:09 PM Subject: [fpc-pascal] Reading text from images > Does anybody have an idea about how to read text from an image, using > freepascal? > There are lots of fonts, and so on, but it would be rather interesting to > make able fpc to read from jpegs or gifs, since on the net there is so > much information stored in images. > _______________________________________________ > fpc-pascal maillist - > http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Adrian Maier
to Darius Blaszijk
Darius Blaszijk wrote
This technique is called OCR. No idea if there is a pascal implementation, but it should not be too hard to make one. It's based on neural networks that "learn" to recognize any character from any font.

Hi,
There is little use in reinventing the wheel and implement ocr from scratch.

I think the best way is to use an existing software from fpc , for example GOCR:
http://jocr.sourceforge.net/

GOCR is based on a shared library, which means that it shouldn't be difficult to
call the functions from freepascal.

Cheers,
Adrian Maier

Show quoted text 22 lines
Darius ----- Original Message ----- From: "Antal" To: Sent: Saturday, December 09, 2006 3:09 PM Subject: [fpc-pascal] Reading text from images > Does anybody have an idea about how to read text from an image, using > freepascal? > There are lots of fonts, and so on, but it would be rather interesting to > make able fpc to read from jpegs or gifs, since on the net there is so > much information stored in images. > _______________________________________________ > fpc-pascal maillist - > http://lists.freepascal.org/mailman/listinfo/fpc-pascal _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Adrian Maier
Marco van de Voort
to Adrian Maier
Show quoted text 15 lines
On 12/9/06, Darius Blaszijk wrote: > This technique is called OCR. No idea if there is a pascal implementation, > but it should not be too hard to make one. It's based on neural networks > that "learn" to recognize any character from any font. Hi, There is little use in reinventing the wheel and implement ocr from scratch. I think the best way is to use an existing software from fpc , for example GOCR: http://jocr.sourceforge.net/ GOCR is based on a shared library, which means that it shouldn't be difficult to call the functions from freepascal.

If it is C. If it is C++, it is a different story.

Adrian Maier
to Marco van de Voort
Marco van de Voort wrote 17 lines
> On 12/9/06, Darius Blaszijk wrote: > > This technique is called OCR. No idea if there is a pascal implementation, > > but it should not be too hard to make one. It's based on neural networks > > that "learn" to recognize any character from any font. > > Hi, > There is little use in reinventing the wheel and implement ocr from scratch. > > I think the best way is to use an existing software from fpc , for > example GOCR: > http://jocr.sourceforge.net/ > > GOCR is based on a shared library, which means that it shouldn't be > difficult to > call the functions from freepascal. If it is C. If it is C++, it is a different story.

I know that. But it seems to be C (even though it's not explicitly specified in the software description on their site).
http://jocr.sourceforge.net/api/dox/globals.html

Adrian Maier
Marc Santhoff
to Adrian Maier
Adrian Maier wrote 22 lines
On 12/13/06, Marco van de Voort wrote: > > On 12/9/06, Darius Blaszijk wrote: > > > This technique is called OCR. No idea if there is a pascal implementation, > > > but it should not be too hard to make one. It's based on neural networks > > > that "learn" to recognize any character from any font. > > > > Hi, > > There is little use in reinventing the wheel and implement ocr from scratch. > > > > I think the best way is to use an existing software from fpc , for > > example GOCR: > > http://jocr.sourceforge.net/ > > > > GOCR is based on a shared library, which means that it shouldn't be > > difficult to > > call the functions from freepascal. > > If it is C. If it is C++, it is a different story. I know that. But it seems to be C (even though it's not explicitly specified in the software description on their site). http://jocr.sourceforge.net/api/dox/globals.html

It is C, I've installed it here (not actually using it).

Besides that there are at least:

Ocrad: http://www.gnu.org/software/ocrad/ocrad.html Clara: http://www.claraocr.org/

HTH,
Marc