#pytesseract and tesseract

11 messages · Page 1 of 1 (latest)

white elm
#

Hi,
I would like to run an python API to use OCR function from pytesseract, but it needs to install the tesseract from google. Any idea how to do it in Railway?

jaunty summitBOT
#

Project ID: N/A

odd fableBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

white elm
#

N/A

velvet geode
#

but it needs to install the tesseract from google
please provide more information

white elm
#

I need to install a binary in windows or run $brew install tesseract on MAC to be able to use the library pytesseract.

#

I don't know if it is possible to install it someway in railway, or if I need to have it in a docker, and run everything from there

velvet geode
#

it looks like it's available as a nix package
add this nixpacks.toml file to your project

[phases.setup]
nixPkgs = ["...", "tesseract"]
white elm
#

That is great. I will test. Thank you

odd fableBOT