1
votes

Are there any method for Nativescript core with offline Firebase ML kit for vertical text recognition? It works really good for horizontal text, but I need to scan maritime containers and some of them have the id in vertical mode. It seems to have problems with independant letters.

Example: (I need to get the text of the right) enter image description here

Another example: enter image description here

I have tried it with an old Huawei and Samsung Galaxy s8 so I think that is not a camera problem.

It seems not to be problem of the picture, because I try with a simple text on a .txt like this:

A
B
C
U
1
2
3
4
5
6
0

and it doesn´t works it only reads like:

ABCU1234560

There must be a single characters problem because if I edit the first picture converting Id in horizontal format it works, like in the example: enter image description here

But I need to catch the vertical one in offline mode

I have just tried in a microsoft word doc and it works fine with this:

AA
BB
CC
UU

and it doesn't works for

A
B
C
U

I looked for any kind of param or config in the plugin files who limits the chars to "more than one", but it semms not to be anything with that funcionality. (sometimes it can scan for one letter like "A", but not the other ones except if there are more than one char.

Now I tried with this with good results:

AA A
BB  B
CC   C
UU    U

It seems that the ocr doesn't detect when it have to start.

Any idea about how to force a start recognicing when there are only one char?

1
What you mean by having problems with independent letters, could you please elaborate? Is it not recognized at all? - Manoj
Hi, yes I just upload an example. I have no problems recognizing words, but when is a single char it doesn't work for me. Some letters can be recogniced but most of them can't. - CVO
I tried with more than 30 different containers - CVO
And the cloud version? Does it work better? And does it help with a larger picture (closer to the container)? - Eddy Verbruggen
the problem is that It needs to be offline. I have updated the info (tried to do this with clean text so, I think is not problem of the picture) - CVO

1 Answers

0
votes

Only can be done with online mode (that works perfect) for this case. Could solve this saving the photos in local gallery and recover them when can access to internet to do the stuff. Is not clean, but is the unique method without online optimized recognition.