Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Does not run on 19.9.1 #26

Open
renedlog opened this issue Jan 22, 2020 · 5 comments
Open

Does not run on 19.9.1 #26

renedlog opened this issue Jan 22, 2020 · 5 comments

Comments

@renedlog
Copy link

Please update this example repository to run with the current Aspose OCR 19.9.1

@renedlog
Copy link
Author

renedlog commented Jan 22, 2020

Additional info:
seems ocrEngine.Process() seems to have a weird behavior.
Given Image Path:

\Aspose.OCR-for-.NET-master\Aspose.OCR-for-.NET-master\Examples\Data\OCR\Sampleocr.bmp

ocrEngine.Process() suddenly searches for the image in:

\Aspose.OCR-for-.NET-master\Aspose.OCR-for-.NET-master\Examples\CSharp\bin\x64\Debug\data

Error:

Aspose.OCR.OcrException
HResult=0x80131500
Message=Error occurred during recognition.
Source=Aspose.OCR
StackTrace:
at Aspose.OCR.OcrEngine.�()
at Aspose.OCR.OcrEngine.Process()
at Aspose.OCR.Examples.CSharp.PerformingandManagingOCR.PerformOCROnImage.Run() in C:\Users....\Downloads\Aspose.OCR-for-.NET-master\Aspose.OCR-for-.NET-master\Examples\CSharp\PerformingandManagingOCR\PerformOCROnImage.cs:line 22
at Aspose.OCR.Examples.CSharp.RunExamples.Main(String[] args) in C:\Users....\Downloads\Aspose.OCR-for-.NET-master\Aspose.OCR-for-.NET-master\Examples\CSharp\RunExamples.cs:line 33

This exception was originally thrown at this call stack:
System.IO.__Error.WinIOError(int, string)
System.IO.File.GetAttributes(string)
�  .�(string, string)
�  .�(System.Collections.Generic.IEnumerable)
�  .�  (System.Collections.Generic.IEnumerable)
�  .�  ()
�  .�  ()
�  .�  (�  , bool)
�  .�(�  , bool)
Aspose.OCR.OcrEngine.�()

Inner Exception 1:
FileNotFoundException: Could not find file 'C:\Users....\Downloads\Aspose.OCR-for-.NET-master\Aspose.OCR-for-.NET-master\Examples\CSharp\bin\x64\Debug\data'.

@ahmad-chishti
Copy link
Contributor

We are working on this and will get back to you soon.

@ma030899
Copy link

Hello, i want to ask how to deal with the situation above.

@ahmad-chishti
Copy link
Contributor

Hi,
We are in the process of addressing this issue. It is logged in our issue tracking system as OCRNET-36. For now, you can try the following workaround.

  1. Build your application in x64 mode instead of AnyCPU using .NET Framework 4.6.2 and higher.
  2. Manually download the package from NuGet and unpack it in your local system. Then copy the ‘data’ folder into your project Debug directory. The ‘data’ folder exists in ‘contentFiles’ directory of the downloaded package. In some cases, the above-mentioned workaround would not work as well and changing the name of NN weights in ’ /bin/Debug/data’ folder form ‘lines_l2.json’ to ‘crnn_l2.json’ is required as a hotfix.

The issue is also being discussed on the Free Support Forum here.

@ma030899
Copy link

ma030899 commented Mar 30, 2020 via email

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants