Jump to content
Sign in to follow this  
bg1987

OCR/Captcha Breaking with autoit?

Recommended Posts

bg1987

Hi guys, I'm looking for a way to read some simple text from an image, something that will be able to take a screenshot of a desktop, and give me the names of the icons on it.

i.e. for this http://img515.imageshack.us/img515/6324/emptya.jpg, it will return "Computer Recycle Bin Adobe Acrobat 9... Media Player Classic"

I looked for OCR and found tessaract but it doesn't do it very well.

Looking for simple captcha breaking (which is an overkill I think) also yielded nothing.

maybe anyone knows of such a script?

tl;dr:

need a script that can read text in certain fonts from a screenshot.

Thanks.

Share this post


Link to post
Share on other sites
Mechaflash

You're not asking to break Captcha via OCR are u? hrm?


Spoiler

“Hello, ladies, look at your man, now back to me, now back at your man, now back to me. Sadly, he isn’t me, but if he stopped using ladies scented body wash and switched to Old Spice, he could smell like he’s me. Look down, back up, where are you? You’re on a boat with the man your man could smell like. What’s in your hand, back at me. I have it, it’s an oyster with two tickets to that thing you love. Look again, the tickets are now diamonds. Anything is possible when your man smells like Old Spice and not a lady. I’m on a horse.”

 

Share this post


Link to post
Share on other sites
water

Welcome to AutoIt and the forum!

Why do you want to read a screenshot? There are easier ways to get the list of icons on the desktop.

And what does this have to do with "captcha breaking"?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2018-09-01 - Version 1.3.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
bg1987

I dont really want to read the icons on the windows desktop that was just an example for the capabilities im looking for.

I just want to know if a theres a script that can do pretty simple OCR but not of pure black on white fonts. something that could recognize something similar to this picture

Posted Image

and print out "Hello".

this isnt exactly OCR because they are usually meant for recognizing black text on a white background.

and its not captcha breaking because the image of the text isn't distorted.

its something between those two.

Im wondering if its possible.

Share this post


Link to post
Share on other sites
water

Can you please explain what you want to achieve? Where comes this text from and why do you want to extract it?

It still looks a bit suspicious to me.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2018-09-01 - Version 1.3.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
Melba23

bg1987,

You do not need OCR to read the desktop icon titles:

#include <Array.au3>
#include <File.au3>

; Get list of Desktop folders
Global $aList = _FileListToArray(@DesktopDir, "*", 2)
_ArrayDisplay($aList)

Does that do what you wanted? :huh:

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______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

 

Share this post


Link to post
Share on other sites
water

If I understand his post correctly this was just an example. He wants to get the text out of a picture.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2018-09-01 - Version 1.3.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
cageman

your best bet is probably building a neural network to learn the pictures. If you can at least separate the letters in different pictures you should be able to learn a neural network the different letters pretty quickly.

Share this post


Link to post
Share on other sites
Melba23

water,

I realise that. What I am after is what the OP actually wants because I am not at all sure at the moment and I would like some clarification. :)

M23

Edit: And I would be grateful if no-one else posted any "helpful tips" until we find out. ;)

Edited by Melba23
Added comment

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______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

 

Share this post


Link to post
Share on other sites
PavelTangail

I gated a lot of solution on here. Search the forum

Share this post


Link to post
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
Sign in to follow this  

×