Using ML Kit Vision Quickstart demo code downloaded from GitHub for text recognition of still images. Photos are sample game menus. Text Recognition Latin module fails to recognize the single capital letter "B" as either block, line or element. Screen shots below show recognized text overlaid in black on white.
To Reproduce
Run Vision Quickstart app (either Java or Kotlin version)
Select StillImageActivity button from menu
Select still image from album
Select Text Recognition Latin from Object Detection spinner
Code displays recognized (or not) text lines on original still image using black on white overlays
** Sample emulator screen shots from Quickstart app
Does not recognize line with letter "B"
Correctly identifies all four single character lines A, E, C, D
Does not recognize line with single char "B "
Expected behavior
Text Recognition Latin feature should recognize all large block Latin letters from sample game menus. Works OK for several menus, but fails to read standalone capital letter "B" as either block, line or element. Confirmed by inspection of LOGCAT file.
SDK Info:
version unclear - here is list of imports from downloaded GitHub code
Development Environment:
Android Studio Dolphin | 2021.3.1 Patch 1
Build #AI-213.7172.25.2113.9123335, built on September 29, 2022
Runtime version: 11.0.13+0-b1751.21-8125866 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
I also had this issue, but with the letters 'Q' and 'O'. These letters are ignored for some reason. I'm guessing the the ML kit is trained for words, not individual letters.
Using ML Kit Vision Quickstart demo code downloaded from GitHub for text recognition of still images. Photos are sample game menus. Text Recognition Latin module fails to recognize the single capital letter "B" as either block, line or element. Screen shots below show recognized text overlaid in black on white.
To Reproduce
** Sample emulator screen shots from Quickstart app
Does not recognize line with letter "B"
Correctly identifies all four single character lines A, E, C, D
Does not recognize line with single char "B "
Expected behavior Text Recognition Latin feature should recognize all large block Latin letters from sample game menus. Works OK for several menus, but fails to read standalone capital letter "B" as either block, line or element. Confirmed by inspection of LOGCAT file.
SDK Info: version unclear - here is list of imports from downloaded GitHub code
import com.google.mlkit.vision.text.Text import com.google.mlkit.vision.text.TextRecognition import com.google.mlkit.vision.text.TextRecognizer import com.google.mlkit.vision.text.TextRecognizerOptionsInterface
Smartphone:
Development Environment: Android Studio Dolphin | 2021.3.1 Patch 1 Build #AI-213.7172.25.2113.9123335, built on September 29, 2022 Runtime version: 11.0.13+0-b1751.21-8125866 aarch64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
MacBook Pro (14-inch, 2021) macOS 12.6