awayne Posted April 8, 2014 Posted April 8, 2014 What is the absolute fastest way to OCR with autoit? Do someone have a coded solution for this. I tried the Tesseract UDF, but it was entirely too slow using screen captures and grabbing values. Also highly inaccurate as well.
jdelaney Posted April 8, 2014 Posted April 8, 2014 That's OCR for you. You can get around the speed by narrowing the focus of the screenshot, but there is nothing much you can do about the accuracy. What are you trying to do. IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.
awayne Posted April 8, 2014 Author Posted April 8, 2014 jdelaney I am just trying to read text on the screen learning in general no particular project in mind I like the simplicity of autoit and have a perl python background I like how easy it is to do GUI windows automation with autoit. The community and the very good documentation. The help file is about the best I have seen so this is fun to learn something new. Is there anything you can do with caching etc?
jdelaney Posted April 8, 2014 Posted April 8, 2014 What text. ControlGetText will be 100% accurate. IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.
awayne Posted April 8, 2014 Author Posted April 8, 2014 jdelaney The text I would want would be a specific area of the screen.
jdelaney Posted April 8, 2014 Posted April 8, 2014 (edited) What kind of window, and control, houses the text. Use the AutoIT Window Info tool, and post back the Summary tab. Edited April 8, 2014 by jdelaney IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.
awayne Posted April 8, 2014 Author Posted April 8, 2014 >>>> Window <<<< Title: My Custom app Class: WindowsForms10.Window.8.app.0.141b42a_r15_ad1 Position: 0, 0 Size: 1440, 860 Style: 0x170B0000 ExStyle: 0x00050000 Handle: 0x00A101B0 >>>> Control <<<< Class: Instance: ClassnameNN: Name: Advanced (Class): ID: Text: Position: Size: ControlClick Coords: Style: ExStyle: Handle: >>>> Mouse <<<< Position: 287, 717 Cursor ID: 0 Color: 0x000000 >>>> StatusBar <<<< >>>> ToolsBar <<<< >>>> Visible Text <<<< >>>> Hidden Text <<<<
Moderators Melba23 Posted April 9, 2014 Moderators Posted April 9, 2014 awayne,You have been asked several times now for a screenshot of this "My Custom app" on which you wish to use OCR - you have steadfastly failed to provide one. Please do so now or I will be forced to assume that there is a good reason why you are refusing to do so.M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Werty Posted April 9, 2014 Posted April 9, 2014 Yea, kinda suspicious. If it's a secret you can just PM Melba the screenshot, He'll keep quiet, He's an old military guy, so know the punishment for treason. Some guy's script + some other guy's script = my script!
AutID Posted April 10, 2014 Posted April 10, 2014 I don't actually know if you are trying to cheat something or... My personal experience with tesseract was what I expected. Don't expect more than tesseract can do with a free OCR. It is 80% accurated but it has it's limits. One of them is the size of the image you want to check. So you may think again about using a free OCR. https://iblockify.wordpress.com/
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