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/CAJbzG8y2JrTMzpdPW8DZqGEb81JJePsx3kFjniCHKcpxaH%2BuMg%40mail.gmail.com.

