Giter Club home page Giter Club logo

Comments (10)

Dario-Mantegazza avatar Dario-Mantegazza commented on June 16, 2024 1

Unfortunately I cannot share example of images, but I can say that when no readable (low res) text is present the code fails in this way. For now I'm handling it with a try except and print in the except ' no readable text found'

from tamil_ocr.

gnana70 avatar gnana70 commented on June 16, 2024 1

Thanks for reporting this @Dario-Mantegazza , I will handle this in next version of the code.

Quick hack that may help in the low resolution text
Lower the threshold for text_threshold (can accept any value between 0 to 1). This can be done as below when initializing the ocr module.
ocr = OCR(detect=True,text_threshold=0.2)

from tamil_ocr.

gnana70 avatar gnana70 commented on June 16, 2024 1

@Dario-Mantegazza , Please update ocr_tamil package using below command.

pip install -U ocr_tamil

from tamil_ocr.

Dario-Mantegazza avatar Dario-Mantegazza commented on June 16, 2024 1

Thanks for the quick reply, I will also try to lower that threshold, (OT, it would be ideal to have a rough guide/doc on the different params and their effect).
Regarding updating the package, I'm now rebuilding my container image and I will update you on the results :)

from tamil_ocr.

Dario-Mantegazza avatar Dario-Mantegazza commented on June 16, 2024 1

@Dario-Mantegazza , Couldn't able to reproduce the issue. I have run the inference on the image you have shared above and attached the colab notebook that I have used to run this.

https://colab.research.google.com/drive/11tMrKEeMtoKILwFP8TeChnI8_bEIeulA?usp=sharing

OK, I will check if it is a problem with my setup and let you know next week. Thanks for your support in the meantime, it was super

from tamil_ocr.

Dario-Mantegazza avatar Dario-Mantegazza commented on June 16, 2024 1

sorry I got some unforeseen delays, I will probably get back to you next week

from tamil_ocr.

Dario-Mantegazza avatar Dario-Mantegazza commented on June 16, 2024 1

Ok it works. Earlier I was probably working with some cached version of the lib. My setup is not straightforward and this could have happened. Thanks for fixing the bug. If I have more issues like this I will post them here, but I'm sure this will not happen :)

from tamil_ocr.

Dario-Mantegazza avatar Dario-Mantegazza commented on June 16, 2024

I'm getting the same error. The container build, installed the version 0.3.6, I don't know if this helps.
At least by changing the threshold, now more images are read without errors.
Edit: I think I have a picture that I can share that fails even with the low threshold. here it is clear that no text is readable, this sometimes happens in our pipeline.
image

from tamil_ocr.

gnana70 avatar gnana70 commented on June 16, 2024

@Dario-Mantegazza , Couldn't able to reproduce the issue. I have run the inference on the image you have shared above and attached the colab notebook that I have used to run this.

https://colab.research.google.com/drive/11tMrKEeMtoKILwFP8TeChnI8_bEIeulA?usp=sharing

from tamil_ocr.

gnana70 avatar gnana70 commented on June 16, 2024
image

from tamil_ocr.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.