Use of ASPRISE-OCR

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.