Jump to content

Fastest OCR for autoit


Recommended Posts

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.

Link to comment
Share on other sites

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.
Link to comment
Share on other sites

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?

Link to comment
Share on other sites

What kind of window, and control, houses the text.

Use the AutoIT Window Info tool, and post back the Summary tab.

Edited 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.
Link to comment
Share on other sites

>>>> 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 <<<<
Link to comment
Share on other sites

  • Moderators

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

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...