0

I feel like I've tried a bunch of different things but I cannot get passed this error.

An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)

Below is the VS2012 solution I am using to create an Image to Text spike using the EMGU engine.

Would someone please take a look and give my solution a try?

http://andrewherrick.com/spike/img2text.zip

enter image description here

4

1 回答 1

0

在 Debug 中,如果我在 之后断点var text = ocr.GetText(),这就是我在textWatch 窗口中得到的内容:

uiiiioii Slams m olhu COIIIIhiCS mm is z rcgislaad irzdmmrk\r\noi mm Cmpmzfiml iii uio uiiiioii Slams Sllll is z irzdmmrk 或 rcyslued irzdmmrk oi siiii\r\nMicrosysluns, Inc iii uio uiiiioii Slams and olhn' COIIIIhiCS mix is zoi\rcgidmm r\nTh: 0pm Group SVG is z irzdmmrk oflhc V/orld "lid: \Vcb Omlsorlium mark ofthc \V3C arc\r\nrcgsluad and hcld by its MslMTf, mm and Kcio Hclvclica and Timcs arc\r\nrcyslued hZdcmJrkS oi Liiiiiyponou AG andkvr its subsidiarics Aria] and TimCS Ncw Roman\r\narc irzdmmrks oi Th: Monolypc Cmpmzfiml rcgislaad iii 1h: us Pzlcnl and Trldcmirk onioo\r\nm may b: rcgisluad iii Cfifill olhu jlxisdicliolfi rrc by!' Dingbats is z rcyslued irzdmmrk\r\nOfllllfllafiollz] Typchcc Cmpmzfiml Ryiiiiiiiii Light is z irzdmmrk oi Morisawz Rn Co,

如果有帮助,这是我在调试中运行后在 VS2012 输出窗口中得到的内容:

'Img2Text.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll'
'Img2Text.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities\11.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.dll'
'Img2Text.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll'
'Img2Text.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll'
'Img2Text.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll'
'Img2Text.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities.Sync\11.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.Sync.dll'
'Img2Text.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualStudio.Debugger.Runtime\11.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Debugger.Runtime.dll'
'Img2Text.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Data\img2text\Img2Text\Img2Text\bin\Debug\Img2Text.vshost.exe'
'Img2Text.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll'
'Img2Text.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll'
'Img2Text.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Data.DataSetExtensions\v4.0_4.0.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll'
'Img2Text.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Microsoft.CSharp\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.CSharp.dll'
'Img2Text.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_32\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll'
'Img2Text.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll'
The thread 'vshost.NotifyLoad' (0x17e8) has exited with code 0 (0x0).
The thread 'vshost.LoadReference' (0x12bc) has exited with code 0 (0x0).
'Img2Text.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Data\img2text\Img2Text\Img2Text\bin\Debug\Img2Text.exe', Symbols loaded.
'Img2Text.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Data\img2text\Img2Text\Img2Text\bin\Debug\Emgu.CV.OCR.dll'
'Img2Text.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Data\img2text\Img2Text\Img2Text\bin\Debug\Emgu.Util.dll'
'Img2Text.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Data\img2text\Img2Text\Img2Text\bin\Debug\Emgu.CV.dll'
The thread 'vshost.RunParkingWindow' (0x1cc4) has exited with code 0 (0x0).
The thread '<No Name>' (0x140c) has exited with code 0 (0x0).
The program '[7864] Img2Text.vshost.exe: Managed (v4.0.30319)' has exited with code 0 (0x0).
于 2013-10-31T14:43:44.113 回答