Extracting Numbers From Bitmap In Android Using Tess-two Library
I want to extract a number from a Bitmap. I'm using the tess-two library, but it does not recognize correctly. Example Code: @Override public void onClick(View v) {
Solution 1:
Maybe this is somewhat late but anyways if I understand correctly what you want is only numbers as output.
The whitelist you provided is okay but tesseract will forcefully match the letters to the numbers specified in the whitelist. There is no way to make it omitt certain characters,but what you could do is set the whitelist for the whole alphabet and then manually separate letters from numbers in your code.
Solution 2:
baseApi.SetVariable("tessedit_char_whitelist", "0123456789");
Post a Comment for "Extracting Numbers From Bitmap In Android Using Tess-two Library"