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
2
votes
1 answer

How to save an image with an overlay on it in CameraSource from Google APIs for android?

I'm using google APIs for face detection in android. When a face is detected I'm drawing an image on the canvas. I'm trying to capture the image with the overlay by clicking a button. In the method public void onPictureTaken(byte[] bytes), the…
2
votes
0 answers

How reliable is barcodedetector (Vision API)?

I'm evaluating vision API to scan QR codes. I'm using Google's barcode-reader sample. Detection of codes seem to work in most cases. However, I have come across a number of QR codes that the sample is unable to decode. The same codes are easily…
2
votes
3 answers

Detect Eye Blink Using Google Vision API

i'm using the vision API for face detection, now i want to implement eye blink but still vision api detect eye while one eye is off. please help me how to implement eye blink feature.
Sangha_development
  • 253
  • 1
  • 4
  • 9
2
votes
2 answers

Scanner (Barcode) Api for Android does not detect the barcode

I would like to make an app as an barcode scanner. I founded an barcode scanner api with the name android vision I can start the app and hold my camera on a barcode. But the logs only says: 11-20 11:21:29.353 …
Trombone0904
  • 4,132
  • 8
  • 51
  • 104
2
votes
1 answer

Cannot understand the details of FaceDetector object while debugging using Vision API Android

I want to use Vision API in android to detect the face and the landmarks over the face. I followed the Vision API sample : https://github.com/googlesamples/android-vision/tree/master/visionSamples/photo-demo/ My issues are: 1) I cannot understand…
2
votes
1 answer

Google Play Services Crashes on Android 2.3 Vision API

I'm using the Android Vision API for a QR-code-scanner which works fine on several Android devices and versions, except for Android 2.3.x devices. When I open the QR-code-scanner a dialog is shown that the google-play-services crashes. In the Logcat…
2
votes
2 answers

Barcode scanning doesn't work if barcode reader app not installed

i am trying to make an application that will work on the phone to scan bar code. so i have tried the code bellow but it gives me this error 11-28 11:18:45.750: E/AndroidRuntime(772): FATAL EXCEPTION: main 11-28 11:18:45.750: E/AndroidRuntime(772):…
CoT
  • 157
  • 2
  • 13
1
vote
0 answers

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 only taking picture from the preview , but when…
Anass Boukalane
  • 539
  • 10
  • 26
1
vote
0 answers

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 opencv. I want to integrate that logic in using the…
1
vote
0 answers

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: implementation…
Oleg Gryb
  • 5,122
  • 1
  • 28
  • 40
1
vote
1 answer

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 detected area (with dots or rectangle).
Tobia
  • 9,165
  • 28
  • 114
  • 219
1
vote
2 answers

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 it, I want camera auto zoom-in into QR code to it…
Tung Tran
  • 2,885
  • 2
  • 17
  • 24
1
vote
0 answers

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, barcodeDetector) …
matdev
  • 4,115
  • 6
  • 35
  • 56
1
vote
0 answers

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. Here is the complete code on my…
user3736228
  • 273
  • 3
  • 18
1
vote
1 answer

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 don't want to give the text directly .