Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Anyone know of any OCR scripts for GM?

  1. #1
    Superboy's Avatar
    Joined
    Aug 2012
    Posts
    226
    Userbars
    2
    Thanks
    1
    Thanked
    3/3
    DL/UL
    1/0
    Mentioned
    23 times
    Time Online
    1h 8m
    Avg. Time Online
    N/A

    Anyone know of any OCR scripts for GM?

    The one I've found no longer works.

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

  2. #2
    Superboy's Avatar
    Joined
    Aug 2012
    Posts
    226
    Userbars
    2
    Thanks
    1
    Thanked
    3/3
    DL/UL
    1/0
    Mentioned
    23 times
    Time Online
    1h 8m
    Avg. Time Online
    N/A
    Next Bump?

  3. #3

    Joined
    Jun 2012
    Posts
    1,699
    Thanks
    876
    Thanked
    2,881/1,142
    DL/UL
    44/1
    Mentioned
    562 times
    Time Online
    118d 6h 45m
    Avg. Time Online
    40m
    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.


    PHP Code:


    function convert_captcha(image_data){  for (var 0image_data.widthx++){

    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 
    0image_data.heighty++){
          var 
    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.
    Last edited by DarkByte; 08-09-2012 at 07:40 AM.

  4. #4
    Superboy's Avatar
    Joined
    Aug 2012
    Posts
    226
    Userbars
    2
    Thanks
    1
    Thanked
    3/3
    DL/UL
    1/0
    Mentioned
    23 times
    Time Online
    1h 8m
    Avg. Time Online
    N/A
    Let me share with you the script that I wanted to use, but doesn't do anything when I click install

    (you need an account to 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.

  5. #5
    Superboy's Avatar
    Joined
    Aug 2012
    Posts
    226
    Userbars
    2
    Thanks
    1
    Thanked
    3/3
    DL/UL
    1/0
    Mentioned
    23 times
    Time Online
    1h 8m
    Avg. Time Online
    N/A
    Bummmppp?

  6. #6
    Superboy's Avatar
    Joined
    Aug 2012
    Posts
    226
    Userbars
    2
    Thanks
    1
    Thanked
    3/3
    DL/UL
    1/0
    Mentioned
    23 times
    Time Online
    1h 8m
    Avg. Time Online
    N/A
    Anyone know what OCR stands for?

  7. #7

    Joined
    Jun 2012
    Posts
    1,699
    Thanks
    876
    Thanked
    2,881/1,142
    DL/UL
    44/1
    Mentioned
    562 times
    Time Online
    118d 6h 45m
    Avg. Time Online
    40m
    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.

  8. #8
    Superboy's Avatar
    Joined
    Aug 2012
    Posts
    226
    Userbars
    2
    Thanks
    1
    Thanked
    3/3
    DL/UL
    1/0
    Mentioned
    23 times
    Time Online
    1h 8m
    Avg. Time Online
    N/A
    Oh wow. Okay. That makes a lot of sense.

    Thanks.

  9. #9
    Superboy's Avatar
    Joined
    Aug 2012
    Posts
    226
    Userbars
    2
    Thanks
    1
    Thanked
    3/3
    DL/UL
    1/0
    Mentioned
    23 times
    Time Online
    1h 8m
    Avg. Time Online
    N/A
    No one knows of any?

  10. #10
    Superboy's Avatar
    Joined
    Aug 2012
    Posts
    226
    Userbars
    2
    Thanks
    1
    Thanked
    3/3
    DL/UL
    1/0
    Mentioned
    23 times
    Time Online
    1h 8m
    Avg. Time Online
    N/A
    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?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •