Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Tesseract.Pix.Image.LoadFromFile : never finishing on published release .... #644

Open
xNiux opened this issue Jul 10, 2023 · 1 comment

Comments

@xNiux
Copy link

xNiux commented Jul 10, 2023

I have a very strange bug with function Tesseract.Pix.Image.LoadFromFile :

On debug : Perfect
On release : Perfect, but only on my PC, on other PC -> function never finish (no error ... just .... call never teminate ...)
On installation from pushing : function never finish (no error ... just .... call never teminate ...)

My code :
` Bitmap bmp = LoadPicture(bmpFile.FullName);

        if (debugMode)
        {
            debugWindow.writeDebugLine($"Open Bitmap for OCR : {bmpFile.Name}");
        }

        //TesseractOCR.Pix.Image img = TesseractOCR.Pix.Image.LoadFromFile(bmpFile.FullName);
        Pix img = Pix.LoadFromFile(bmpFile.FullName);

        if (debugMode)
        {
            debugWindow.writeDebugLine($"OCR processing started on {bmpFile.Name}");
        }

`

On my console window, I have the first debug message, but never the 2nd one ... And application doesn't crash ... just ... waiting ...

Tesseract : 5.2.0
Target application : .net Framework 4.8
Output Type : Windows Application

And ... I tried to used another Tesseract nuget Package (Named TesseractOCR), and I have exactly the same result !
Have you any idea ?

@xNiux
Copy link
Author

xNiux commented Jul 10, 2023

OK, it is the same issue than ticket #636 ... Just copy folder x86 and x64 from Packages/tesseract to project root and add it to compilation in "always copy"

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

No branches or pull requests

1 participant