R
Railway10mo ago
Z3R0

I need to install tesseract OCR

Does someone know if i can install Tesseract OCR in Railway server to use in my project?
Solution:
try adding a nixpacks.toml to your project with this in it
[phases.setup]
nixPkgs = ['...', 'tesseract']
[phases.setup]
nixPkgs = ['...', 'tesseract']
...
Jump to solution
22 Replies
Percy
Percy10mo ago
Project ID: N/A
Z3R0
Z3R0OP10mo ago
N/A
Brody
Brody10mo ago
how do the docs say to install it?
Z3R0
Z3R0OP10mo ago
I found this docs about how to install but in local machine i guess
Z3R0
Z3R0OP10mo ago
Brody
Brody10mo ago
how have you installed it locally
Z3R0
Z3R0OP10mo ago
yes ant it worked in local host
Brody
Brody10mo ago
how
Z3R0
Z3R0OP10mo ago
using the installer.exe
Brody
Brody10mo ago
please dont send exe files
Z3R0
Z3R0OP10mo ago
oh, sorry but this is official you can get at the Tesseract github
Solution
Brody
Brody10mo ago
try adding a nixpacks.toml to your project with this in it
[phases.setup]
nixPkgs = ['...', 'tesseract']
[phases.setup]
nixPkgs = ['...', 'tesseract']
Z3R0
Z3R0OP10mo ago
okay, i'll test thanks C:\Program Files\Tesseract-OCR\tesseract.exe is not installed or it's not in your PATH. See README file for more information. i got this return
Brody
Brody10mo ago
from a deployment log on railway?
Z3R0
Z3R0OP10mo ago
when i tested my app, this was the return that i recivied in my .txt maybe because the railway server use debian and I passed in my code a windows reference I need to set a reference where the tesseract is
Brody
Brody10mo ago
you should not be telling your code where to find tesseract, the library should find it automatically
Z3R0
Z3R0OP10mo ago
yeah, i was thinking about it but its kinda weird I don't know why... I will try to push without the tesseract adress to see if the app is okay YOU ARE THE BEST Thanks my friend I Love ya thanks for this
Brody
Brody10mo ago
haha happy to help
Z3R0
Z3R0OP10mo ago
the error was that this tesseract needs a Linux to work in the right way on windows I need to set the tesseract address or better the tesseract path aaaaaaa now its working
Brody
Brody10mo ago
awesome
Z3R0
Z3R0OP10mo ago
thank yaaaa s2 how can i can close this thread ?? hahah
Brody
Brody10mo ago
we dont close threads here
Want results from more Discord servers?
Add your server