Results 1 to 2 of 2

Thread: [Python] Neopets OCR

  1. #1

    Join Date
    Sep 2012
    Gender
    Posts
    39
    Thanks
    0
    Thanked 31 Times in 15 Posts


    Downloads
    0
    Uploads
    0
    Mentioned
    11 Post(s)
    Time Online
    2 d 8 h 38 m
    Avg. Time Online
    1 m
    Rep Power
    6

    [Python] Neopets OCR

    Greetings,

    Figured I would share the small OCR cracker I made in Python. It uses Python Imaging Library (PIL) for processing the image. It converts the image to greyscale and determines the darkest pixel with getexrema() then attempts to outline the pet. It then uses getbbox() to create a virtual rectangle (left, top, right, bottom) around the focal point of the pet. Finally, the x and y coords I use are the center of the rectangle (the most human point).



    So far it's been 100% accurate and the points that is has chosen have been very human-like. For those interested this code will be integrated into Neolib with the next commit.

  2. The Following 6 Users Say Thank You to AliasXNeo For This Useful Post:

    DarkByte (03-12-2013),I_royalty_I (10-20-2012),Infamous Joe (10-20-2012),malky (02-23-2016),runbikesurf (10-20-2012),Vegeta (10-20-2012)

  3. #2
    mistry121's Avatar
    Join Date
    Dec 2011
    Posts
    118
    Thanks
    18
    Thanked 32 Times in 20 Posts


    Downloads
    84
    Uploads
    0
    Mentioned
    17 Post(s)
    Time Online
    1 d 13 h 5 m
    Avg. Time Online
    1 m
    Rep Power
    7
    wow I learned how to do this in my programming engineering class, never figured it would actually be useful LOL

Posting Permissions

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