Questions tagged [android-vision]

The vision package (com.google.android.gms.vision) provides common functionality for working with visual object detectors. Face Detection in Google Play services 7.8, includes vision API for optical character recognition, detecting faces, and reading barcodes.

Filter by
Sorted by
Tagged with
0 votes
1 answer
177 views

Crash in com.google.android.gms.vision.text.TextRecognizer.detect

I have a crash in com.google.android.gms.vision.text.TextRecognizer.detect which I am trying to get some progress on. The crash is non repro; reported from field; by a very small percentage. Our code ...
Amit's user avatar
  • 1,836
1 vote
0 answers
1k views

Android Camera conflict between OCR and taking picture from preview

I am developping an android application that combine a camera review in order to take picture and at the same time i want show OCR blocktext over the preview , the application first waorked fine with ...
Anass Boukalane's user avatar
1 vote
0 answers
806 views

Custom Detector implementation using Vision API

How do i create a custom Detector like FaceDetector and BarcodeDetector in Mobile vision API? I am building a project to perform hand segmentation using color masks, i have the logic implemented in ...
Pulkit Arora's user avatar
1 vote
0 answers
734 views

Android app crashes in camera API with "Input dispatching timed out" exception

Android crashes in overwritten function surfaceDestroyed at mCameraSource!!.stop() call. I didn't see it in versions smaller than Android 10. The camera API that I use is coming from the library below:...
Oleg Gryb's user avatar
  • 5,121
0 votes
1 answer
3k views

How to extract invoices data from an image in android app?

My task is to extract text from a scanned document/ JPG and then get only below mentioned 6 values so that I can auto-fill a form-data in my next screen/ activity. I used google cloud vision api in ...
Bajrang Hudda's user avatar
1 vote
1 answer
334 views

How to decorate the camer preview during barcode scanning?

I want to create a barcode scanner activity, I found this nice tutorial: http://www.devexchanges.info/2016/10/reading-barcodeqr-code-using-mobile.html How can I decorate the preview image with ...
Tobia's user avatar
  • 9,165
0 votes
1 answer
147 views

Play services vision API in Funtouch OS

I have a Vision API Barcode scanner logic which is based on play-services-vision:17.0.2 to scan barcodes and QR codes. This is working on most phones apart for the users in the China region where play ...
harshal's user avatar
  • 592
1 vote
2 answers
3k views

Auto-zoom feature for QR Code scanner with Google vision

I want to build auto-zoom feature for QR scanner app. I'm using android google vision library. When user align camera to QR code, if distance from camera to QR code is so far, library cannot decode ...
Tung Tran's user avatar
  • 2,905
-1 votes
1 answer
513 views

How to convert FirebaseVisionImage to a bitmap

I am using ml kit for text detection . We pass in FirebaseVisionImage to a detector. I need to set this FirebaseVisionImage to Image view. How can I extract hr bitmap from FirebaseVisionImage ...
Snake's user avatar
  • 14.2k
3 votes
0 answers
875 views

How to get text from image using TextRecognized of Firebase ML using regex or other

I am using firebase ML for getting a text from images. It is working fine with images. But the problem is getting a specific text from the image. I want to get a text value from below 3 images. ...
rockstar's user avatar
  • 587
5 votes
1 answer
3k views

Offline Face Recognition On Flutter

I am trying to build a flutter app which will have two functionality. 1. Save face data 2. Recognize face based on saved face data. I want to do this offline. The possible solution I found on google ...
Atiab Jobayer's user avatar
2 votes
2 answers
2k views

Using OCR mobile vision to anchor image to detected text

I am using the Text Recognition (mobile vision/ML) by Google to detect text on Camera feed. Once I detect text and ensure it is equal to "HERE WE GO", I draw a heart shape beside the detected text ...
Snake's user avatar
  • 14.2k
3 votes
1 answer
876 views

Android text recognition - Throttling the text recognizer

I'm testing the android vision text recognizer, and in real-time use, the docs suggest I "Throttle calls to the text recognizer. If a new video frame becomes available while the text recognizer is ...
SQLiteNoob's user avatar
  • 2,978
4 votes
1 answer
4k views

Barcode scanning is not working with vision API

I'm trying to run the barcode-reader example ( https://github.com/googlesamples/android-vision/tree/master/visionSamples/barcode-reader ) as it is on my Nokia 2.1 running Android 8.1.0 and Google Play ...
Sorin Trimbitas's user avatar
2 votes
0 answers
799 views

CameraSource.Builder setFlashMode method missing in latest android vision version

I'm building simple barcode reader with Android Vision API using googlesamples as guide. The problem is that I want to add toggle button for turning flash on/off, but method public Builder ...
krdzy's user avatar
  • 31
1 vote
0 answers
802 views

How to get autofocus working with CameraSource from Android's Mobile Vision API?

I'm trying get the Camera to autofocus using the CameraSource class from Android Mobile Vision API. I've activated autofocus as follows: cameraSource = new CameraSource .Builder(this,...
matdev's user avatar
  • 4,127
0 votes
1 answer
361 views

Android Vision Text scanning leaks memory in Xamarin.Android

After noticing a few crashes on older devices when using TextRecognizer from the library Android.Gms.Vision I decided to profile it using Android Studio and the result was the following: While the ...
Luca Mozzo's user avatar
0 votes
1 answer
369 views

Exiting from OCR activity on specific text detection

In this sample Android OCR application, that uses com.google.android.gms:play-services-vision, there is a OcrDetectorProcessor.receiveDetections() method which gets repeatedly called. In that method, ...
Dale's user avatar
  • 5,540
1 vote
0 answers
199 views

How can I start new activity once Barcode and Text are recognized from Android Vision?

I successfully implemented the multi-detector to recognize barcode and text at the same time by modifying the sample code given from https://developers.google.com/vision/android/multi-tracker-tutorial....
user3736228's user avatar
2 votes
1 answer
793 views

what is the difference between getCornerPoints() and getBoundingBox() in TextBlock (android vision)

I am confused about the what is the deffrence between getCornerPoints() and getBoundingBox() in TextBlock as they both return the coordinate of the corner points of the bounding box?? any body can ...
farahkh's user avatar
  • 51
0 votes
0 answers
128 views

Check if android OCR is downloaded or not

I have used OCR, from google vision api, where I used the app to detect text from screen using text recognizer API. But, as the document says, it needs to download the necessary files from the ...
JustABeginner's user avatar
4 votes
2 answers
9k views

ZXing QR reader library for Android reading painfully slow

I am trying to read barcode with the help if ZXing library for android. in my app when I click a button I am taken to the barcode reader activity where I read the code with the help if ZXing reader. ...
Mill3r's user avatar
  • 544
0 votes
0 answers
138 views

Vision text detection is resulting in calling OnSuccessListener multiple times

I am using the sample code of mobile vision to perform text detection on an image. Here is the code private void detectInVisionImage( FirebaseVisionImage image, final ...
Snake's user avatar
  • 14.2k
3 votes
0 answers
2k views

How to check a Code 128 bar code is EAN 128 or not

How can I check weather a Code 128 bar-code is "EAN 128" or not. I am creating an application that uses both Code 128 and EAN 128 bar-code. While scanning a "EAN128" bar code the Android Vision API is ...
Stephan Ronald's user avatar
0 votes
1 answer
966 views

Android Memory Leak When Passing A Fragment

I have this code and Iam using the Barcode Google API Vision. When i open the Fragment and rotate the device many times 6 or more, i see in the Dump Heap that many instances remain in memory (see pic.)...
Nick's user avatar
  • 2,808
0 votes
1 answer
504 views

What build.gradle for google mobile vision?

I am using google mobile vision, but it is crashing from time to time ( a libc: Fatal signal 11 in com.google.android.gms ). May be I have a bad build.gradle. build.gradle (Module) apply plugin: '...
Eric's user avatar
  • 4,851
1 vote
1 answer
598 views

How to stub Android - Vision Barcode Scanner using espresso

I want automate BarCode Scanning using espresso/Appium ? How Can I achieve this using ? Can I stub the image directly to the barcode scanner API to verify the decoder is working correct ? Note : I ...
Sudarshan Hegde's user avatar
0 votes
1 answer
666 views

Use OCR Text reader to save the text

I followed the OCR text reader guide on Codelabs (https://codelabs.developers.google.com/codelabs/mobile-vision-ocr/#0). Now, I would like to save, a single portion of the text that I am scanning. I ...
Rakib's user avatar
  • 3
1 vote
1 answer
528 views

Vision BarcodeDetector doesnt read Data Matrix barcodes

It reads QR codes just fine. but cant read datamatrix at all! i saw here that it did work for someone else when the barcode was in the center of the frame, but it doesnt work for me too. I built it ...
Ofek Ron's user avatar
  • 8,384
4 votes
3 answers
7k views

Scan Identity Cards using Google Vision API

It's possible to read Identity Cards information like name, address birthDate using Google Vision API? In the documentation, I fount something but I don't know how to use it. https://developers....
CjStone10's user avatar
3 votes
2 answers
422 views

Migrate from MVA to MLK

Since 4 months I am working on a project using Mobile Vision Android [MVA]. Which only require to use the play service and this tutorial Codelab. However since the beginning of the month Google came ...
Arnauld Alex's user avatar
7 votes
0 answers
3k views

Putting a 3D face filter by using the Vision API

The similar question has been asked here: Add 2D or 3D Face Filters like MSQRD/SnapChat Using Google Vision API for iOS. However, it has not been answered yet. Essentially, my work assignment is to ...
Chez's user avatar
  • 81
2 votes
1 answer
976 views

Can Mobile Vision API's Face Tracking, not Detection, used independent of its CameraSource?

This question is about using Google's Mobile Vision Face API on Android. The Story (Background) and what I want to do I am trying to implement a function that detects faces in a camera view, and ...
Sira Lam's user avatar
  • 5,189
0 votes
1 answer
782 views

always get "libmobile_vision_face.so library load status: false"

I've created an application based on this example and found an issue while testing my application. it usually work on my testing devices but not on user's devices. I've tried to google for the ...
big's user avatar
  • 23
1 vote
1 answer
377 views

Does Vision API need preprocessing? Multiple QRCodes

I'm using mobile vision to detect multiple (they're usually 4+) QRCodes in images. Will pre-processing make detection better? (binarizing the image, anything else?) In my previous app runs I've ...
shakram02's user avatar
  • 10.9k
2 votes
3 answers
2k views

Sort TextBlock as top to bottom in vision API

While I am scanning for text using vision API, Overlay return multiple text boxes as unsorted list. So when I read for text by looping them, sometimes I am getting texts in wrong order, ie., text from ...
Gunaseelan's user avatar
  • 14.5k
1 vote
0 answers
463 views

How to prevent barcode scanner repeating same results?

I am working on a project that barcode-scanner is extensively used in. I used google-vision barcode scanner and successfully implemented. However whenever i try to scan a barcode, the apk repeats same ...
istaka's user avatar
  • 15
0 votes
2 answers
2k views

How to determine text's language using Android Mobile Vision Api

I am using mobile vision API and successfully able to detect text in all supported languages. Now I want to determine the langue of detected text i.e if its English, French etc. I have explored the ...
SAIR's user avatar
  • 1,121
2 votes
1 answer
2k views

Using Google's Text Recognition API to detect horizontal lines instead of blocks in images

Is there a way to detect full-sized, horizontal lines (max width) instead of text blocks in images using Google's Text Recognition API? Say, if I wanted to retrieve the total due from a receipt image ...
DaveNOTDavid's user avatar
  • 1,753
1 vote
1 answer
648 views

TensorFlow Android Camera Demo - classify grayscale images

I have trained my own neural network on grayscale images and now I want to plug it in to the classifier from TensorFlow Android Camera Demo (https://github.com/tensorflow/tensorflow/tree/master/...
s11's user avatar
  • 11
1 vote
0 answers
1k views

Is it possible to use Android mobile vision api to scan credit card info?

I'm trying to adopt Android mobile vision API to scan credit cards inside my Android app (https://android-developers.googleblog.com/2016/06/android-mobile-vision-text-api.html?hl=sq) Original ...
Alexey Zakharov's user avatar
0 votes
0 answers
397 views

how to save CameraSourcePreview contents into a jpg file?(android camera) [duplicate]

I'm working on a project that I need to save the camera picture based on a face detection. the part of face detection is done based on google examples but the problem is in saving the ...
mohamad ali gharat's user avatar
0 votes
1 answer
717 views

setAutoFocusEnabled(true) doesn't work although my device supports auto focus

I'm trying to create a barcode reader. The program works perfectly when the barcode is big. To read small barcodes i will need autofocus enabled. I added setAutoFocusEnabled(true) to cameraSource, ...
Gutimore's user avatar
  • 375
0 votes
1 answer
1k views

Vision library detector.isOperational() = false always

My device is Samsung, SM-T561. I am running sample for face tracker from Official Sample Play service version is 'com.google.android.gms:play-services-vision:9.4.0+' LogCat: 01-15 00:53:00.560 ...
Ambareesh B's user avatar
1 vote
1 answer
1k views

Save real-time detected face(Track Faces) image using 'android-vision' library

For my university thesis, I need a android program which can detect and recognize a face in real time. I have read about 'android-vision' library and tested the example code. https://github.com/...
user1850484's user avatar
2 votes
0 answers
2k views

inflate error google mobile vision

Hey guys, for my school project i'm building a dutch licenseplate scanner. i came a long way with just the text but now i'm trying to add the actual scanning part. therefore i am using the google ...
MESP's user avatar
  • 486
2 votes
1 answer
832 views

Is image pre-processing required (Google Mobile Vision Text Recognition API)?

In short: Is it needed or not to improve accuracy? A bit longer: I was going through documentation and Internet and I did not find any references concerning Mobile Vision and if it is doing some sort ...
KaljaTolkki's user avatar
0 votes
1 answer
2k views

how to use google cloud vision to extract multiple text language in android studio

I am trying to build an android application (in android studio platform) which extracts different text languages from image using google cloud vision, but I have a problem in starting. I don't know ...
Latifa Al-jiffry's user avatar
1 vote
1 answer
629 views

Text recognition app

now i`m trying to make camera app which can recognize text. For this I use the information from guides by google. This site describes how to make a full-screen reader. But i need to set Mobile Vision ...
Qwerty's user avatar
  • 11
0 votes
1 answer
431 views

Google Vision crashes when getting UIImage from sample buffer

I finally decided to use Google Mobile Vision sdk for detecting faces and smiling in camera and their sdk and sample look very good and promising. But after I pasted their sample code into my project ...
Pei's user avatar
  • 11.5k