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
On Sun, May 26, 2019 at 11:54 PM Zdenko Podobny <[email protected]> wrote:
> 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 <[email protected]> napĂsal(a):
>
>> Hi All,
>>
>> [image: 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 [email protected].
>> To post to this group, send email to [email protected].
>> 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
>> <https://groups.google.com/d/msgid/tesseract-ocr/d4df14b8-26da-4273-aae0-da56f5bc5b40%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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 post to this group, send email to [email protected].
> 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/CAJbzG8xyL6p1AB8%3DV9619hX-akz%3D3-hq4eW8NZpnuyEjvJNE3g%40mail.gmail.com
> <https://groups.google.com/d/msgid/tesseract-ocr/CAJbzG8xyL6p1AB8%3DV9619hX-akz%3D3-hq4eW8NZpnuyEjvJNE3g%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
--
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 post to this group, send email to [email protected].
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/CABaqVFWN_TVuAb2BZwy2tnj1ZxhJEUYU0ntCHxJHEev_8C8wAw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.