configuring --tessdata-dir path in PythonAnywhere

Closed Posted 3 years ago Paid on delivery
Closed Paid on delivery

I configured my pytesstract path for additional traineddata like below

PATH = r"/home/wiltomalayalamocr/mysite/langfiles"

custom_oem_psm_config = '-l {} --psm {} --tessdata-dir {}'.format(lang,6,PATH)

text = pytesseract.image_to_string([login to view URL](filename) , config=custom_oem_psm_config)

my " langfiles" folder contains "[login to view URL]" file. but it always looking its default location and raise the error

[login to view URL]: (1, 'Tesseract Open Source OCR Engine v3.04.01 with Leptonica Error opening data file /usr/share/tesseract-ocr/tessdata/[login to view URL] Please make sure the TESSDATA_PREFIX environment variable is set to the parent directory of your "tessdata" directory. Failed loading language 'mal' Tesseract couldn't load any languages! Could not initialize tesseract.')

Please help...

$export TESSDATA_PREFIX = /home/wiltomalayalamocr/mysite/langfiles

The above code I typed and tried in Bash Console....But the same error..

Python

Project ID: #27569898

About the project

4 proposals Remote project Active 3 years ago

4 freelancers are bidding on average $24 for this job

visweswaran1998

I can fix this error for you I have extensive working experience with PythonAnywhere I can check the error logs and fix it for you I will fix it and show it to you once satisfied you can hire me

$20 USD in 1 day
(39 Reviews)
4.9
bhargavaganthi

I am good at python and linux which describes me best for this work and with my skills i would solve the error so quick as i worked on the similar tasks

$30 USD in 1 day
(0 Reviews)
0.0
abdou19890314

I can help you , contact me and we will discuss about this... ........ .............................

$35 USD in 1 day
(0 Reviews)
0.0