Asp.net C extracts letters, Chinese characters, and Chinese characters from images

Source: Internet
Author: User

Asp.net C is used to extract letters, Chinese characters, and Chinese characters from the image. The program must use the component name: Microsoft Office Document Imaging 12.0 Type Library.

Asp tutorial. net c extract letters, Chinese characters, and Chinese characters from images
The component name must be used: microsoft office document imaging 12.0 type library
*/

Modi.doc ument md = new modi.doc ument ();
Md. create (directory. getcurrentdirectory () + "sampleforocr. tiff ");
Md. ocr (modi. milanguages. milang_english, true, true );

Modi. image = (modi. image) md. images [0];
Modi. layout = image. layout;

Modi. word;
Stringbuilder sb = new stringbuilder ();
For (int I = 0; I <layout. words. count; I ++)
{
Word = (modi. word) layout. words [I];
Sb. append (word. text );
}


// Component name: microsoft office document imaging 12.0 type library

Related Article

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.