Created
March 23, 2018 21:38
-
-
Save Fhernd/52185ac5df9f8845c5a6fddc6ba99860 to your computer and use it in GitHub Desktop.
Reconocimiento de texto en imágenes. OrtizOL.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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