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
1
vote
0 answers

Mobile Vision API - Best practices to store QR code reads

I am using the Mobile Vision API (latest version) in an Android application. I am following the examples from google (multi-tracker). Its working great, but now I am trying to store the QR code reads to an external resource, via API. What are the…
hp.
  • 513
  • 6
  • 15
1
vote
1 answer

Android vision api OCR example is not detecting all text

I have used picture which has text in black colour and white background Vision API is unable to read the text in that image, it reads first two line but rest all its not reading. Please let me know whats wrong. Is it problem with Api or from my…
Rakki s
  • 1,426
  • 1
  • 18
  • 42
1
vote
1 answer

Get byte array with Android Vision scanning pdf417 barcode

I used the android vision sample for scanning PDF417 barcode on the South African driver license. For decoding the information I need to pass the byte array to another library. But I can get only get a barcode.rawValue that is a String. I am trying…
ivbar
  • 51
  • 6
1
vote
1 answer

android mobile vision api custom detector not detecting face

I am exploring android vision api and following the github samples provided in android developers documentation.The sample application is detecting the faces. I want to crop each of the detected faces. I have a rect obj having left,top,right,bottom…
adi
  • 984
  • 15
  • 33
1
vote
0 answers

Implementing Face Tracking for pre-recorded videos in Android

I need to implement face detection on mp4 videos, such that the output of my program is a "timeline" indicating the number of faces. I have looked at the google-vision examples , specifically photo demo and face Tracker. Following the photo demo…
1
vote
0 answers

Android - EulerZ value is fluctuated consistently in Face detection

I am trying to get EulerZ axis value in face detection. I have used com.google.android.gms:play-services-vision:10.0.1 library for the same. When I try to turn my face, I'm getting EulerZ axis value and when I make my face in steady position but…
Kuls
  • 2,047
  • 21
  • 39
1
vote
1 answer

Google mobile vision api camera source dim frames

I am trying to follow google codelabs about vision apis such as barcode and text detection; but i noticed that the camera preview is offering dim frames , i played a little bit and made a greater frame sizes but seems like the auto focus is not…
Altaiir
  • 477
  • 1
  • 5
  • 16
1
vote
1 answer

Error when scanning barcode Mobile vision API?

public class MainActivity extends AppCompatActivity { TextView txt; Bitmap myBitmap; Button btn; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); …
DilllyBar
  • 59
  • 1
  • 7
1
vote
1 answer

Run-time Exception Fail to connect to camera Service in Some Devices

I am using Barcode Scanner in my app. In some mobile it is giving the run-time exception Fail to connect to camera. Here is the code I am using for Camera /** * Opens the camera and applies the user settings. * * @throws RuntimeException if the…
FiXiT
  • 769
  • 1
  • 12
  • 27
1
vote
0 answers

Android Studio - draw face detection on camera preview (Real time face detection)

I created a basic app that display the frontal camera of the phone. I need to use the Google Servies face detector to draw rectangle around the face (on the FrameLayout, that contain the camera preview data). I know the basic usage of the face…
Leonid
  • 21
  • 7
1
vote
1 answer

Is the Open Sourced Google Vision API CameraSource class Out-Dated?

In this SO Thread, pm0733464, says this: we open sourced the CameraSource class, which has an auto focus method as well. This one allows you to set a specific focus mode as opposed to the "continuous video" mode that the official API defaults…
1
vote
1 answer

How to detect the Corners / Center X, Y Coordinates Using Google's Face API?

Good day all, I am using Google's new Face API (Link here) which works with improved FaceDetection. One of the things you get back is a List of Landmark objects, each of which has an X and Y coordinate to use. With these coordinates, I am trying to…
1
vote
4 answers

TextRecognizer can only detect TextBlocks

I started out by following the Text API tutorial to detect TextBlocks, which worked fine. But I now want to detect text lines, and encountered a problem. // TODO: Create the TextRecognizer TextRecognizer textRecognizer = new…
GeeSplit
  • 53
  • 3
  • 12
1
vote
1 answer

Android instrumentation test errors due to com.google.android.gms.version meta data

I am attempting to write an instrumentation test for my Android app. When I run my test, and it hits the section of my code that attempts to use the com.google.android.gms.vision.face.FaceDetector library, the test framework throws the follow…
1
vote
2 answers

Face Detection API- coordinates

So I am using the API to detect faces in images, and it is working well for me so far. I have not been able to figure out how to crop the image to the face however. I know how to crop the Bitmap, but it requires getting the top left position of the…
georgetheevilman
  • 177
  • 4
  • 10