If you have ever played neopets and gone to a main shop the following images will be familiar:
You must click on the neopet in the image lets take a look at the the form data first:
Code:
www.neopets.com/haggle.phtml?x=147&y=118¤t_offer=0
So its pretty self explanitary lets take a look at that image again we need to find something that seperates the neopet from the rest of the image an obvious thing to me is that the neopet always has the darkest Pixel refresh yourself and take a look no background part of the image contains a black pixel.
So all we need to do is make a simple program im not going to show you how to donwnload the jpeg or post data if your reading this then you probly know that already i will load the image off my hdd.
Ive attached my source code for this.
An even better way i think would be to invert the image i have never tested this but it works fine (in theory) take a look at the image inverted:
So we could make an Extremly Accurate O.C.R with that method (only if the original fails for some reason)
Hear is the result after running my source: