CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2009
    Posts
    24

    can we convert a jpg image to text?

    hi

    i want to know that can we convert a jpg image to text? i mean to ask that i have a picture with some text on it so i want to read all the text on that image and display that text as text in csharp

    if this can be done then please help me how can i do this?

  2. #2
    Join Date
    Oct 2002
    Location
    Timisoara, Romania
    Posts
    14,360

    Re: can we convert a jpg image to text?

    You need an OCR library for that. One possibility is Office 2007 OCR, http://www.codeproject.com/KB/office...plication.aspx. Otherwise, look for commercial implementations.
    Marius Bancila
    Home Page
    My CodeGuru articles

    I do not offer technical support via PM or e-mail. Please use vbBulletin codes.

  3. #3
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    106

    Re: can we convert a jpg image to text?

    In case you have a constant font ,colour and positions you could try something with pixel comparing :
    First making all pixels black that are the colour you want and the rest white.
    Than check how many pixels are in a vertical line beneath eachother and compare that with values you know to find the character value

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

Featured