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

Error in pixReadStreamJp2k #57

Open
walter-weinmann opened this issue Mar 15, 2022 · 5 comments
Open

Error in pixReadStreamJp2k #57

walter-weinmann opened this issue Mar 15, 2022 · 5 comments

Comments

@walter-weinmann
Copy link

walter-weinmann commented Mar 15, 2022

Environment

  • Tesseract Version:
tesseract v5.0.0.20211201
 leptonica-1.78.0
  libgif 5.1.4 : libjpeg 8d (libjpeg-turbo 1.5.3) : libpng 1.6.34 : libtiff 4.0.9 : zlib 1.2.11 : libwebp 0.6.1 : libopenjp2 2.3.0
 Found AVX2
 Found AVX
 Found FMA
 Found SSE4.1
 Found libarchive 3.5.0 zlib/1.2.11 liblzma/5.2.3 bz2lib/1.0.6 liblz4/1.7.5 libzstd/1.4.5
 Found libcurl/7.77.0-DEV Schannel zlib/1.2.11 zstd/1.4.5 libidn2/2.0.4 nghttp2/1.31.0
  • Commit Number:
  • Platform:

image

Current Behavior:

Error in pixReadStreamJp2k: version 2.3.0: differs from minor = 2 Error in pixReadStream: jp2: no pix returned Error in pixRead: pix not read Error during processing.

The file is available here

Expected Behavior:

Converting jp2 image to pdf file.

Suggested Fix:

@stweil
Copy link
Member

stweil commented Mar 15, 2022

Please try whether that issue also occurs with the latest Tesseract for 'Windows. If possible try also Tesseract on Linux.

@walter-weinmann
Copy link
Author

@stweil

I did install the latest version from here

image

Result:

image

but tesseract --version shows 5.0.0 (see above)

@stweil
Copy link
Member

stweil commented Mar 15, 2022

I cannot confirm that:
Are you sure that you really run the latest version? Please look also on the timestamp of tesseract.exe.

$ wine tesseract --version
tesseract v5.0.1.20220118
 leptonica-1.78.0
  libgif 5.1.4 : libjpeg 8d (libjpeg-turbo 1.5.3) : libpng 1.6.34 : libtiff 4.0.9 : zlib 1.2.11 : libwebp 0.6.1 : libopenjp2 2.3.0
 Found AVX2
 Found AVX
 Found FMA
 Found SSE4.1
 Found libarchive 3.5.0 zlib/1.2.11 liblzma/5.2.3 bz2lib/1.0.6 liblz4/1.7.5 libzstd/1.4.5
 Found libcurl/7.77.0-DEV Schannel zlib/1.2.11 zstd/1.4.5 libidn2/2.0.4 nghttp2/1.31.0

@stweil
Copy link
Member

stweil commented Mar 15, 2022

... and there is no need for screenshots here.

@walter-weinmann
Copy link
Author

I finally managed to install the latest Windows version:

C:\Users\walte>tesseract --version
tesseract v5.0.1.20220118
 leptonica-1.78.0
  libgif 5.1.4 : libjpeg 8d (libjpeg-turbo 1.5.3) : libpng 1.6.34 : libtiff 4.0.9 : zlib 1.2.11 : libwebp 0.6.1 : libopenjp2 2.3.0
 Found AVX2
 Found AVX
 Found FMA
 Found SSE4.1
 Found libarchive 3.5.0 zlib/1.2.11 liblzma/5.2.3 bz2lib/1.0.6 liblz4/1.7.5 libzstd/1.4.5
 Found libcurl/7.77.0-DEV Schannel zlib/1.2.11 zstd/1.4.5 libidn2/2.0.4 nghttp2/1.31.0

But still the same error:

Error in pixReadStreamJp2k: version 2.3.0: differs from minor = 2 Error in pixReadStream: jp2: no pix returned Error in pixRead: pix not read Error during processing.

This does not happen with the Ubuntu version.

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

2 participants