Today, the ability to read text on an image is implemented through C #.
1. Environment Readiness:
1). Download Microsoft Office SharePoint Designer 2007.
2). Please refer to kb:https://support.microsoft.com/kb/982760 for installation. You only need to install Office Tools under the Microsoft office Document Imaging option.
2. In the project, reference the Microsoft Office Document Imaging 12.0 Type Library,
Refer to the following code for a specific read method:
Private Static stringExtracttextfromimage (stringFilePath) {Document modidocument=NewDocument (); Modidocument.create (FilePath); MODIDOCUMENT.OCR (Milanguages.milang_english,true,true); MODI. Image Modiimage= (modidocument.images[0] asMODI. Image); stringExtractedtext =ModiImage.Layout.Text; Modidocument.close (); returnExtractedtext; }
Just pass in the image address to get the text on the picture.
But I also found that Modi has some flaws that can only be read in one language at a time. If you want another way, please note in the comments. Thank you for reading.
C # reads text from the image