cuneiform-clvb

using CuneiForm ocr (puma.net), from command line.

v.99

install puma.net from http://pumanet.codeplex.com/
make sure you register apuma.net in the com server:

run as administrator:

regsvr32 "D:\apps\Puma.NET\COM Server\APuma.dll"

make sure dibapi.dll is in the exe folder.
you ll probably want to remove the reference to puma.net, and add it with your location of the file puma.net.dll
(use add reference, browse net assemblies in sharp develop 3.)

Or if you downloaded with gulmencoder:
-go to 'gulmencoder\apps\+puma.net\com server'
-right click on 1.register
-select 'run as administrator'


example:
cuneiform-clvb.exe -LoadImage="D:\image.png" -FileFormat=TxtAnsi -RecognizeToFileName="D:\image.txt" -EnableSpeller=true -Language=Croatian -AutoRotateImage=true

If you just drag and drop txt file, it will be converted to rtf using default options.

Options:

-LoadImage="d:\1.jpg"
input file.
puma.net accepts images in format: bmp, gif, exig, jpg, jpeg, png, tif, tiff.

-FileFormat="TxtAnsi"
Available output formats: TxtAscii, TxtAnsi, TxtKoi8, TxtIso, TabledTxtAnsi, RtfAnsi, HtmlAnsi, HtmlKoi8.

-RecognizeToFileName="d:\1.txt"
output filename. Does not set format automatically.
Use fileformat for that.

-Language="Croatian"
Available languages:
Bulgarian, Croatian, Czech, Danish, Digits, Dutch, English, Estonian, French, German, Hungarian, Italian, Lettish, Lithuanian, Polish, Portuguese, 
Romanian, Russian, RussianEnglish, Serbian, Slovenian, Spanish, Swedish, Ukrainian.

-CodePage=1250
default is 1251, try 1250. Does not seem to have much impact in the output of txt file.

-ScaleImage=120
default is 100%, no increase.
Could be usefull when recognizing small images.

-UnrecognizedChar="~"
Default.
Replace unrecognized characters with this character.

-CourierName="Courier New" 
This is default.
Name for courier font.

-SerifName="Times New Roman" 
This is default.
Name for serif font

-SansSerifName="Arial" 
This is default.
Name for sans serif font.

-DetectBold=false
Detect fonts as bold in input file. Value can be "true" or "false"

-DetectItalic=false
Detect fonts as italic in input file. Value can be "true" or "false"

-DetectSize=false 
Detect font size in input file. Value can be "true" or "false"

-AutoRotateImage=true
Autorotate image or not.

-ImproveDotMatrix=true
Use this for documents printed on matrix printer.

-ImproveFax100=true
Use this for documents received by fax.

-UseTextFormating=false 
Detect text format in image.
I suggest to use this with rtf format only.

-EnableSpeller=true
Useful for documents without specific words.

-OneColumnMode=true
Text is in one column

-PreserveLineBreaks=true
Preserver line breaks or not.
Not much diference?

-RecognizePictures=true
Recognize pictures in document or not.

-RecognizeTables=true 
Recognize tables in document or not.



Made in visual basic.net, using sharpdevelop3.
BSD Licence.

--
http://dbojan.tk

