• 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: 161

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.
Upvote 0

[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
Upvote 0

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
Upvote 0

Help Android LDAP contact Address Book live lookup, no times sync

I've got an LDAP contact address book, meant to lookup the S/MIME email encryption details of target mail recipients known to my company.

The LDAP is publicly available, as third parties can also use it to search the S/MIME details of specific staff based on their email address.

Because its publicly available to people I dont know, my LDAP supports anonymous lookup, ie no authentication is required.
Obviously I dont want my entire LDAP to be harvested, so as a counter measure, you can only do live lookups for a matching email address, and when searching for wildcard, only 1 email address is returned.

So I can add my LDAP in Android as a contact account. But apparently when looking up an email address from my default mail client, no email address is returned. Most likely because android does a sync and doesnt do a live lookup.
In Outlook for Windows an LDAP lookup for an addressbook works just fine.

My questions:
1) Can anyone knowledgable on the LDAP in Android, confirm that live lookups in an LDAP contact address book are or are indeed not possible?
2) When it is possible to do live lookups, could you kindly tell me how?
3) If a third party app might be required either for the LDAP support, or a specific mail client app, kindly do let me know

As my LDAP is publicly available, send me a PM and I will provide you with the details, should this help you with helping answering my questions. I also wouldnt mind posting it here, but could be considered a commercial advertisement, and thats definately not how I want to come across.

What is a BuildType in Gradle? And what can you use it for?

I see LV has graciously answered your rather impolite demand. For what it's worth, a 'please' or 'thanks in advance' can go a long way.

Don't worry Moody. It's a kind of bonus when someone does actually acknowledge, or give thanks for the free advice they get ;)
But I thank you for your recognition.
  • Like
Reactions: MoodyBlues
Upvote 0

Apps Plants Detection

Also I try to intergrate my model there:
https://github.com/googlecodelabs/tensorflow-for-poets-2/tree/master/android/tflite
In file ImageClassifier.java I have changed this parameters:
Code:
static final int DIM_IMG_SIZE_X = 256;
static final int DIM_IMG_SIZE_Y = 256;
By the way there is a problem with Interpreter:
"interpreter(java.nio.mappedbytebuffer)' is deprecated"
Code:
ImageClassifier(Activity activity) throws IOException {
  tflite = new Interpreter(loadModelFile(activity));
  labelList = loadLabelList(activity);
  imgData =
      ByteBuffer.allocateDirect(
          4 * DIM_BATCH_SIZE * DIM_IMG_SIZE_X * DIM_IMG_SIZE_Y * DIM_PIXEL_SIZE);
  imgData.order(ByteOrder.nativeOrder());
  labelProbArray = new float[1][labelList.size()];
  filterLabelProbArray = new float[FILTER_STAGES][labelList.size()];
  Log.d(TAG, "Created a Tensorflow Lite Image Classifier.");
}

I am getting a mistake in app: "uninitialized classifier or invalid context".
What parameters do I need to change too?

Attachments

  • OEKmKVRrh5E.jpg
    OEKmKVRrh5E.jpg
    75 KB · Views: 89
Upvote 0

Fitness tracker compatible with a tablet

I'm looking for a fitness tracker that I can use with my android tablet (Samsung galaxy tab 7), and most of them seem to be made to use with smartphones only. Does anyone know of an affordable fitness tracker that is compatible with a tablet? Thanks!
just curious why a tablet? most wearables need a phone to operate or at least the app does. i have never heard of using a tablet to setup and sync and update the watch from.

any ways i think i have found some solutions, not sure if they work or not:
1.https://android.stackexchange.com/questions/110583/emulate-android-wear-on-android-tablet
2.http://www.inlovewithandroid.com/how-to-pair-android-wear-with-tablet.html
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones

Filter