AspriseOCR wrapper dll/c# para ams

Desarrollo de aplicaciones de escritorio C#, c++, Java, Net, VB... y todos los frameworks y tecnologías relacionadas co este tipo de aplicaciones.
Buenas, el colega pavel lleva dandome la brasa con el tema del OCR un tiempo, sigo trabajando en las librerias de tesseract ocr que me parece el mejor sistema de ocr, pero de mientras publico esta prueba que hice con la libreria asprise ocr

son unas cuanta dll y tal, a tomar por culo no me apetece describirlas, son 4 funciones miradlas con process hacker...

HIDE: ON
Hidebb Message Hidden Description


ale jop
jajajaja ahi pabloko duro...

Bueno las funciones son estas:

Código: Seleccionar todo

index : 1	Name: OCR
 	Index: 3	Name: OCRBarCodes
 	Index: 4	Name: OCRpart
 	Index: 5	Name: OCRpartBarCodes
       [DllImport("AspriseOCR.dll", EntryPoint = "OCR")]
public static extern IntPtr OCR(string file, int type);

[DllImport("AspriseOCR.dll", EntryPoint = "OCRpart")]
static extern IntPtr OCRpart(string file, int type, int startX, int startY, int width, int height);

[DllImport("AspriseOCR.dll", EntryPoint = "OCRBarCodes")]
static extern IntPtr OCRBarCodes(string file, int type);

[DllImport("AspriseOCR.dll", EntryPoint = "OCRpartBarCodes")]
static extern IntPtr OCRpartBarCodes(string file, int type, int startX, int startY, int width, int height);


donde <int type> siempre puede ser -1 para autodetectar el formato de imagen, el resto del api es intuitivo
hala pavel ya lo tienes pesao  :) :) :) :) :)
really good work bro thanks a a LOT
Thank you
That is that i was wanted from a long time .!!!!!!! Thanks pabloko bro.

Thank you veryyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
Muchhhhhhhhhhhhhhhhhh.

I love you a lot !!!!!!

May allah live long you !
Is here any option to select my own font to fast and 100 % accurate recognition ?
pavel escribió:Is here any option to select my own font
No, there arent a way to use a font to text recognition almost with this library
to fast and 100 % accurate recognition ?
Thats just impossible, ocr'ing isnt a fast work because you need to process graphics and run a lot of tasks, you will never get a 100% accurancy with any OCR software, you should think that you need to take a look at documents to corrects faults.

No chance to use bangalesh with these libraries.

If you relly want to use ocr in that language you should use tesseract ocr, bangala language is only avalible in version 2.

Bangala ocr project use that tesseractv2lib, its written in c++/clr so it isnt a way to port that code to a plugin. You should think any way to use it like editing bangalaocr to read command line arguments, and dump the results out to a text file. You could use file.run with wait_for_return flag to use the app in your project.

Only little changes you might do in the clr code...
THANK you very much for again a nice reply bro. i am really sorry for wasting your valuable time pabloko bro. PLS don't mind for that.


hm i think you are right bro. its not possible.

but is there any way to training my ocr system?

i got a new one - xp idea ocr
on it i read there features and i see they give us a option to art my charter on training for recognition. THAT charter will be save as an image.
if you got free time pls can you check that SDK bro ? there also have full source of delphi5 and c and etc.

thanks in advanced.
sorry for my english
about 100% accurate i was wrong. I see most popular english ocr softwares can not do it also. LIKE abby ocr,simple ocr,new ocr etc.


but your sample can recognize 24 and 36 size font very fast well and 100% accurate!


thats a lot for me

thanks

has someone this examle also please ?

Is there anyone who has this example somewehere ?

Pabloko tienes algo de esto o chapamos?

pudiera ser esto?

http://puu.sh/4HiwW.rar

el codigo fuente

[DllImport("AspriseOCR.dll", EntryPoint = "OCR")]
public static extern IntPtr OCR(string file, int type);

[DllImport("AspriseOCR.dll", EntryPoint = "OCRpart")]
static extern IntPtr OCRpart(string file, int type, int startX, int startY, int width, int height);

[DllImport("AspriseOCR.dll", EntryPoint = "OCRBarCodes")]
static extern IntPtr OCRBarCodes(string file, int type);

[DllImport("AspriseOCR.dll", EntryPoint = "OCRpartBarCodes")]
static extern IntPtr OCRpartBarCodes(string file, int type, int startX, int startY, int width, int height);


/*
[DllExport("OCR", CallingConvention = System.Runtime.InteropServices.CallingConvention.StdCall)]
static string oocr(string file)
{
MessageBox.Show(Marshal.PtrToStringAnsi(OCR(file, -1)));
return Marshal.PtrToStringAnsi(OCR(file, -1));

}
*/

[DllExport("OCRocr", CallingConvention = System.Runtime.InteropServices.CallingConvention.StdCall)]
static string oocr2(string file)
{
return Marshal.PtrToStringAnsi(OCR(file, -1));
}

[DllExport("OCR", CallingConvention = System.Runtime.InteropServices.CallingConvention.StdCall)]
static string oocr(string file, int type)
{
return Marshal.PtrToStringAnsi(OCR(file, type));
}



[DllExport("OCRpart", CallingConvention = System.Runtime.InteropServices.CallingConvention.StdCall)]
static string oocrpart(string file, int type, int startX, int startY, int width, int height)
{
return Marshal.PtrToStringAnsi(OCRpart(file, type, startX, startY, width, height));
}


[DllExport("OCRBarCodes", CallingConvention = System.Runtime.InteropServices.CallingConvention.StdCall)]
static string oocrbarcodes(string file, int type)
{
return Marshal.PtrToStringAnsi(OCRBarCodes(file, type));
}


[DllExport("OCRpartBarCodes", CallingConvention = System.Runtime.InteropServices.CallingConvention.StdCall)]
static string oocrpartbarcodes(string file, int type, int startX, int startY, int width, int height)
{
return Marshal.PtrToStringAnsi(OCRpartBarCodes(file, type, startX, startY, width, height));
}

Thanks alot big boss :num1:

Did you use it with AMS ?

So let me get this right OCR takes a image and looks at it and converts the text in to a text file ?

yes exactly but i dont know how to use it with ams

is there any posibility that someone can make a small example with that ?

thanks in advanced