Foros del Web » Programación para mayores de 30 ;) » .NET »

Problema con OCR TESSERACT

Estas en el tema de Problema con OCR TESSERACT en el foro de .NET en Foros del Web. Buenos días, Tengo Visual studio 2012 y al momento de ejecutar no tengo problemas, el problema esta cuando genero el setup ( Publicacion ), lo ...
  #1 (permalink)  
Antiguo 25/07/2015, 10:49
 
Fecha de Ingreso: marzo-2013
Mensajes: 25
Antigüedad: 11 años
Puntos: 0
Problema con OCR TESSERACT

Buenos días,
Tengo Visual studio 2012 y al momento de ejecutar no tengo problemas, el problema esta cuando genero el setup ( Publicacion ), lo he probado en x86 y x64.

Me sale lo siguiente:


Consulte el final de este mensaje para obtener más detalles sobre cómo invocar a la depuración
Just-In-Time (JIT) en lugar de a este cuadro de diálogo.

************** Texto de la excepción **************
System.Reflection.TargetInvocationException: Se produjo una excepción en el destino de la invocación. ---> System.DllNotFoundException: Failed to find library "liblept168.dll" for platform x86.
en InteropDotNet.LibraryLoader.LoadLibrary(String fileName, String platformName)
en InteropRuntimeImplementer.LeptonicaApiSignaturesIn stance.LeptonicaApiSignaturesImplementation..ctor( LibraryLoader loader)
--- Fin del seguimiento de la pila de la excepción interna ---
en System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
en System.Reflection.RuntimeConstructorInfo.Invoke(Bi ndingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
en System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)
en System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
en System.Activator.CreateInstance(Type type, Object[] args)
en InteropDotNet.InteropRuntimeImplementer.CreateInst ance[T]()
en Tesseract.Interop.LeptonicaApi.Initialize()
en Tesseract.Interop.TessApi.Initialize()
en Tesseract.Interop.TessApi.get_Native()
en Tesseract.TesseractEngine..ctor(String datapath, String language, EngineMode engineMode, IEnumerable`1 configFiles)
en Tesseract.TesseractEngine..ctor(String datapath, String language, EngineMode engineMode)
en Libreria.Persona.UseTesseract() en c:\Users\gmatta\Desktop\Consulta RUC\ConsultReniec\Persona.cs:línea 107
en WindowsFormsApplication1.Form1.txtNumDni_KeyPress( Object sender, KeyPressEventArgs e) en c:\Users\gmatta\Desktop\Consulta RUC\WindowsFormsApplication1\Form1.cs:línea 123
en System.Windows.Forms.Control.OnKeyPress(KeyPressEv entArgs e)
en System.Windows.Forms.Control.ProcessKeyEventArgs(M essage& m)
en System.Windows.Forms.Control.ProcessKeyMessage(Mes sage& m)
en System.Windows.Forms.Control.WmKeyChar(Message& m)
en System.Windows.Forms.Control.WndProc(Message& m)
en System.Windows.Forms.TextBoxBase.WndProc(Message& m)
en System.Windows.Forms.TextBox.WndProc(Message& m)
en System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m)
en System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
en System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Ensamblados cargados **************
mscorlib
Versión del ensamblado: 4.0.0.0
Versión Win32: 4.0.30319.34209 built by: FX452RTMGDR
Código base: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
Usuario
Versión del ensamblado: 1.0.0.0
Versión Win32: 1.0.0.0
Código base: file:///C:/Program%20Files/VALSUNAT/GPM/Usuario.exe
----------------------------------------
System.Windows.Forms
Versión del ensamblado: 4.0.0.0
Versión Win32: 4.0.30319.34251 built by: FX452RTMGDR
Código base: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Versión del ensamblado: 4.0.0.0
Versión Win32: 4.0.30319.34209 built by: FX452RTMGDR
Código base: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
Versión del ensamblado: 4.0.0.0
Versión Win32: 4.0.30319.34238 built by: FX452RTMGDR
Código base: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Configuration
Versión del ensamblado: 4.0.0.0
Versión Win32: 4.0.30319.34209 built by: FX452RTMGDR
Código base: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Versión del ensamblado: 4.0.0.0
Versión Win32: 4.0.30319.34234 built by: FX452RTMGDR
Código base: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Windows.Forms.resources
Versión del ensamblado: 4.0.0.0
Versión Win32: 4.0.30319.18408 built by: FX451RTMGREL
Código base: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_es_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------
ConsultReniec
Versión del ensamblado: 1.0.0.0
Versión Win32: 1.0.0.0
Código base: file:///C:/Program%20Files/VALSUNAT/GPM/ConsultReniec.DLL
----------------------------------------
System.Core
Versión del ensamblado: 4.0.0.0
Versión Win32: 4.0.30319.34209 built by: FX452RTMGDR
Código base: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
Tesseract
Versión del ensamblado: 2.3.0.0
Versión Win32: 2.3.0.0
Código base: file:///C:/Program%20Files/VALSUNAT/GPM/Tesseract.DLL
----------------------------------------
InteropRuntimeImplementer.LeptonicaApiSignaturesIn stance
Versión del ensamblado: 0.0.0.0
Versión Win32: 2.3.0.0
Código base: file:///C:/Program%20Files/VALSUNAT/GPM/Tesseract.dll
----------------------------------------
mscorlib.resources
Versión del ensamblado: 4.0.0.0
Versión Win32: 4.0.30319.18408 built by: FX451RTMGREL
Código base: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_es_b77a5c561934e089/mscorlib.resources.dll
----------------------------------------

************** Depuración JIT **************
Para habilitar la depuración Just In Time (JIT), el archivo de configuración de esta
aplicación o equipo (machine.config) debe tener el
valor jitDebugging establecido en la sección system.windows.forms.
La aplicación también se debe compilar con la depuración
habilitada

Por ejemplo:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

Cuando esté habilitada la depuración JIT, cualquier excepción no controlada
se enviará al depurador JIT registrado en el equipo
en lugar de controlarlo mediante el cuadro de diálogo.


============================================

Por favor su apoyo, si necesitan un dato adicional, estaré atento.

NOTA: esta en C# y el dll es el Tesseract para reconocer OCR.

Etiquetas: c#
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 11:34.