-
-
Notifications
You must be signed in to change notification settings - Fork 290
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
Wrong JPEG library version: library is 90, caller expects 80 #205
Labels
Comments
FYI # Build stage
FROM golang:1.15 as builder
ENV GO111MODULE=on
RUN rm -rf /etc/apt/sources.list && \
echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-free" >> /etc/apt/sources.list && \
apt-get update -qq
RUN apt-get install -y \
libleptonica-dev \
libtesseract-dev \
tesseract-ocr
RUN echo "Tesseract Version in Builder Stage:" >> /tess-versions && tesseract --version >> /tess-versions
# App stage
FROM ubuntu:20.04 as runner
COPY --from=builder /tess-versions /tess-versions
RUN rm -rf /etc/apt/sources.list && \
echo 'deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse'>>/etc/apt/sources.list && \
echo 'deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse'>>/etc/apt/sources.list && \
echo 'deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse'>>/etc/apt/sources.list && \
echo 'deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse'>>/etc/apt/sources.list && \
echo 'deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse'>>/etc/apt/sources.list
RUN apt-get update \
&& apt-get install -y \
libleptonica-dev \
libtesseract-dev \
tesseract-ocr \
mupdf \
mupdf-tools
RUN apt-get install -y \
tesseract-ocr-eng \
tesseract-ocr-chi-sim
RUN echo "\nTesseract Version in Runner Stage:" >> /tess-versions && tesseract --version >> /tess-versions
CMD ["cat", "/tess-versions"]
|
Hi, I Have This Exact Issue And Will Be Happy To Provide Any Information Needed To Find A Solution. Like OP, I'm Using go-fitz To Convert The PDF To Image, Then Feeding It To Gosseract. |
I am running into this issue as well. I am also using go-fitz. Would love to see a solution. |
Using PNG worked for me also. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
Hi, I wrote a ocrserver based on
gosseract
(frontend page based onhttps://github.com/otiai10/ocrserver
), below description all can be found in https://github.com/lzw5399/ocrserver.There is a demand that OCR the received pdf base64 string, so I add the https://github.com/gen2brain/go-fitz depandency to convert the pdf to image(png) page by page, then use gosseract recognize the image. but after
go-fizt
was added I found the jpeg related functionality didn't work well, It seems have version conflict.Thanks in advance for any help ^-^
client.SetImageFromBytes(bytes)
will return below errordocker exec
, and runfind -name '*libjpeg*'
I can't find anylibjpeg 90
related files. It's really confused meReproducibility
Reproducibility Frequency
Reproducible Dockerfile
Otherwise, describe how to reproduce
foo bar
spam ham
hoge fuga
Environment
The text was updated successfully, but these errors were encountered: