vbscript - How do I make MODI not identify rotated images? -


I have a VBScript script that looks like this:

  Const ForAppending = 8 Set objFSO = CreateObject ( "Scripting.FileSystemObject") set objTextFile = objFSO.OpenTextFile ( "C: \ OCRresults.txt", ForAppending, it is true) set miDoc = CreateObject ( "MODI.Document") miDoc.Create ( "C: \ PathToTifScreenshot. TIF ") miDoc.Images (0) .OCR set miLayout = miDoc.Images (0) .Layout stringOut = miLayout.Text objTextFile.WriteLine stringOut DoOCR = stringOut set miLayout = nothing set miDoc = nothing set objFSO = nothing  

it uses MODI in Tiaif file Oaisiar However, Modi Automatically identify the images rotated and I do not want to work this way. What I basically want is precisely for OCR, when the image rotates properly. There is an option in Modi's GUI that you can uncheck: "Rotate Auto", but it seems that it only works for the manual process. By any thought how can I prevent my script from recognizing rotated images?

"post-text" itemprop = "text">

There are three criteria for modi method:

  expression  .OCR (   } 

The description for the 2 parameter, OCROrientImage , states:> LangID , OCROrientImage , OCRStraightenImage )

OCROrientImage optional Boolean . Specifies whether the OCR engine attempts to determine the orientation of the page. Default True

Try to set this parameter to false and see if it helps.


Comments

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -