configuring --tessdata-dir path in PythonAnywhere
$10-30 USD
Dibayar saat pengiriman
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..
ID Proyek: #27569898
Tentang proyek
4 freelancer rata-rata menawar $24 untuk pekerjaan ini
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
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
I can help you , contact me and we will discuss about this... ........ .............................