03-15-2017, 06:30 PM
Function Function1
This was my original OCR code. However, I have a 2 minor issues with this code.
1. I want to capture a image based on where the previous image is located. E.g. image:h1B7A5E0B is located at x: 620, y: 320 I want it to capture the location x:620, y: 320+50. What do I change to do this?
2. I've issues with MODI ever since I upgraded my operating system to windows 10. Sharepoint 2007 cannot be installed anymore. I found a open sources OCR https://github.com/tesseract-ocr/tesseract but I need some guide on how to in-cooperate it into the code.
function
str s1
str fBmp="$temp$\qm_modi.bmp"
if(scan("resource:<Image>image:h1B7A5E0B" w 0 16))
,fBmp.expandpath
,CaptureImageOnScreen(655 340 85 35(fBmp))
,typelib MODI {A5EDEDF4-2BBC-45F3-822B-E60C278A1A79} 13.0
,MODI.Document doc._create
,doc.Create(fBmp)
,doc.OCR(MODI.miLANG_ENGLISH -1 0)
,MODI.Image im=doc.Images.Item(0)
,s1=im.Layout.Text
This was my original OCR code. However, I have a 2 minor issues with this code.
1. I want to capture a image based on where the previous image is located. E.g. image:h1B7A5E0B is located at x: 620, y: 320 I want it to capture the location x:620, y: 320+50. What do I change to do this?
2. I've issues with MODI ever since I upgraded my operating system to windows 10. Sharepoint 2007 cannot be installed anymore. I found a open sources OCR https://github.com/tesseract-ocr/tesseract but I need some guide on how to in-cooperate it into the code.