Well, it's that time of the year (month/week/day) again !!
And here we are with another (not so) little module which adds OCR (Optical Character Recognition) capability to BlitzMax.
I know, I know... it's nothing to do with Games, but there just aren't that many game-related libraries out there... :-p
The module is BaH.tesseract, and it uses a lovely open-source library called Tesseract. (Thanks to xlsior for the heads-up, and nudging to get it done :-)
It claims OCR support of 6 languages as standard. English, German, French, Italian, Dutch and Spanish. I've only tried English so far, and it seems to work as intended.
It doesn't do page-layout recognition at all, so you'll need to sort that out yourself. Fortunately, you can choose a specific section of the page to process.
It takes a TPixmap as an image source, so you can use whatever image loader you like - The 2 examples provided use BaH.FreeImage to load some .tif images.
At its most basic, you can do this :
Still working on the documentation, but the engine itself is running on all three platforms!
(Was a right bugger to get it compiling in MinGW... yes, really!)
Currently available via SVN, at the usual place, until I get the docs finished. (after which time I will make a proper release)
As usual, any feedback is appreciated - Good/Bad/Ugly etc.
** Always on the lookout for any interesting non-GPL'd open-source libraries that might be fun for BlitzMax. **
:o)
And here we are with another (not so) little module which adds OCR (Optical Character Recognition) capability to BlitzMax.
I know, I know... it's nothing to do with Games, but there just aren't that many game-related libraries out there... :-p
The module is BaH.tesseract, and it uses a lovely open-source library called Tesseract. (Thanks to xlsior for the heads-up, and nudging to get it done :-)
It claims OCR support of 6 languages as standard. English, German, French, Italian, Dutch and Spanish. I've only tried English so far, and it seems to work as intended.
It doesn't do page-layout recognition at all, so you'll need to sort that out yourself. Fortunately, you can choose a specific section of the page to process.
It takes a TPixmap as an image source, so you can use whatever image loader you like - The 2 examples provided use BaH.FreeImage to load some .tif images.
At its most basic, you can do this :
Local s:String = Tess.Rect(pix)
Still working on the documentation, but the engine itself is running on all three platforms!
(Was a right bugger to get it compiling in MinGW... yes, really!)
Currently available via SVN, at the usual place, until I get the docs finished. (after which time I will make a proper release)
As usual, any feedback is appreciated - Good/Bad/Ugly etc.
** Always on the lookout for any interesting non-GPL'd open-source libraries that might be fun for BlitzMax. **
:o)