JRowe Posted April 21, 2009 Posted April 21, 2009 Yes. As a Java OCR engine, the Java Runtime is required. Something you should have, anyway. It seems almost as ubiquitous as flash, these days. [center]However, like ninjas, cyber warriors operate in silence.AutoIt Chat Engine (+Chatbot) , Link Grammar for AutoIt , Simple Speech RecognitionArtificial Neural Networks UDF , Bayesian Networks UDF , Pattern Matching UDFTransparent PNG GUI Elements , Au3Irrlicht 2Advanced Mouse Events MonitorGrammar Database GeneratorTransitions & Tweening UDFPoker Hand Evaluator[/center]
dvcz38 Posted May 19, 2009 Posted May 19, 2009 Nice work again seangriffin!Note: For english recognition, also need to download http://tesseract-ocr.googlecode.com/files/...2.00.eng.tar.gzOther language data files also available from http://code.google.com/p/tesseract-ocr/downloads/list Tesseract seem not to support Chinese recognition,and not to accurately recognite the number when i run TesseractControlCapture.au3
litlmike Posted May 21, 2009 Posted May 21, 2009 The link to the Tesseract installer (.exe) is not working, is there another place we can get it? _ArrayPermute()_ArrayUnique()Excel.au3 UDF
Kuroro Posted May 31, 2009 Posted May 31, 2009 (edited) hello.. i like this UDF.. thank you very much.. Edited June 1, 2009 by Kuroro [quote]I change my goal post in the middle of the game[/quote]
JerryLiang Posted June 2, 2009 Posted June 2, 2009 Hi Malakith,Yes I think anyone with Vista that uses the "$show_capture = 1" parameter will get this error. This code came from another AutoIT forum topic. The code accesses the "Windows Image and Fax Viewer" object that comes with Windows XP. I use this because it supports the TIFF files generated by Tesseract. I believe the "Windows Image and Fax Viewer" has been removed from Windows Vista, and this is why you are getting the error. I use Windows XP myself. If anyone has a TIFF viewer solution for both Win XP and Vista I'd like to know!HI, Just want to let you know, I got the same issue with Window 7 RC. Its a nice library, hope you can fix it. Jerry
Andrus Posted June 23, 2009 Posted June 23, 2009 Hi, I have a problem with using this UDF within the loop. It seems to me, that some part of memory is not freed after the functions finishes. Runnig it in the loop causes memory outage and results in error message: _WinAPI_CreateCompatibleBitmap: W magazynie brak miejsca dla wykonania tego polecenia wich could be translated like: _WinAPI_CreateCompatibleBitmap: There is no enough room in the storage to run this task I've tried to find the place where the memory leak could be possible, but I failed. I'd be greatfull for any clue or help with solving this issue. Some more explenation: I have 1GB of RAM, and about 600MB of that memory is free at the script startup. After about 5 minutes and about 500 $tmp = _TesseractScreenCapture(0, "", 1, 3, 690, 168, 900, 750, 0) function calls, I got the above error. The memory state at this time is about 400MB of free memory.
WHICKED Posted June 25, 2009 Posted June 25, 2009 For the life of me, I cant get this blasted thing to work, I have installed Tesseract, and tried to do one function, and it fails, it does not capture, and it will not parse out the text.
seangriffin Posted July 3, 2009 Author Posted July 3, 2009 REQUIREMENTS:Java runtime is required?Nothing happens if I run the sample, it just opens IE page & thats it, it just sits there. i do not have java.I may have mistakenly had Java in the REQUIREMENTS section of the UDF at one time. I have since corrected that. Java isn't required.Not sure why the samples are not working for you. I would suspect that Tesseract may not be installed correctly on your computer.If the Tesseract install worked, you should have the following file on your computer:"C:\Program Files\tesseract\tesseract.exe"Check if this file exists. Cheers, Sean. See my other UDFs: Chrome UDF - Automate Chrome | SAP UDF - Automate SAP | Java UDF - Automate Java Applications & Applets | Tesseract (OCR) UDF - Capture text from applications, controls and the desktop | Textract (OCR) UDF - Capture text from applications and controls | FileSystemMonitor UDF - File, Folder, Drive and Shell Monitoring | VLC (Media Player) UDF - Creating and controlling a VLC control in AutoIT | Google Maps UDF - Creating and controlling Google Maps (inc. GE) in AutoIT | SAPIListBox (Speech Recognition) UDF - Speech Recognition via the Microsoft Speech (SAPI) ListBox | eBay UDF - Automate eBay using the eBay API | ChildProc (Parallel Processing) UDF - Parallel processing functions for AutoIT | HyperCam (Screen Recording) UDF - Automate the HyperCam screen recorder | Twitter UDF - Automate Twitter using OAuth and the Twitter API | cURL UDF - a UDF for transferring data with URL syntax See my other Tools: Rapid Menu Writer - Add menus to DVDs in seconds | TV Player - Automates the process of playing videos on an external TV / Monitor | Rapid Video Converter - A tool for resizing and reformatting videos | [topic130531]Rapid DVD Creator - Convert videos to DVD fast and for free | ZapPF - A tool for killing processes and recycling files | Sean's eBay Bargain Hunter - Find last minute bargains in eBay using AutoIT | Sean's GUI Inspector - A scripting tool for querying GUIs | TransLink Journey Planner with maps - Incorporating Google Maps into an Australian Journey Planner | Automate Qt and QWidgets | Brisbane City Council Event Viewer - See what's going on in Brisbane, Australia
Jefferds44 Posted July 18, 2009 Posted July 18, 2009 Sean (or anyone else), I'm trying to work with the UDF, but I don't seem to be able to make it work. It seems to be broken for me at the base level. I'm testing the CaptureToTIFF() function, and it only outputs a blank .tif file. I have the latest version of Tesseract installed in my program files directory. Here's my script: #include <Tesseract.au3> $left_indent = 0 $top_indent = 0 $right_indent = 0 $bottom_indent = 0 $show_capture = 1 CaptureToTIFF("Calculator", "", "", "test01.tif", "", $left_indent, $top_indent, $right_indent, $bottom_indent)
triene Posted July 19, 2009 Posted July 19, 2009 this is an awesome script. it works very well for me. but, i had some probs with the scaling too. how di i figure out these ident values from given pixel cords? as for now im running it over and over again, while adjusting the values, to get the desired part of the screen captured using _TesseractWinCapture. would it be possible to change the tesseract functions to use normal pixel cords, to become more user friendly?
Proph Posted July 29, 2009 Posted July 29, 2009 It seems that my tiff files are stretched out. So it makes it harder for the OCR to be correct. I am trying to use this on Norton Antivirus. I have to put the Scale to like 30... but it is so stretched out there are only a few words that it actually finds. >_
VAG Posted September 1, 2009 Posted September 1, 2009 (edited) I would like to use this UDF to do a OCR capture of a customized Tooltips. I cannot directly read the tooltip string using WinGetText()..so I'm thinking of feeding _TesseractControlCapture() with the Tooltip window info. But I only can get the following info from this tooltip. How do I put them into _TesseractControlCapture() parameters?Window Handle: 0x002E01C6Window Class: Afx:1da0000:8Window Title:Window Text:Window Process: 1960My General Help & Support Post Edited September 1, 2009 by VAG
JohnOne Posted September 6, 2009 Posted September 6, 2009 (edited) this is an awesome script. it works very well for me.but, i had some probs with the scaling too.how di i figure out these ident values from given pixel cords?as for now im running it over and over again, while adjusting the values, to get the desired part of the screen captured using _TesseractWinCapture.would it be possible to change the tesseract functions to use normal pixel cords, to become more user friendly?Been the same today, farting about with trying to get the correct locationIt dosent seem to work according to any earthly logic, you change the left indent and it pushes the whole capture area over and does all sorts of bananas things.I got it right after an hour or so moving 2/2 pixes at a time at either end, it worked great, I went for a crap, come back and it was taking an image of another part of the screen Anyone know how to get this working with human coords ?Or if not, even explain the indent workings ?EDIT:sorry I didnt realize this was in examples (came into it via via the aearch) Edited September 6, 2009 by JohnOne AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
Hawkwing Posted September 11, 2009 Posted September 11, 2009 sorry I didnt realize this was in examples (came into it via via the aearch)Erm, could you point me to the example that helped you figure out how to use coords with this? The Wheel of Time turns, and Ages come and pass, leaving memories that become legend. Legend fades to myth, and even myth is long forgotten when the Age that gave it birth comes again.
Horrendous Posted September 15, 2009 Posted September 15, 2009 I am confused. I have a window pos:0,0 size:800,573 and i need to read region at pos:230,360 size:90,30. Please, could you help me with params? $x=_TesseractScreenCapture(0,"",1,2,?,?,?,?,0) msgbox(0,"",$x)
Belfigor Posted September 18, 2009 Posted September 18, 2009 Is there any way to define my own font for Tesseract to recognize? [size="1"]My bear is so cute asleep in the closet, not even drinking vodka. My nuclear bomb name is Natasha.[/size]
Horrendous Posted September 18, 2009 Posted September 18, 2009 Is there any way to define my own font for Tesseract to recognize?http://code.google.com/p/tesseract-ocr/wiki/TrainingTesseractThere..
Belfigor Posted September 19, 2009 Posted September 19, 2009 http://code.google.com/p/tesseract-ocr/wiki/TrainingTesseractThere..Thank you! [size="1"]My bear is so cute asleep in the closet, not even drinking vodka. My nuclear bomb name is Natasha.[/size]
JohnOne Posted September 19, 2009 Posted September 19, 2009 Erm, could you point me to the example that helped you figure out how to use coords with this? Sorry HawkwingI only just seen your postI meant, I didnt realize I had posted in the example scripts forum.Was too tedious for me so I used simpletesseract which has modified earthling co-ordinates AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
seangriffin Posted October 3, 2009 Author Posted October 3, 2009 The link to the Tesseract installer (.exe) is not working, is there another place we can get it?Apologies for the long, long, (long), delay in getting back to this topic.Perhaps the server hosting Tesseract201.exe was down at one point, but it's definitely working at the moment.http://web.aanet.com.au/seangriffin/Tesseract201.exe Cheers, Sean. See my other UDFs: Chrome UDF - Automate Chrome | SAP UDF - Automate SAP | Java UDF - Automate Java Applications & Applets | Tesseract (OCR) UDF - Capture text from applications, controls and the desktop | Textract (OCR) UDF - Capture text from applications and controls | FileSystemMonitor UDF - File, Folder, Drive and Shell Monitoring | VLC (Media Player) UDF - Creating and controlling a VLC control in AutoIT | Google Maps UDF - Creating and controlling Google Maps (inc. GE) in AutoIT | SAPIListBox (Speech Recognition) UDF - Speech Recognition via the Microsoft Speech (SAPI) ListBox | eBay UDF - Automate eBay using the eBay API | ChildProc (Parallel Processing) UDF - Parallel processing functions for AutoIT | HyperCam (Screen Recording) UDF - Automate the HyperCam screen recorder | Twitter UDF - Automate Twitter using OAuth and the Twitter API | cURL UDF - a UDF for transferring data with URL syntax See my other Tools: Rapid Menu Writer - Add menus to DVDs in seconds | TV Player - Automates the process of playing videos on an external TV / Monitor | Rapid Video Converter - A tool for resizing and reformatting videos | [topic130531]Rapid DVD Creator - Convert videos to DVD fast and for free | ZapPF - A tool for killing processes and recycling files | Sean's eBay Bargain Hunter - Find last minute bargains in eBay using AutoIT | Sean's GUI Inspector - A scripting tool for querying GUIs | TransLink Journey Planner with maps - Incorporating Google Maps into an Australian Journey Planner | Automate Qt and QWidgets | Brisbane City Council Event Viewer - See what's going on in Brisbane, Australia
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now