Results 1 to 2 of 2

Thread: [C#] Neopets OCR

  1. #1
    Little Brother


    Zachafer's Avatar
    Join Date
    Dec 2011
    Gender
    Posts
    1,206
    Thanks
    723
    Thanked 1,392 Times in 651 Posts


    Downloads
    81
    Uploads
    17
    Mentioned
    497 Post(s)
    Time Online
    21 d 17 h 32 m
    Avg. Time Online
    16 m
    Rep Power
    14

    [C#] Neopets OCR



    OCR(string img) - string parameter is the HTML of the captcha image (headers excluded). Returns the coordinates (as a Point) of the pet.
    OCR(Bitmap img) - Bitmap parameter is the captcha image. Returns the coordinates (as a Point) of the pet.

    AlternatePrice(string price) isn't really part of the OCR process but this takes the price and alternates the first two characters.
    Input: 28429 Output: 28282

  2. The Following 3 Users Say Thank You to Zachafer For This Useful Post:

    DarkByte (08-17-2012),Infamous Joe (08-02-2012),runbikesurf (08-17-2012)

  3. #2
    Banned
    Join Date
    Jun 2012
    Gender
    Location
    90 90
    Age
    31
    Posts
    1,714
    Thanks
    876
    Thanked 2,877 Times in 1,139 Posts


    Downloads
    44
    Uploads
    1
    Mentioned
    562 Post(s)
    Time Online
    118 d 6 h 45 m
    Avg. Time Online
    1 h 30 m
    Rep Power
    0
    Gamer IDs

    Gamertag: DarkByt3 PSN ID: raredaredevil
    same thing in vb.net



    implementation e.g;
    Dim newimage As Bitmap = thewrapper.getimage(captchaurl, thewrapper.LastPage)
    Dim ocrpoint As New Point
    ocrpoint = abhandler.docaptcha(newimage)
    strhtml = thewrapper.Request("POST", "http://www.neopets.com/haggle.phtml?current_offer=" & tempprice & "&x=" & ocrpoint.X & "&y=" & ocrpoint.Y, currentitemurl)
    If strhtml.Contains("I accept your") = True Then
    'Item bought
    buylog.Add("Bought item - " & currentitemname)
    End If
    Last edited by DarkByte; 08-17-2012 at 06:59 AM.

  4. The Following 2 Users Say Thank You to DarkByte For This Useful Post:

    Infamous Joe (08-17-2012),runbikesurf (08-17-2012)

Posting Permissions

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