Results 1 to 8 of 8

Thread: How To Get Text From An Image

  1. #1

    Thread Starter
    Lively Member SNIPER.PS's Avatar
    Join Date
    Dec 2009
    Posts
    96

    Arrow How To Get Text From An Image

    Hello Guys

    How To Get Text From An Image Like This Image By Code



    Thanks For All
    الحمد لله

  2. #2
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    Re: How To Get Text From An Image

    You'll need OCR software.

    However if you are trying to crack "capcha" codes we don't have those discussions here. It is against policy to support such efforts.

  3. #3

    Thread Starter
    Lively Member SNIPER.PS's Avatar
    Join Date
    Dec 2009
    Posts
    96

    Arrow Re: How To Get Text From An Image

    Quote Originally Posted by dilettante View Post
    You'll need OCR software.

    However if you are trying to crack "capcha" codes we don't have those discussions here. It is against policy to support such efforts.
    no no not crack i used this way in my prgramm , that is it
    الحمد لله

  4. #4
    Addicted Member BlueRose's Avatar
    Join Date
    Jan 2002
    Location
    ISTANBUL
    Posts
    245

    Re: How To Get Text From An Image

    first you must convert picture to array which has 0 and 1 values for pixel.
    in another words picture must converted into bitmap that has only white & black color.

    second you must distinguish the letters in these array

    third you must find the letter form for each seperated bitmap

    these are the main steps to work.
    You can do while you think that you can do

    If you think my answer solve your question, please rate it.

  5. #5
    Frenzied Member
    Join Date
    Jan 2010
    Location
    Connecticut
    Posts
    1,687

    Re: How To Get Text From An Image

    That is a difficult task. It will require hundreds of lines of code.
    VB6 Library

    If I helped you then please help me and rate my post!
    If you solved your problem, then please mark the post resolved

  6. #6

    Thread Starter
    Lively Member SNIPER.PS's Avatar
    Join Date
    Dec 2009
    Posts
    96

    Arrow Re: How To Get Text From An Image

    Quote Originally Posted by BlueRose View Post
    first you must convert picture to array which has 0 and 1 values for pixel.
    in another words picture must converted into bitmap that has only white & black color.

    second you must distinguish the letters in these array

    third you must find the letter form for each seperated bitmap

    these are the main steps to work.
    can you help me by code .. Thanks
    الحمد لله

  7. #7
    PowerPoster
    Join Date
    Jan 2008
    Posts
    11,074

    Re: How To Get Text From An Image

    SNIPER...

    dilettante told you that you need OCR software and thats basically it. Even with that it becomes extremely difficult because the text in a picture cannot always be determined. If the picture with text is like the one you posted and the text font won't change you might be able to do it like BlueRose suggested but you will need pattern matching (ie, you need a bitmap of each possible character in the picture of the same size and font) once you have extracted out the black pixels.
    Last edited by jmsrickland; Apr 29th, 2011 at 01:15 AM.


    Anything I post is an example only and is not intended to be the only solution, the total solution nor the final solution to your request nor do I claim that it is. If you find it useful then it is entirely up to you to make whatever changes necessary you feel are adequate for your purposes.

  8. #8
    Addicted Member BlueRose's Avatar
    Join Date
    Jan 2002
    Location
    ISTANBUL
    Posts
    245

    Re: How To Get Text From An Image

    there are examples on the planetsourcecode

    http://www.planetsourcecode.com/vb/s...54523&lngWId=1
    http://www.planetsourcecode.com/vb/s...48515&lngWId=1
    http://www.planetsourcecode.com/vb/s...32191&lngWId=1

    and my favorite is

    http://www.planetsourcecode.com/vb/s...22932&lngWId=1

    these examples can help you to understand the basis of the character recognition logic
    You can do while you think that you can do

    If you think my answer solve your question, please rate it.

Posting Permissions

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



Click Here to Expand Forum to Full Width