Not recognizing numbers in a number plate

74 views
Skip to first unread message

BBDS

unread,
May 26, 2019, 7:45:25 AM5/26/19
to tesseract-ocr
Hi All,

06k0274.jpg

Above is my image. I have been using default settings for the tesseract instance. Tess4j version is 4.0.2. Last digit of above number plate is identified as 2 instead 4. Thanks in advance

Zdenko Podobny

unread,
May 26, 2019, 2:24:29 PM5/26/19
to tesser...@googlegroups.com
you need to locate text properly and than do relevant call (in tess4j) to this command:

tesseract.exe plate.jpg - --psm 6
Warning: Invalid resolution 0 dpi. Using 70 instead.
06 K0274

Zdenko


ne 26. 5. 2019 o 13:45 BBDS <polixiai...@gmail.com> napísal(a):
Hi All,

06k0274.jpg

Above is my image. I have been using default settings for the tesseract instance. Tess4j version is 4.0.2. Last digit of above number plate is identified as 2 instead 4. Thanks in advance

--
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 tesseract-oc...@googlegroups.com.
To post to this group, send email to tesser...@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/d4df14b8-26da-4273-aae0-da56f5bc5b40%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Polixia Incubator

unread,
May 28, 2019, 3:06:53 AM5/28/19
to tesser...@googlegroups.com, zde...@gmail.com
Hi Zdenko,
I'm not executing that via command line. It is a Springboot service, which has below implementation. Can you suggest something for this as well. Thank you for the quick response.

ByteArrayInputStream bis =new ByteArrayInputStream(DatatypeConverter.parseBase64Binary(image));
ITesseract instance = new Tesseract();
instance.setDatapath("testdata");
instance.setLanguage("eng");
try
{
String imgText = instance.doOCR(ImageIO.read(bis));
return imgText;
}
catch (TesseractException e)
{
throw new ImageReaderException("Image processing filed", ImageReaderConstants.READ_ERROR_CODE, 500);
}
BBDS

Reply all
Reply to author
Forward
0 new messages