Tesseract in docker image

Hi,

I am having issues getting SiYuan to work with tesseract.

I've installed tesseract into the docker image and downloaded the language packs.

Example dockerfile

FROM b3log/siyuan:v3.1.13

RUN apk update && apk add --no-cache --update tesseract-ocr

RUN cd /usr/share/tessdata && wget https://github.com/tesseract-ocr/tessdata/raw/main/eng.traineddata && wget https://github.com/tesseract-ocr/tessdata/raw/main/chi_sim.traineddata && wget https://github.com/tesseract-ocr/tessdata/raw/main/chi_tra.traineddata

ENTRYPOINT ["/opt/siyuan/entrypoint.sh"]

CMD ["/opt/siyuan/kernel"]

And I can find the following in the running container:

Screenshotfrom20241129010403.png

However, I do not see tesseract-ocr enabled in the container logs. I do not see any OCR results when I click on the context menu for OCR.

Any help appreciated. Thanks.

    Related articles

    Welcome to here!

    Here we can learn from each other how to use SiYuan, give feedback and suggestions, and build SiYuan together.

    Signup About
    Please input reply content ...