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.
193
questions
1
vote
0
answers
787
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 ...
1
vote
0
answers
542
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 ...
1
vote
0
answers
598
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:...
0
votes
1
answer
2k
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 ...
0
votes
1
answer
153
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 ...
0
votes
1
answer
123
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 ...
1
vote
2
answers
2k
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 ...
-1
votes
1
answer
464
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
...
3
votes
0
answers
732
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.
...
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 ...
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 ...
3
votes
1
answer
758
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 ...
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 ...
2
votes
0
answers
665
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 ...
1
vote
0
answers
706
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,...
0
votes
1
answer
334
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 ...
0
votes
1
answer
330
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, ...
1
vote
0
answers
187
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....
2
votes
1
answer
648
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 ...
0
votes
0
answers
102
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 ...
3
votes
2
answers
8k
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. ...
0
votes
0
answers
124
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 ...
3
votes
0
answers
1k
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 ...
0
votes
1
answer
832
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.)...
0
votes
1
answer
469
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: '...
0
votes
1
answer
479
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 ...
0
votes
1
answer
601
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 ...
1
vote
1
answer
458
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 ...
3
votes
3
answers
6k
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....
3
votes
2
answers
385
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 ...
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 ...
2
votes
1
answer
933
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 ...
0
votes
1
answer
777
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 ...
1
vote
1
answer
346
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 ...
2
votes
3
answers
1k
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 ...
1
vote
0
answers
406
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 ...
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 ...
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 ...
1
vote
1
answer
621
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/...
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 ...
0
votes
0
answers
396
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 ...
0
votes
1
answer
660
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, ...
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 ...
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/...
2
votes
0
answers
1k
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 ...
2
votes
1
answer
803
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 ...
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 ...
1
vote
1
answer
564
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 ...
0
votes
1
answer
419
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 ...
2
votes
0
answers
344
views
How to read a single character with Google OCR vision-samples
Is there any way to recognize single character in android OCR vision-samples?
I know it is a known issue, the OCR works well with lines but not with single character or numbers.
I'm wondering if it ...