You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Blacklist and whitelist unsupported with LSTM (4.0) #751
Reacted by Sergio Correia, Daniel Rieske, Rimac Valdez Quispe, Louis Trezzini, Chen Ni, Adrian, Adam Tester, Zbigniew Matuszewski, Benjamin Kampfer, Re7eaL and 42 more
Are there plans to support whitelisting on LSTM in the future?
Reacted by Adam Tester, Zbigniew Matuszewski, Rimac Valdez Quispe, Ryan Cahill, jimquittenton, DarkFighter, Pete Williams, Joel Simon, Dmitrijs Jonins, aws and 21 more
has no effect on the output. The same with blacklist.
Tesseract returns not only ascii + language-specific characters but also some strange other characters from UTF-8.
Is there a way to get a full list of all possible characters, specific for a language or not? Basing on such list one could make a workaround to map such wrong characters to best fitting ones that are expected (like EM DASH to plain ASCII dash etc.) and remove those without any sensible fit. It would be useful for me in current circumstances and maybe it could be useful for others in need of whitelisting.
@theraysmith Are there plans to support this for LSTM?
Reacted by Zbigniew Matuszewski, hl, yoyoshuang, Pratheek Rebala, Benjamin Kampfer, mpmX, Rimac Valdez Quispe, Ryan Cahill, Amir Bawab, Michał Woś and 24 more
I would like to exclude everything except letters and digits from the result. I started from eng.traineddata and trained my font from graphical images (@Shreeshrii: thanks!!)) . Is there a way to get rid of all the other symbols, especially !"=)() ... ?
On Fri, 30 Aug 2019, 21:18 OllieD3711, ***@***.***> wrote:
This appears to be working for me, just upgraded my 4.0 version to 4.1.
FINALLY! lol been waiting on this.
@kev2316 <https://github.com/kev2316>
I'm having trouble upgrading to 4.1.0. I'm sure I'm doing something stupid
(using sudo apt-upgrade, and also tried sudo apt install), but when I try
upgrade, I'm told I already have the latest version,
4.00~git2288-10f4998a-2.
How can I upgrade to 4.1.0?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#751?email_source=notifications&email_token=ABG37I5ILLDA745L7XWIC6TQHE6LLA5CNFSM4DC3C6RKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5SBBTI#issuecomment-526651597>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABG37I6G7RJ7R3ZNMOFTPKLQHE6LLANCNFSM4DC3C6RA>
.
Activity
Cryspart commentedon Mar 9, 2017
Same problem for me with 4.00alpha, I tried to set
tessedit_char_whitelistby using:-c tessedit_char_whitelist=abcdefghijklmnopqrstuvwxyzBut I keep getting non letter results
I can provide Dockerfile + python script + images if needed
yshean commentedon Mar 14, 2017
Same problem for me. Still getting symbols and alphabets despite setting
tessedit_char_whitelist="0123456789".atefm commentedon Mar 28, 2017
I encountered the same issue today when using --oem 1,2,3. It works fine for --oem 0 (Original Tesseract).
DanielRieske commentedon Apr 12, 2017
I am encountering the same issue, is there a solution for this issue yet?.
amitdo commentedon Apr 12, 2017
No.
rimacv commentedon Apr 13, 2017
I am facing the same issue. Is it really a bug or is it just not supported for LSTM?
amitdo commentedon Apr 13, 2017
It's currently not supported for LSTM.
People, please do not add another "I have the same issue" comment.
Adrian-at-CrimsonAzure commentedon Jun 9, 2017
Are there plans to support whitelisting on LSTM in the future?
zbyszek-matuszewski commentedon Aug 4, 2017
I also have this problem when using Tesseract 4 from C++
has no effect on the output. The same with blacklist.
Tesseract returns not only ascii + language-specific characters but also some strange other characters from UTF-8.
Is there a way to get a full list of all possible characters, specific for a language or not? Basing on such list one could make a workaround to map such wrong characters to best fitting ones that are expected (like EM DASH to plain ASCII dash etc.) and remove those without any sensible fit. It would be useful for me in current circumstances and maybe it could be useful for others in need of whitelisting.
Shreeshrii commentedon Aug 4, 2017
@theraysmith Are there plans to support this for LSTM?
Shreeshrii commentedon Oct 3, 2017
In response to https://groups.google.com/forum/#!topic/tesseract-ocr/-oeCTcojYfw
You can try the plus-minus type of training if you just want a digits type of traineddata.
Your training_text can contain numbers in the format you need and you can train with a font matching your images.
For proof of concept you can try my experimental version at
https://github.com/Shreeshrii/tessdata_shreetest
ErnstTmp commentedon Oct 28, 2017
I would like to exclude everything except letters and digits from the result. I started from eng.traineddata and trained my font from graphical images (@Shreeshrii: thanks!!)) . Is there a way to get rid of all the other symbols, especially !"=)() ... ?
I am using --oem 1.
Thank you very much,
Ernst
smlum commentedon Mar 22, 2018
has this been resolved or anyone found a workaround?
amitdo commentedon Mar 22, 2018
No.
41 remaining items
Jinnrry commentedon Aug 16, 2019
Really excited ! It works!
stweil commentedon Aug 17, 2019
@nguyenq, can we close this issue?
nguyenq commentedon Aug 17, 2019
Didn't realize I'd opened this issue. It's been so long ago. :)
Shreeshrii commentedon Aug 30, 2019
stbt.ocr docstring: Note that LSTM engine ignores char_whitelist
stbt.ocr docstring: Note that LSTM engine ignores char_whitelist
mhellmeier commentedon Mar 20, 2020
Just to conclude and in addition:
To solve the black- and whitlist problem in version 4.0, two solutions have already been mentioned:
--oemflagThe Ubuntu package sources only contains tesseract version
4.0.0-beta.1. If you can't upgrade and don't want to use the legacy mode, try to build a simple black- or whitelist function if you are using tesseract with a wrapper in another programming language. One example with PyTesserocr can be found in this blog article: return2 – Python Tesseract 4.0 OCR: Recognize only numbers / digits and exclude all other characters.Shreeshrii commentedon Mar 20, 2020
Alex's ppa can be used on Ubuntu for the latest versions.
Please see https://github.com/tesseract-ocr/tesseract/wiki
tammarut commentedon May 10, 2020
amitdo commentedon May 10, 2020
v3ss0n commentedon Jun 28, 2022
Is your method 3 a joke? It is not detection of numbers only , it is filtering out text AFTER being detected.
Fix cross-panel OCR garbling, remove no-op whitelist, loosen density …