Pictograph Or Symbol Recognition In Java (android)
I am making an Android game the core mechanic of which is 'spell-casting' by drawing previously specified symbols. I tried Tesseract for this, but it recognizes gibberish as symbol
Solution 1:
Turns out what I needed was the confidence score. I used Tesseract from the command line so far. TSV output option does the job:
tesseract test.png stdout--psm 10 tsv
From all the information of the output, the attention should be paid to the two last columns in the bottom string. One of the symbols I used is a spiral, so here is the: spiral itself and the output. Tesseract recognized it as a spiral, which is coded as S and the confidence level is 83, which is pretty nice.
When I use a gibberish picture, on the other hand, the output for gibberish picture still shows it's an S, but now the confidence score is 19. Now it's pretty easy to filter out invalid input.
Post a Comment for "Pictograph Or Symbol Recognition In Java (android)"