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
4
votes
2 answers

Android Face Detection API - Stored video file

I would like to perform face detection / tracking on a video file (e.g. an MP4 from the users gallery) using the Android Vision FaceDetector API. I can see many examples on using the CameraSource class to perform face tracking on the stream coming…
Jon G
  • 1,656
  • 3
  • 16
  • 42
4
votes
1 answer

After returning to activity CameraSource fires null exception

I have an activity where I initialize barcode detection. Then I go to another activity and when I press the back button it fires a loop of this exception: com.example.myapp E/CameraSource: Exception thrown from receiver. …
Fabricio
  • 7,705
  • 9
  • 52
  • 87
4
votes
2 answers

Custom RectangleDetector using Vision API

How to create custom RectangleDetector like FaceDetector and BarcodeDetector in Mobile vision API? I need to detect rectangle shapes from camera frame. How can i achieve that?
karthi
  • 125
  • 2
  • 8
4
votes
0 answers

how to get image of scanned barcode in vision libarary android

I successfully implemented vision library by Google sample and it successfully scanned bar codes and returns a string. I also want bar-code image so my question is how to get image of bar-code or a preview image? Note: Code is based on git hub…
Mayank Sharma
  • 2,735
  • 21
  • 26
4
votes
1 answer

After some time barcode scanner throws java.lang.UnsatisfiedLinkError

I have a barcode scanner using the new android vision library that worked perfectly on my device and on several others. But suddenly it stops working and I see the following exception in the log: No implementation found for…
3
votes
0 answers

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. https://i.stack.imgur.com/vkFxk.jpg…
rockstar
  • 587
  • 4
  • 22
3
votes
1 answer

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 running, drop the frame." In the sample ocr-reader…
SQLiteNoob
  • 2,958
  • 3
  • 29
  • 44
3
votes
0 answers

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 returning the type as Code 128. From google I…
Stephan Ronald
  • 1,395
  • 2
  • 14
  • 39
3
votes
2 answers

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 with a new version Machine Learning Kit [MLK]…
Arnauld Alex
  • 339
  • 1
  • 3
  • 13
3
votes
1 answer

Show a toast message when a text is recognized from camera

I am trying to detect a text with a specific format from a live camera feed and show a toast message when that text is detected automatically. I was able to detect the text and put a box around it. But I'm having a hard time showing that toast…
Bereket Gobeze
  • 3,446
  • 3
  • 15
  • 14
3
votes
1 answer

Search for specific pattern in text using Android Mobile Vision API

I have made a working implementation of an app that uses the android mobile vision API to read text. But is there a way in which i can search for a specific pattern of text for example searching for where there are 10 digits in a row or something…
Douglas Hosea
  • 1,002
  • 13
  • 30
3
votes
1 answer

Mobile Vision API (TEXT) not detecting single numbers?

I am using Mobile Vision API (https://developers.google.com/vision/) on Android to detect text in images. However, it never seems to be able to detect single numbers such as "3" or "6", but can easily detect "23" or "56" and also coordinates…
zaifrun
  • 931
  • 9
  • 21
3
votes
1 answer

Cannot resolve method: CameraSource.Builder.setAutoFocusEnabled

I use Vision API to scan barcode. It's almost done, except auto-focus. I follow the guide in this link: https://developers.google.com/android/reference/com/google/android/gms/vision/CameraSource.Builder, use setAutoFocusEnabled method and get an…
suco2007
  • 131
  • 1
  • 7
3
votes
1 answer

Set OCR whitelist in the TextRecognizer

I'm analysing the ocr-reader sample project: https://github.com/googlesamples/android-vision/tree/master/visionSamples/ocr-reader The goal would be to replace my custom "text to image" implementation for Android (with OpenCV and Tesseract) with…
adou600
  • 191
  • 2
  • 5
3
votes
0 answers

I want to use camera on background service using mobile vision

I make a android app for my project. My application's purpose is detection for blinking of eye. I use a mobile vision api. I am using a sample code about face detection of mobile vision with blink detection code. My first question is that mobile…