• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Google vision API: tune textBlock detection

Hello, I am writing an app which require some OCR from the camera. I am currently using google vision API as it seems to be the best option so I'm writing this question with that library in mind, but maybe I could use another API.

One of my goal is to get text from a paper like this one :



When the camera is correctly focused on the paper, I wanted to get only one text block with seven lines. From this seven string of text I'll be able to extract the data I need.

My issue is that I never get only one text block, it look like the space between each column is too big and I got 3 or sometimes 4 text block, from which I can't correctly extract the full lines.

The only workaround that I have in mind now is to break the textBlock up to the 'word' element and with the positions information of each word element I may be able to build back each lines. But this seems like a lot of work.

Is there any way to changes the parameters of the google vision API such that I can 'increase' the white space before it become another textBlock ? Or any other tuning that could make it work as I wanted ? Maybe using the black lines or whatever. Note that there is always 7 lines on the paper, starting with always the same letters as in my pictures. There maybe one or two columns with hours in each lines, or none like in the last line of my picture.

Thanks !

Machine Learning Tool For Visually Impaired People

I'm possibly going blind in the next few years if my doctor is accurate ): so i thought the best thing to make is an app i might use and since this type of app doesn't exist for the majority of android phones (only Google's phones) i made this semi-useful thing where it detects objects and spells them out in English, French, or Arabic, it also imbeds a simple text detector with the ability to copy the captured text, i will definitely be updating it as i improve in machine learning here's the link on google play! have a test and i would love your opinions
https://play.google.com/store/apps/details?id=dab.scuffedbots
it is also open source on github.com/iseegr8tfuldeadppl/Laya

Attachments

  • Screenshot_2019-07-18-19-11-48.png
    Screenshot_2019-07-18-19-11-48.png
    832.5 KB · Views: 205

WiFi Keeps Disconnecting

If it's any help to anyone, I had basically the same problem with my LG V20, which, apparently, is notorious for losing its WiFi connection. Infuriatingly, it was an intermittent fault. Don'tcha just love those? It would disconnect randomly and for no apparent reason. Sometimes it would go weeks without a problem, and then start playing up again. The past few days, however, it got really bad and couldn't stay connected to my home wifi for more than a minute or two. I had to keep putting it in aeroplane mode for a second or two, and then it would invariably re-connect. Like the OP, I scoured the forums for weeks looking for a solution, and I tried most of them - including a (highly inconvenient) factory reset. That seemed to work, too, but only for a week or two.

Finally, having noted by this time that it didn't seem to happen at other locations, I started thinking about the (dual band) Hauwai router I was given by my ISP and wondering if that might be the source of this problem that was by now driving me nuts. So I logged into my router's settings on my laptop and simply switched off the 5 Ghz signal to see if it would make any difference. Since then, the connection has been perfect. Two days later, it's gone from disconnecting practically every minute to remaining connected constantly. I don't claim to know why this has happened, or why the phone apparently couldn't handle the 5Ghz band running alongside the 2.4 Ghz one, but frankly I don't care. The important thing is it's working. Hope this helps someone else, too.

[FREE][GAME] Terra I, an Earth defense game

Hello all,

67170214_2403218289698569_4520405340478504960_n.png


A completely new Neten version is now available in the Play Store. Neten has been ported to Godot Game Engine with new exciting features:
-Revamped algorithm for a more challenging and less repetitive puzzles.
-Aesthetically pleasing animated low poly background.
Previous
11694860_939932899360456_8351729290526194651_n.png

Current
67117157_2403195129700885_6911570709705654272_n.jpg

-Three different difficulty levels along with new achievements
-UI tweening
-Minimal and less invasive ads

Hope you enjoy it.

Get it for free at https://play.google.com/store/apps/details?id=com.verogames.neten.android

Help Can't Delete Phone Files "Write Protected"

File explorer tells me that it's a protected file. I have to take the protection off of it in order to do it.
Just factory reset. If file persists, then you've likely got a bigger problem that will need reflashing of the factory firmware.. But most likely the issue is the implementation of Encryption to your data partition and everything has trouble dealing with those files. If you have TWRP, boot to the recovery and then move/copy as desired, should be easy. Of no TWRP available, then do the 1st suggestion

Filter

Back
Top Bottom