Hey Iqra Anwar,
     Hope you are doing well. Now I understand 😃 I assume you get
coordinates of text from your text detection code. You could use Pillow or
OpenCV to crop the text area out of the image. You could use pytesseract.
Please refer to this link. It's a python wrapper for Tesseract.
https://github.com/madmaze/pytesseract

Optional:
Tesseract has an scene text detection algorithm, as you have your own one,
you could save some time by disabling the script run to detect text by
tesseract. Try changing the --psm modes to 7 or 8 based on your text
detection code output.
https://github.com/tesseract-ocr/tesseract/blob/master/doc/tesseract.1.asc

Hope this helps.😉

Regards,
Krishna Prasad A S


On Sat, May 25, 2019 at 2:12 PM Iqra Anwar <[email protected]> wrote:

> Thanks dear
> I will try this link but I just want to know the steps to link tesseract
> ocr with my text detection code.
> Thanks again
>
> On Sat, May 25, 2019, 11:34 AM Krishna Prasad <[email protected]>
> wrote:
>
>> Hi Iqra Anwar,
>>
>> Sorry, I didn't understand your question. Tesseract is an OCR engine and
>> helps you only in recognizing characters in the number plate. If you are
>> getting a poor accuracy recognizing characters, you might try some
>> Preprocessing techniques before giving it to tesseract.
>>
>> https://github.com/tesseract-ocr/tesseract/wiki/ImproveQuality
>>
>>  In case if you want to detect number plate in an image, you might try
>> some object detection methods or Cascade classifiers.
>>
>> Hope this helps.
>>
>> Regards,
>> Krishna Prasad A S
>>
>>
>> On Sat, May 25, 2019, 10:57 AM Iqra Anwar <[email protected]>
>> wrote:
>>
>>> My project is "licence plate recognition" and which code is used only
>>> detect the image and number plate but not recognize the number plate. To
>>> solve this problem I used tesseract ocr but no gain . please help me how to
>>> use tesseract ocr.
>>> Sorry for poor English.
>>>
>>> --
>>> 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/CA%2BCz5c6ajq8bykFYxm7mKP1jmF8rCksOzNL2qGY5b1t7RTLyww%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/tesseract-ocr/CA%2BCz5c6ajq8bykFYxm7mKP1jmF8rCksOzNL2qGY5b1t7RTLyww%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/CANMRjBjB8TfRKn4GcEQkF5crBDA6of281kPTT%2BpW0se9qGEX9A%40mail.gmail.com
>> <https://groups.google.com/d/msgid/tesseract-ocr/CANMRjBjB8TfRKn4GcEQkF5crBDA6of281kPTT%2BpW0se9qGEX9A%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/CA%2BCz5c6f2-kcxrpf2fSkKp9FL-NaORaH_UTrL%3Dk6YnP86o%3Dx1A%40mail.gmail.com
> <https://groups.google.com/d/msgid/tesseract-ocr/CA%2BCz5c6f2-kcxrpf2fSkKp9FL-NaORaH_UTrL%3Dk6YnP86o%3Dx1A%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/CANMRjBjg24mx9VFhM1bEuv%2BQHg4Xz6TPBdCaRLefsuA7EudE4w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to