Hi,
Native environments have common tools and utilities included, however “Tesseract-OCR” isn’t one of them. The permissions of Native Environments are also restricted, preventing apt-get
and OS-level package installs.
What I said in another post is true. If you have a prebuilt binary, you can use the Build Command to add that to the environment and reference it directly, as customers already do with things like Chrome, dotnet, etc.
I have to admit, I’m not familiar with Tesseract, so it’s possible a self-contained binary may not be an option. OS-level package installs won’t be possible with dpkg -i
, due to the permission-levels mentioned above. dpkg -x
would allow you to extract the contents, which you might be able to reference directly, however, depending on any other dependencies or assumed file/library locations, that may or may not work.
I see you say Docker isn’t an option, but it gives you a lot more control over the app’s environment to be able to set it up exactly as you require, installing simply with apt-get
, without having to come up with complex workarounds to Native Environment permissions.
I was able to spin up this working (but trivial) pytesseract/Tesseract-OCR example in a few minutes: https://github.com/BigAlRender/pytesseract-docker-example
Kind regards
Alan