Open
Description
About a month ago I had a problem with Google Android Vision OCR when text detector returned items which after getting lines by getComponents() method of TextBlock had a "(' character added at the beginning. It wasn't the case for all the lines though.
Now I have very similar problem but now it is "8". It happens to about 1/3 - 1/2 of recognized lines.
How to approach such problem?
I get texts like that in receiveDetections method:
SparseArray<TextBlock> items = detections.getDetectedItems();
List<Text> all_lines = new ArrayList<>();
for (int i = 0; i < items.size(); ++i) {
TextBlock item = items.valueAt(i);
List<? extends Text> texts = item.getComponents();
for (Text t: texts) all_lines.add(t);
}
This is example how it looks
It is on Samsung Galaxy J5. On other phones it is ok though. It was also ok few hours ago.
Recompiling the app from clean build, reinstaling it, turning off and on again didn't work.