bg1987 Posted October 16, 2012 Share Posted October 16, 2012 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. Link to comment Share on other sites More sharing options...
Bert Posted October 16, 2012 Share Posted October 16, 2012 The names on the desktop can be gathered by simply looking at the desktop folder in the user directory and getting a list of the names Mechaflash 1 The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
Mechaflash Posted October 16, 2012 Share Posted October 16, 2012 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.” Link to comment Share on other sites More sharing options...
water Posted October 16, 2012 Share Posted October 16, 2012 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 (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
bg1987 Posted October 16, 2012 Author Share Posted October 16, 2012 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 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. Link to comment Share on other sites More sharing options...
water Posted October 16, 2012 Share Posted October 16, 2012 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 (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted October 16, 2012 Moderators Share Posted October 16, 2012 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? 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 Link to comment Share on other sites More sharing options...
water Posted October 16, 2012 Share Posted October 16, 2012 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 (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
cageman Posted October 16, 2012 Share Posted October 16, 2012 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. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted October 16, 2012 Moderators Share Posted October 16, 2012 (edited) 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. M23Edit: And I would be grateful if no-one else posted any "helpful tips" until we find out. Edited October 16, 2012 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 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 Link to comment Share on other sites More sharing options...
PavelTangail Posted November 10, 2012 Share Posted November 10, 2012 I gated a lot of solution on here. Search the forum Link to comment Share on other sites More sharing options...
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