GithubHelp home page GithubHelp logo

Comments (5)

mscottml avatar mscottml commented on July 24, 2024 1

The model outputs are corrected with a lexicon as evaluated in ICDAR 2015, and the text instances with < 3 characters are discarded. Please comment out the corresponding code here: https://github.com/MalongTech/research-charnet/blob/361d7fa07bdbfa857b4c24ce76c4d5686473eb67/charnet/modeling/postprocessing.py#L170 and try again.

from research-charnet.

dfayzur avatar dfayzur commented on July 24, 2024

I am having the same issue. My use use is for numbers. I inference can detect 3 and 3+ digits, but does not detect anything for 1 or 2 digits.

Can you guide me, if I need to change any parameters for make it working?

from research-charnet.

dfayzur avatar dfayzur commented on July 24, 2024

@mscottml : Thank you very much for your reply and the direction.

if len(word_ins.text) < 1:

in filter_and_correct function, and the inference returns detection for digits with 2 numbers. Thanks.

But, my change does not work for digit with 1 number. Is it something to do with word_ins.text_score?

from research-charnet.

mscottml avatar mscottml commented on July 24, 2024

@dfayzur

It might be due to this. But please print "word_instances" before this filtering to check. The code is here https://github.com/MalongTech/research-charnet/blob/361d7fa07bdbfa857b4c24ce76c4d5686473eb67/charnet/modeling/postprocessing.py#L194.

from research-charnet.

dfayzur avatar dfayzur commented on July 24, 2024

@mscottml
I did print as you suggested. The output is as follows:

<charnet.modeling.postprocessing.WordInstance object at 0x7fbb085180f0>
<charnet.modeling.postprocessing.WordInstance object at 0x7fbb08518160>
<charnet.modeling.postprocessing.WordInstance object at 0x7fbb085181d0>
<charnet.modeling.postprocessing.WordInstance object at 0x7fbb08518240>
<charnet.modeling.postprocessing.WordInstance object at 0x7fbb085182b0>
<charnet.modeling.postprocessing.WordInstance object at 0x7fbb08518320>
<charnet.modeling.postprocessing.WordInstance object at 0x7fbb08518390>
<charnet.modeling.postprocessing.WordInstance object at 0x7fbb08518400>
<charnet.modeling.postprocessing.WordInstance object at 0x7fbb08518470>
<charnet.modeling.postprocessing.WordInstance object at 0x7fbb085184e0>
<charnet.modeling.postprocessing.WordInstance object at 0x7fbb08518550>

it is returning "WordInstance". I also did print word_ins.text. And it is returning the word. But it is not printing any digit with one number.

Maybe I need to see the function parse_words, how it is parsing a word.

from research-charnet.

Related Issues (20)

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.