Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
OCR
#13
I installed SharePoint Designer (only Microsoft Office Document Imaging) on Windows 8. It works. Type library version must be 12.

Macro MODI
Code:
Copy      Help
str fBmp="$temp$\qm_modi.bmp"
fBmp.expandpath

;capture bitmap (optional)
if(!CaptureImageOrColor(0 0 _hwndqm fBmp)) ret

;convert to text
;typelib MODI {A5EDEDF4-2BBC-45F3-822B-E60C278A1A79} 11.0
typelib MODI {A5EDEDF4-2BBC-45F3-822B-E60C278A1A79} 12.0
MODI.Document doc._create

doc.Create(fBmp)
doc.OCR(MODI.miLANG_ENGLISH -1 0)

MODI.Image im=doc.Images.Item(0)
str s=im.Layout.Text

;show results
;out
out s

Tried to use MODI dlls without installing, but does not work. Creates object, but fails at doc.Create.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)