Results 1 to 3 of 3
  1. #1
    JeffThomas is offline Member
    Join Date
    Dec 2011
    Posts
    31
    Rep Power
    0

    Thumbs up How would you read letters and numbers off of the actual screen?

    This may seem like a question that doesn't deserve to be in the advanced section but here goes.

    How would you go about creating a program that can read/interpret something that is on your screen.

    For Example: If I wanted to make a program read the java forums slogan, located around the top left corner of this page ( "where learning and development begins").

    Would it be possible to get that image data as a string so that I can use it in if statements and such?
    I already have some ideas about doing this but they aren't really optimal.

  2. #2
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,642
    Rep Power
    7

    Default Re: How would you read letters and numbers off of the actual screen?

    Google 'Optical Character Recognition'. You will see this problem is a lot more difficult than you may think. There are a few libraries out there that might help, but they are based upon machine learning algorithms that must be trained (and as a result may not always be correct depending upon the training and the input)

  3. #3
    JeffThomas is offline Member
    Join Date
    Dec 2011
    Posts
    31
    Rep Power
    0

    Default Re: How would you read letters and numbers off of the actual screen?

    Thanks for the info. In the past I've tried to do stupid and tedious work of gathering pixel locations, getting buffered images, drawing rectangles around certain portions of the screen, and didn't really get anywhere.
    This topic what just the kind of thing I was looking for.
    Last edited by JeffThomas; 12-09-2011 at 03:00 AM.

Similar Threads

  1. Replies: 2
    Last Post: 12-04-2011, 08:21 AM
  2. Replies: 2
    Last Post: 11-30-2011, 04:41 PM
  3. Stop user entering letters in GUI, numbers only
    By africanhacker in forum New To Java
    Replies: 3
    Last Post: 03-11-2011, 01:25 PM
  4. converting letters to numbers
    By fenhoff in forum New To Java
    Replies: 2
    Last Post: 01-24-2010, 04:45 AM
  5. validating a string for numbers and letters?
    By lockmac in forum New To Java
    Replies: 1
    Last Post: 08-09-2007, 09:17 AM

Posting Permissions

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