Hey there, im currently working with tesseract.exe on Autoit. The tool has to read a word on the screen and then compare it to the sourcecode of other websites how often this word is written there. When the word is just typed in by hand to the Variable, the Regex function tells me that it found 26. But when tesseract is writing it to the variable Regex is not able to find it in Sourcecode. That means that 2 Strings which looks identical arenĀ“t. Has anybody the same problem? What can I do?
s
func tesseract()
_ScreenCapture_Capture(@DesktopDir&"\Image1.jpg",1223, 452,1647, 509)
Local $img_filename = "C:\Users\bla\Desktop\Image1.jpg"
$ocr_filename = "C:\Users\bla\Desktop\Image1"
$ocr_filename_and_ext ="C:\Users\bla\Desktop\Image1.txt"
Local $iPID = Run(@ComSpec & " /C " & "tesseract.exe """ & $img_filename & """ """ & $ocr_filename & """", @ProgramFilesDir & "\Tesseract-OCR", @SW_HIDE, $STDERR_CHILD + $STDOUT_CHILD)
P