Vintasoft Imaging. NET use Tutorial: How to set OCR to recognize numbers only

Source: Internet
Author: User
Tags tesseract ocr

The Vintasoftimaging.net SDK is a powerful and easy to use image Toolkit developed for. NET developers. It lets you load, view, process, print, and save digital images, convert them to different image formats, and increase your productivity with a variety of TIFF and animated GIF files.

And the product can also add multiple modules: Picture annotation module, PDF module, JBIG2 module, JPEG2000 module, document cleaning module, dicom module, OCR module and form processing module, together with these module developers can develop a modern business application This article mainly introduces Vintasoft Imaging. NET how and OCR module, the recognition rate of OCR recognition module is high, support multi-language contains Chinese, and can customize a variety of functions, the following code mainly describes how to set up OCR only the number in the image to identify, as follows:

Using system;using vintasoft.imaging;using vintasoft.imaging.ocr;using vintasoft.imaging.ocr.results;using Vintasoft.Imaging.Ocr.Tesseract; Class tesseractocrsetvariableexample{//Required assemblies to run this code://Vintasoft.Imaging.dll, VINTASOFT.I Maging.  Ocr.dll, Vintasoft.Imaging.Ocr.Tesseract.dll public static void Ocrimagewithdigits (string filename) {//load        Image (s) imagecollection images = new ImageCollection (); Images.         ADD (filename);        Console.WriteLine ("Create tesseract OCR engine ...");            using (TESSERACTOCR TESSERACTOCR = new TESSERACTOCR ()) {Console.WriteLine ("Initialize OCR engine ...");             Tesseractocr.init (New Ocrenginesettings (Ocrlanguage.english));             Set White list tesseractocr.setvariable ("Tessedit_char_whitelist", "01234567890"); foreach image foreach (vintasoftimage image in images) {Console.WriteLine("Recognize the image ...");                 Ocrpage page = tesseractocr.recognize (image);                Console.WriteLine ("Page Text:"); Console.WriteLine (page.                GetText ());            Console.WriteLine ();        }//Shutdown OCR engine tesseractocr.shutdown (); }//Free resources images.        Clearanddisposeitems (); Images.    Dispose (); }}

This article goes from Vintasoft Imaging. NET

View Product Details evget.com/product/1750

Vintasoft Imaging. NET use Tutorial: How to set OCR to recognize numbers only

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.