none
convert photo to text in c# RRS feed

  • Question

  • Hello
    I'm gonna get a picture from the user in C # and turn it into text
    It is meant to deliver the text on the photo to the user in plain text

    Monday, October 22, 2018 2:22 PM

All replies

  • Hello
    I'm gonna get a picture from the user in C # and turn it into text
    It is meant to deliver the text on the photo to the user in plain text

    pls help me


    Monday, October 22, 2018 2:24 PM
  • Hello, 

    Can you be more specific about type of picture you will have and about text expected to be provided?


    Sincerely, Highly skilled coding monkey.

    Monday, October 22, 2018 2:26 PM
  • Hi,

    text -> picture should be easy. For picture -> text you can use ocr. I'm using tesseract ocr library at home. It's working even for a lot of captchas.

    Greetings, Chris

    Monday, October 22, 2018 4:32 PM
  • Check this:

       string path = @"C:\Some Picture.bmp";

       byte[] bytes = File.ReadAllBytes( path );

       string picture_as_text = Convert.ToBase64String( bytes );

     

    There are functions to convert the text back to bytes and to file.


    Monday, October 22, 2018 5:40 PM