Skip to content

Instantly share code, notes, and snippets.

@Fhernd
Created March 23, 2018 21:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Fhernd/52185ac5df9f8845c5a6fddc6ba99860 to your computer and use it in GitHub Desktop.
Save Fhernd/52185ac5df9f8845c5a6fddc6ba99860 to your computer and use it in GitHub Desktop.
Reconocimiento de texto en imágenes. OrtizOL.
public class ReconocimientoTexto
{
public static void Main()
{
Document reconocmientoTexto = new Document();
reconocmientoTexto.Create(@"D:\imagenes\articulo.jpg");
reconocmientoTexto.OCR();
Image imagen = (Image) reconocmientoTexto.Images[0];
Layout layout = imagen.Layout;
foreach(Word palabra in layout.Palabras)
{
Console.WriteLine("Palabra: {0} - Confidencia: {1}",
palabra.Text, palabra.RecognitionConfidence);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment