How to break image and extract any word from it

Discussion in 'PHP' started by globalcashsite, Apr 26, 2011.

  1. #1
    globalcashsite, Apr 26, 2011 IP
  2. ap2010

    ap2010 Guest

    Messages:
    41
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Research on optical character recognition. Its a fairly complicated subject.
     
    ap2010, Apr 26, 2011 IP
  3. bonita

    bonita Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    yes try to google it or get a programmer to do it .. it's not that difficult.
     
    bonita, Apr 26, 2011 IP
  4. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,680
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #4
    OCR is how you would get text from an image but looking at the site's code it is not an image as the HTML comes out as....

    <a href="http://www.infosniper.net/index.php?ip_address=87.113.X.X" title="Great Britain" target="_blank">Great Britain</a>
    Code (markup):
    In this case you just grab the text from the HTML
     
    AstarothSolutions, Apr 26, 2011 IP
  5. globalcashsite

    globalcashsite Peon

    Messages:
    806
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Hi man, this is not much difficult as I have done this in past few years before. I tried to find that file but still can't. That was extracting batch number from e-gold transaction processing.

    GlobalCashSite
     
    globalcashsite, Apr 27, 2011 IP
  6. globalcashsite

    globalcashsite Peon

    Messages:
    806
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Hi man

    How did you find html
    <a href="http://www.infosniper.net/index.php?ip_address=87.113.X.X" title="Great Britain" target="_blank">Great Britain</a>
    Code (markup):
    I can't see this any where. I visited my test3.php file and view source in Mozilla and it shows
    If I can store html outcome into variable then it will be easy to extract country name from it. How to store html outcome of this file to variable.

    GlobalCashSite
     
    globalcashsite, Apr 27, 2011 IP
  7. SabTech

    SabTech Member

    Messages:
    892
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    35
    #7

    Hey you just highlight the country name with your mouse and rightclick > View Selection Source

    Cheers,
    Sab.
     
    SabTech, Apr 27, 2011 IP
  8. globalcashsite

    globalcashsite Peon

    Messages:
    806
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Thank you, then how to store html outcome of this test3.php into variable so I can extract country name from it. Do I need to explode() command to break it or what?


    GlobalCashSite
     
    globalcashsite, Apr 27, 2011 IP
  9. lioncub5

    lioncub5 Peon

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    use regex (or DOM i guess) to get the text from a button.
    i have a script for the google OCR api if anyone is interested.
     
    lioncub5, Apr 30, 2011 IP