DoubangoTelecom / ultimateMICR-SDK

Bank check information extraction/OCR from Magnetic Ink Character Recognition [MICR] (E-13B & CMC-7) using deep learning
https://www.doubango.org/webapps/micr/
Other
54 stars 20 forks source link

c# sample not returning values #29

Closed TomasCastan closed 4 years ago

TomasCastan commented 4 years ago

Hi, I'm interested in using this product but when testing the c# sample with the recommendeded configuration I always get the same result, the program just prints Result: {"duration":73,"frame_id":0}. (The duration value changes accordingly with each execution) Am I missing something? Thanks

DoubangoTelecom commented 4 years ago

Please share the full logs and the sample image you're using. Have you tried the image with https://www.doubango.org/webapps/micr/?

TomasCastan commented 4 years ago

Sure, here is the log. I was using the sample image "cmc7_1280x720.jpg", it works ok in the web application. UltimateMICR-SDK.log

DoubangoTelecom commented 4 years ago

I have tried on multiple machines and I always get the correct result. "cmc7_1280x720.jpg" is a pretty simple image. 1/ try running https://github.com/DoubangoTelecom/ultimateMICR-SDK/blob/master/binaries/windows/x86_64/recognizer_cmc7.bat and see if it's working. This bat file uses the c++ sample with code at https://github.com/DoubangoTelecom/ultimateMICR-SDK/blob/master/samples/c%2B%2B/recognizer/recognizer.cxx. 2/ If it's working, make sure you're using the right image 3/ Change 'CONFIG_DEBUG_WRITE_INPUT_IMAGE' at https://github.com/DoubangoTelecom/ultimateMICR-SDK/blob/99bfb57ef4837d2d8ea224d885dccdf12f605037/samples/csharp/recognizer/Program.cs#L54 value from false to true then run the C# sample again. You'll have a "ultimateMICR-input.png" image generated in the folder as recognizer.exe. Share with us "ultimateMICR-input.png". More info at https://www.doubango.org/SDKs/micr/docs/Debugging_the_SDK.html

DoubangoTelecom commented 4 years ago

Another option to try is disabling GPGPU acceleration (https://github.com/DoubangoTelecom/ultimateMICR-SDK/blob/99bfb57ef4837d2d8ea224d885dccdf12f605037/samples/csharp/recognizer/Program.cs#L90) and sharing the logs. I see that you've an Intel GPU which is used.

TomasCastan commented 4 years ago

Disabling the GPGPU acceleration did it! Thank you so much for your time and assistance.