So lets summarize it:
You asked tesseract to use legacy engine with some language model.
tesseract failed.
Conclusion => you did not provided provided language model with legacy
model.

Zdenko


št 9. 1. 2020 o 10:25 MATHANKUMAR m <[email protected]> napísal(a):

> yeah i can see it from help command & understand the process little bit.
> but have any idea about legacy concepts.
>
> On Thursday, 9 January 2020 14:09:32 UTC+5:30, zdenop wrote:
>>
>> Do you understand what it mean when you use --oem 0?
>>
>> Zdenko
>>
>>
>> št 9. 1. 2020 o 9:17 MATHANKUMAR m <[email protected]> napísal(a):
>>
>>> Actually,I do not know how to set up this legacy type. but in OEM 0 &1
>>> got this error
>>>
>>> *Error: Tesseract (legacy) engine requested, but components are not
>>> present in /usr/share/tesseract-ocr/4.00/tessdata/eng.traineddata!!*
>>>
>>>
>>> On Thursday, 9 January 2020 13:22:37 UTC+5:30, zdenop wrote:
>>>>
>>>> Do you use model with legacy engine support?
>>>>
>>>> Zdenko
>>>>
>>>>
>>>> št 9. 1. 2020 o 8:43 MATHANKUMAR m <[email protected]> napísal(a):
>>>>
>>>>> Hi,
>>>>>
>>>>>     In tesserct-ocr config method i did used OEM & PSM for extract the
>>>>> text from image. But during process i got an exception like below 
>>>>> mentioned
>>>>>
>>>>>  Error : "Error, unknown command line argument '-psm'"
>>>>>
>>>>> * Method tried:*
>>>>>
>>>>>    - using threw config variable
>>>>>
>>>>>                        config_var = '--oem 3 --psm 6',
>>>>>                        *out* = pytesseract.image_to_string(image,lang=
>>>>> 'eng',config=config_var)
>>>>>
>>>>>    -  using directly to the line
>>>>>
>>>>>                        *out* = pytesseract.image_to_string(image,lang=
>>>>> 'eng',config= '--oem 3 --psm 6')
>>>>>
>>>>>    And also tried by replacing *--psm *into *-psm *.But it is not
>>>>> resolved.
>>>>>
>>>>>    The OEM is working in *--oem 3 & --oem 1, *but using *0,2 * i get
>>>>> result as,
>>>>>
>>>>>
>>>>> * Failed loading language 'eng' , **Tesseract couldn't load any
>>>>> languages! **.*
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "tesseract-ocr" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to [email protected].
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/tesseract-ocr/e87784bf-f688-42d4-a95a-1e55f6d91807%40googlegroups.com
>>>>> <https://groups.google.com/d/msgid/tesseract-ocr/e87784bf-f688-42d4-a95a-1e55f6d91807%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "tesseract-ocr" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/tesseract-ocr/5afb9973-5b2f-4d4d-97f1-f44456d0d4ae%40googlegroups.com
>>> <https://groups.google.com/d/msgid/tesseract-ocr/5afb9973-5b2f-4d4d-97f1-f44456d0d4ae%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "tesseract-ocr" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tesseract-ocr/479c80ed-6bad-422e-9820-a61bd49c3235%40googlegroups.com
> <https://groups.google.com/d/msgid/tesseract-ocr/479c80ed-6bad-422e-9820-a61bd49c3235%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/CAJbzG8yUSEGTn0VrRHqv%3DXz3USbYU%3DzZh%3DdbqqaAMRPHCgj1qQ%40mail.gmail.com.

Reply via email to