Jump to content

pixelsearch help


Recommended Posts

I have a series of images on my harddrive and I need to know how I would go about writing a program to do a pixel search of the screen and see if any of the images were found.

I need this to get past the visual confirmations on login pages and such. The site I need it for does not use random colors or backgrounds so I think it should be possible. It needs to search the page for all 27 images (A-Z and 0-9) and when they are found output in order from left to write so that I have the security code.

Link to comment
Share on other sites

And this will be able to find and tell the difference between different letters and numbers, and list them from left to right?

it involves doing MANY 'pixelgetcolor's

you know that the image of an 's' has a black pixel at 200, 200

well you go

$color = PixelGetColor(200,200,)
If Hex($Color) = 000000 then
Msgbox(0, "Result", "could be an 's'.")
Else
Msgbox(0, "Result", "could not be an 's'.")
Endif
Link to comment
Share on other sites

There are a few toolkits out there... As someone mentioned, OCR is programatically hard -- you have to try to mimic how your brain listens to your eyes. This is also computationally expensive.

Given that so many sites are using these things expressly to *block* automation should indicate to you that it is a non-trivial problem to solve. People don't pay programmers to stop these things for nothing.

That being said, there are some toolkits out there that, should you wish to purchase them, may provide assistance in you being able to build some logic that can test for your images.

Have you explored other options? Were they careful enough to keep the file sizes the same? All files have the same background? All files have the same name in the html source? Presumably they didn't leave any stupid holes open like that.

Alternatively, you can start your own high volume website, and pay people to solve the things for you in order to view your content. (this is what the spammers and robot creators do -- hijack the image, put it on a porn site, and get the slavering masses to decode the text for them.)

Edited by flyingboz

Reading the help file before you post... Not only will it make you look smarter, it will make you smarter.

Link to comment
Share on other sites

All the images are the same file size, file name and html code. So no obvious loops.

Am I to understand that autoit cannot reasonably code around this problem?

You did give me an idea about downloading the picture and having someone else work it out though.

Link to comment
Share on other sites

I have looked at all of those...

What I am having trouble with are the following areas:

How do I save character definitions... Let's assume that black is equal to 1 and white is equal to 0. The number seven could look like this:

00000000

01111100

00001100

00001100

00001100

How do I save this in my script (and of course my script will need to be able to do it with more than two colors.

And how do I ask autoit to search for a complex pattern of pixels on the screen like the one above?

Link to comment
Share on other sites

  • Moderators

How do I save this in my script (and of course my script will need to be able to do it with more than two colors.

And how do I ask autoit to search for a complex pattern of pixels on the screen like the one above?

By their checksum values.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

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...