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.

The vision package (com.google.android.gms.vision) provides common functionality for working with visual object detectors.

It's new Face Detection in Google Play services, includes vision API for detecting faces and barcodes.

With the release of Google Play services 7.8, we announced the addition of new Mobile Vision APIs, which includes a new Face API that finds human faces in images and video better and faster than before. This API is also smarter at distinguishing faces at different orientations and with different facial features facial expressions.

We need Android Google Play Services SDK level 25 or greater( Google Play services 7.8)

Note: Face Detection is a leap forward from the previous Android FaceDetector.Face API

Fore more info Face Detection in Google Play services

194 questions
0
votes
1 answer

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, while the user points the camera at things in…
Dale
  • 5,520
  • 4
  • 43
  • 79
0
votes
0 answers

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 internet and it says that it downloads when the app is…
JustABeginner
  • 785
  • 2
  • 11
  • 26
0
votes
0 answers

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 FrameMetadata metadata, final GraphicOverlay…
Snake
  • 14,228
  • 27
  • 117
  • 250
0
votes
1 answer

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.) Even after i do a forced Garbage Collection…
Nick
  • 2,818
  • 5
  • 42
  • 60
0
votes
1 answer

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: 'com.android.application' android { …
Eric
  • 4,821
  • 6
  • 33
  • 60
0
votes
1 answer

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 tried with reducing width, and height of the…
Rakib
  • 3
  • 4
0
votes
1 answer

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 solution but nothing solved this. Could anyone help?…
big
  • 23
  • 6
0
votes
2 answers

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 API documentation but I am not able to find any…
SAIR
  • 1,121
  • 11
  • 31
0
votes
0 answers

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

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 CameraSourcePreview into a jpg file. I am only able to save…
mohamad ali gharat
  • 501
  • 1
  • 5
  • 10
0
votes
1 answer

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, but it doesnt work. How can i fix the following code…
0
votes
1 answer

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
  • 499
  • 1
  • 5
  • 14
0
votes
1 answer

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 how to use google cloud files. Which files do I…
0
votes
1 answer

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 it always crashes in captureOutput(_ output:…
Pei
  • 11,452
  • 5
  • 41
  • 45
0
votes
1 answer

OCR is not working until Google Translator is Installed

I have a problem using the Mobile Vision API. I installed my app and is working in almost all the devices. But when I try to install on some devices the text is not being recognized. I try to clean the data and cache from Google Play Services and…
0
votes
1 answer

Google vision detector limited capacity

I process QR codes with google-vision api, locally (my test device is galaxy s4). Why can I recognise only two, perhaps three at most at a time (during one frame), given more clearly visible in the viewport? Is it because my device allows only so…
Antek
  • 721
  • 1
  • 4
  • 27