Quantcast

Jump to content


Photo

OCR in python?


  • Please log in to reply
52 replies to this topic

#51 shrouded

shrouded
  • lil'cluck

  • 1250 posts


Users Awards

Posted 16 May 2014 - 04:17 PM

The computer doesn't care though. :p An inverted image does look more impressive than just the regular one I guess. :p

I just mean to say it's easier to discover a method to crack the captcha if you fiddle with the image in photoshop first. If you notice that inverting/grayscaling the image results in something easily detected you can just mimic that with code.

    def neoOCR(self, im):
        im = im.convert("L")
        lo, hi = im.getextrema()
        lo = im.point(lambda x: x == lo)
        x, y, _, _ = lo.getbbox()
        return x + 3, y + 2


#52 Dan

Dan
  • Resident Know-It-All

  • 6382 posts


Users Awards

Posted 21 May 2014 - 01:24 AM

 

I just mean to say it's easier to discover a method to crack the captcha if you fiddle with the image in photoshop first. If you notice that inverting/grayscaling the image results in something easily detected you can just mimic that with code.

 

Doesn't sound like an exact science.



#53 Waser Lave

Waser Lave

  • 25516 posts


Users Awards

Posted 21 May 2014 - 06:58 AM

Doesn't sound like an exact science.

 

Photoshop is decent for finding thresholds when you need to but yeah, it's not really necessary for the Neopets one.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users