.NET OCRing an Image

后端 未结 7 656
挽巷
挽巷 2021-02-06 05:56

I\'m trying to use MODI to OCR a window\'s program. It works fine for screenshots I grab programmatically using win32 interop like this:

public string SaveScreen         


        
相关标签:
7条回答
  • 2021-02-06 06:27

    yes the posts in this thread helped me gettin it to work, here what i have to add:

    was trying to download images ( small ones ) then ocr...

    -when processing images, it seems that theyr size must be power of 2 ! ( was able to ocr images: 512x512 , 128x128, 256x64 .. other sizes mostly failed ( like 1103x334 ))

    • transparent background also made troubles. I got the best results when creating a new tif with powerof2 boundary, white background, paste the downloaded image into it, save.

    • scaling the image did not succeed for me, since OCR is getting wrong results , specially for "german" characters like "ü"

    • in the end i also used: doc.OCR(MODI.MiLANGUAGES.miLANG_ENGLISH, false, false);

    • using modi from office 2003

    greetings

    womd

    0 讨论(0)
提交回复
热议问题