PDA

View Full Version : Anyone know of any OCR scripts for GM?



Superboy
08-07-2012, 04:53 PM
The one I've found no longer works.

Anyone know of any good OCR scripts? Maybe something to work in conjunction with an Autohaggler?

Superboy
08-08-2012, 10:11 PM
Next Bump?

DarkByte
08-09-2012, 07:33 AM
I am no g.m expert , infact i have not used it but as no one else seems to have a solution ill give i will give it a shot , hopefully you can get something running from this.






function convert_captcha(image_data){ for (var x = 0; x < image_data.width; x++){

var darkestpixel = 100000; //set a very bight value for default value so it will always get changed
var darkestpixel_y = 0;
var darkestpixel_x = 0;
for (var y = 0; y < image_data.height; y++){
var i = x*4+y*4*image_data.width;
var luma = Math.floor(image_data.data[i] * 299/1000 +
image_data.data[i+1] * 587/1000 +
image_data.data[i+2] * 114/1000);
if (luma < darkestpixel ) //new darkest pixel is less than the last one
{
darkestpixel_x = x
darkestpixel_y = y
}

}
}
}








darkestpixel_x , darkestpixel_y should now be the captca point , you should add a step to the code so it does not check every single pixel if speed is a issue. All this code does if find the darkest pixel in the image by checking every pixels r,g,b value then using a algorithm to convert them to a brightness value or "luminosity". Then we just loop and find the pixel with darkest luminosity. In captcha images this is always the neopet.

Superboy
08-09-2012, 09:51 AM
Let me share with you the script that I wanted to use, but doesn't do anything when I click install

[Only registered and activated users can see links]

Now is there a way to install this manually. Since I think you can still get the script if you disable GM and click install. Because then it takes you to a white page with text. That looks kinda like what you just posted. Or I could be completely wrong.

I don't wouldnt know how to go about installing either of those things into GM, tho.

Superboy
08-10-2012, 04:55 PM
Bummmppp?

Superboy
08-13-2012, 07:15 AM
Anyone know what OCR stands for?

DarkByte
08-13-2012, 08:49 AM
Optical character recognition , basically extracting text / making sense of a captcha image via a program.

Its also used by scanners so when u scan a document it can convert it to a word document ect.

Superboy
08-13-2012, 12:19 PM
Oh wow. Okay. That makes a lot of sense.

Thanks.

Superboy
08-14-2012, 12:14 PM
No one knows of any?

Superboy
08-14-2012, 04:51 PM
I think I already said I don't know how to use it...

What do I do with it..?

---------- Post added at 05:51 PM ---------- Previous post was at 05:42 PM ----------

Maybe someone can help explain to me how I would use it?

Superboy
08-14-2012, 05:48 PM
That doesn't mean anything to me

How do I do that?

Im not really familair with GM

Superboy
08-15-2012, 03:58 PM
Is it a complicated process?