Search the Community
Showing results for tags 'tesseract ocr'.
-
AutoIT-OCRSpace-UDF1.3.zip This tiny yet powerful UDF will help you to convert Images to text with the help of OCRSpace API version 3.50 . Detect text from a local file. ; ========================================================= ; Example 2 : Gets text from an image from a local path reference ; : Searchable PDF is not requested by default. ; : Processes it using a basic OCR logic. ; ========================================================= $b_Create_Searchable_PDF = True ; Use a table logic for receipt OCR $b_Table = True ; Set your key here. $v_OCRSpaceAPIKey = "" $OCROptions = _OCRSpace_SetUpOCR($v_OCRSpaceAPIKey, 1, $b_Table, True, "eng", True, Default, Default, $b_Create_Searchable_PDF) $sText_Detected = _OCRSpace_ImageGetText($OCROptions, @scriptdir & "\receipt.jpg", 0, "SEARCHABLE_URL") ConsoleWrite( _ " Detected text : " & $sText_Detected & @CRLF & _ " Error Returned : " & @error & @CRLF & _ " PDF URL : " & Eval("SEARCHABLE_URL") & @CRLF) Detect text from a URL reference. ; ========================================================= ; Example 1 : Gets text from an image using a url reference ; : Searchable PDF is not requested. ; : Processes it using a basic OCR logic. ; ========================================================= $v_OCRSpaceAPIKey = "" ; SetUp some preferences.. $OCROptions = _OCRSpace_SetUpOCR($v_OCRSpaceAPIKey, 1, False, True, "eng", True, Default, Default, False) ; Make the request.. $sText_Detected = _OCRSpace_ImageGetText($OCROptions, "https://i.imgur.com/vbYXwJm.png", 0) ConsoleWrite( _ " Detected text : " & $sText_Detected & @CRLF & _ " Error Returned : " & @error & @CRLF) Detect text from a URL reference to an array #include "OCRSpaceUDF\_OCRSpace_UDF.au3" #include <array.au3> ; Set your key here. $v_OCRSpaceAPIKey = "" $OCROptions = _OCRSpace_SetUpOCR($v_OCRSpaceAPIKey, 1, $b_Table, True, "eng", True, Default, Default, False) ; Below, the return type is set to 1 to return an array containing the coordinates of the bounding boxes for each word detected, ; in the format : #WordDetected , #Left , #Top , 3Height, #Width $aText_Detected = _OCRSpace_ImageGetText($OCROptions, "https://i.imgur.com/Z1enogD.jpeg", 1) _ArrayDisplay($aText_Detected, "") Download Latest Version : https://github.com/MurageKabui/AutoIT-OCRSpace-UDF
-
Hi Guys I am trying the tessearct.au3 file with no joy, I have read everything I have found on the forum and can't get anything working. This is what I have/done Installed Tesseract 3.02.02 to C:Program Filestesseracttesseract.exe Tesseract.au3 is in Autoit3Include folder, version is Title: Tesseract UDF Library for AutoIt3 Filename: Tesseract.au3 Description: A collection of functions for capturing text in applications. Author: seangriffin Version: V0.6 Last Update: 17/03/09 Changed line 58 to Global $tesseract_temp_path = @ProgramFilesDir & "tesseracttesseract.exe" Running this simple code #include <Tesseract.au3>#include <MsgBoxConstants.au3> $OCR_Result = _TesseractScreenCapture(0,"",1,1,94,121,147,166,1) MsgBox(0, "Result: ", $OCR_Result) consolewrite($OCR_Result) All I get is this screenshot, My os is XP Pro, screen res is 1280 x 800 when installing tessearct it created Tesseract-OCR folder which I renamed to tesseract as most posts I read either showed or stated this change. If someone could just tell me where I am going wrong or a reason why it wont work that would be greatly appreciated, many thanks.