ASPRISE-OCR:
Http://asprise.com/product/ocr/download.php?lang=csharp
The 3 DLLs that need to be used are AspriseOCR.dll, DevIL.dll, ILU.dll.
It is important to note that these several. dll is the VC write reference to be used in the program with DllImport reference, the key code:
[DllImport ("AspriseOCR.dll", EntryPoint = "OCR", CallingConvention = callingconvention.cdecl)]
public static extern IntPtr OCR (string file, int type);
[DllImport ("AspriseOCR.dll", EntryPoint = "Ocrpart", CallingConvention = callingconvention.cdecl)]
static extern IntPtr Ocrpart (string file, int type, int startX, int starty, int width, int height);
[DllImport ("AspriseOCR.dll", EntryPoint = "Ocrbarcodes", CallingConvention = callingconvention.cdecl)]
static extern IntPtr ocrbarcodes (string file, int type);
[DllImport ("AspriseOCR.dll", EntryPoint = "Ocrpartbarcodes", CallingConvention = callingconvention.cdecl)]
static extern IntPtr ocrpartbarcodes (string file, int type, int startX, int starty, int width, int height);
The calling code is simply one sentence:
MessageBox.Show (Marshal.ptrtostringansi (Ocrpart (Img_path,-1, StartX, starty, width, height)));
Where Img_path: For the picture path, StartX, starty coordinates are 0, width, height picture width and height.
Use of ASPRISE-OCR