// asprisedemo.cs/r:aspriseocr.dll//Note registration: Aspriseocr.inputlicense ("123456", "123456789123456789123456789") ;//Http://asprise.com/ocr/docs/html/asprise-ocr-library-csharp-vb.net-component.htmlusingSystem;usingASPRISEOCR;namespaceasprisedemo{class Program{ static voidMain (string[] args) { ASPRISEOCR. SetUp (); ASPRISEOCR. Inputlicense ("123456", "123456789123456789123456789"); ASPRISEOCROCR =NewASPRISEOCR(); Ocr. StartEngine ("Eng", ASPRISEOCR. Speed_fastest); strings = OCR. Recognize (@ ". \demo.png",-1,-1,-1,-1,-1,ASPRISEOCR. Recognize_type_all,ASPRISEOCR. Output_format_plaintext); /* Supports identification of type pdf,tif,png,jpg,//text only s = OCR. Recognize (@ "C:\path\img.jpg",-1,-1,-1,-1, -1,aspriseocr.recognize_type_text, Aspriseocr.output_format_plaintext) ; BARCODE only s = OCR. Recognize (@ "C:\path\img.jpg",-1,-1,-1,-1, -1,aspriseocr.recognize_type_barcode, Aspriseocr.output_format_ plaintext); Part of IMAGE s = OCR. Recognize (@ "C:\path\img.jpg", 1, 0, 0, N, $, aspriseocr.recognize_type_all, aspriseocr.output_format_plaintext); More Image s = OCR. Recognize (@ "C:\img1.jpg; C:\img2.png ",-1,-1,-1,-1, -1,aspriseocr.recognize_type_all, aspriseocr.output_format_plaintext); You can use the dictionary//OCR. StartEngine ("Eng", Aspriseocr.speed_fastest, "start_prop_dict_custom_dict_file=dict.txt"); s = OCR. Recognize ("Image.png",-1,-1,-1,-1,-1, Aspriseocr.recognize_type_all, aspriseocr.output_format_plaintext); Save the recognition results as PDF OCR. Recognize (@ "C:\tesT-image.png ",-1,-1,-1,-1,-1, Ocr.recognize_type_all, Ocr.output_format_pdf, Aspriseocr.prop_pdf_output _file, "Ocr-result.pdf", aspriseocr.prop_pdf_output_text_visible, True); */Console. WriteLine (s); Ocr. Stopengine (); Console. ReadKey (); } }}
OCR image recognition technology-asprise OCR