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

running error #2

Open
cristian-sima opened this issue Jul 14, 2023 · 2 comments
Open

running error #2

cristian-sima opened this issue Jul 14, 2023 · 2 comments

Comments

@cristian-sima
Copy link

after installing it, I tried the example and I got this:

Error in pixReadStream: Unknown format: no pix returned
Error in pixRead: pix not read
Error in pixGetSpp: pix not defined
Error in pixGetDimensions: pix not defined
Error in pixGetColormap: pix not defined
Error in pixCopy: pixs not defined
Error in pixGetDepth: pix not defined
Error in pixGetWpl: pix not defined
Error in pixGetYRes: pix not defined
Please call SetImage before attempting recognition.
terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string: construction from null is not valid

@cfanatic
Copy link
Owner

What command did you run? Please share the complete log if possible.

@jurassicLizard
Copy link

try identifying the image before feeding it to the software using the ImageMagick tool "identify" or GIMP/Photoshop . It must be a valid image (jpg png tiff or gif) <--- Image formats that the leptonica library was compiled with

identify ../misc/input/receipt_2.jpg

the following will be written to output

identify: Not a JPEG file: starts with 0x76 0x65 `../misc/input/receipt_2.jpg' @ error/jpeg.c/JPEGErrorHandler/348.

It is therefore clear that the example images have somehow experienced a regression and are no longer useable. At least in my machine configuration . I get The exact same errors as you when running the unit tests or the software on its own.

Using another image that i made myself shows that the software processes the image without the errors above (albeit with other types of errors that are irrelevant in this context)

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

3 participants