mindee / doctr-tfjs-demo

Javascript demo of docTR, powered by TensorFlowJS
94 stars 20 forks source link

Text Characters appear jumbled up after detection #32

Closed silvererudite closed 2 years ago

silvererudite commented 2 years ago

Hi...@fg-mindee , @AbdelfattahSekak, @charlesmindee ...I'm trying to use this demo on sample restaurant menus to extract texts however a lot of the words detected are showing up jumbled like this Screenshot (3) As you can see, the word Starters is showing up as Starierst and a lot of words are also not being recognized. Interestingly this jumbling up doesn't happen when I run the same example on the Tensorflow version deployed on Hugging Face. Is there any special constraints/ limitations for the Tensorflow JS model or am I missing something important here?

fg-mindee commented 2 years ago

Hi @silvererudite :wave:

Thanks for the feedback! Glad you've been able to try both our demos the TFJS is still in beta, we're working on it this very day to try to bridge the gap between both demos, but here is a short explanation of the difference:

So my suggestion is:

Hope this helps!

silvererudite commented 2 years ago

@fg-mindee thanks a lot for the heads-up...will definitely try again after the fix

charlesmindee commented 2 years ago

This should be fixed by #33, thanks!