You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have tried to list languages by specifying a --tessdata-dir and pytesseract does not seem to consider that.
PS C:\Users\xxx\Desktop\xxx> python
Python 3.12.3 (tags/v3.12.3:f6650f9, Apr 9 2024, 14:05:25) [MSC v.1938 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from pytesseract.pytesseract import *
>>> get_languages()
['bhu', 'eng', 'lets']
>>> get_languages(config=r"--tessdata-dir C:\Users\xxx\Desktop\xxx\config\tesseract_tessdata")
['bhu', 'eng', 'lets']
>>> get_languages(config=r"--tessdata-dir C:\Users\xxx\Desktop\xxx\config\tesseract_tessdata")
['bhu', 'eng', 'lets']
>>> exit()
when i try the same in powershell. it works.
PS C:\Users\xxx\Desktop\xxx> tesseract --tessdata-dir C:\Users\KUD5RT\Desktop\xxx\config\tesseract_tessdata --list-langs
List of available languages in "C:\Users\xxx\Desktop\xxx\config\tesseract_tessdata/" (2):
bhu
bhu32
The text was updated successfully, but these errors were encountered:
I have tried to list languages by specifying a --tessdata-dir and pytesseract does not seem to consider that.
when i try the same in powershell. it works.
The text was updated successfully, but these errors were encountered: