Questions tagged [google-mlkit]

ML Kit is Google’s machine learning SDK for mobile platforms, iOS and Android, used for dynamic text recognition and translation, object detection, barcode scanning etc. When asking questions, use platform-specific tags, iOS or Android.

ML Kit is Google’s machine learning SDK for mobile platforms, iOS and Android, used for dynamic text recognition and translation, object detection, barcode scanning etc.

Tag Usage

The tag is to be used with or tags. When adding additional tags to questions, please use the iOS- or Android-specific tags.

Reference

600 questions
6
votes
2 answers

Is Google MLKit able to recognize the same face?

I'm looking about implementing MLKit face recognition library in my Android App. The only thing that I can't understand is if it's possible and how can I compare two photos and detect if they are the same person. I've read these…
6
votes
4 answers

Android Firebase ML-Kit real time Barcode Detection through Camera

I have a situation where i have to detect barcode from camera on fly without taking picture using Firebase ML-Kit Vision API.help appreciated.
Sultan
  • 147
  • 1
  • 8
5
votes
0 answers

Getting a black screen instead of a QR scanner while using ML Kit to Scan Barcodes

The simplest way to create a barcode scanner in Android is possibly with the Google Code Scanner API https://developers.google.com/ml-kit/vision/barcode-scanning/code-scanner However, this doesn't seem to work for me. My code in MainActivity.kt file…
Real Noob
  • 1,369
  • 2
  • 15
  • 29
5
votes
3 answers

How to fix Google code scanner throwing "MlKitException: Failed to scan code"

I have followed the tutorial here and got it work just fine. Then later, using the same code, I am getting this exception every time I try to open the QR code scanner: com.google.mlkit.common.MlKitException: Failed to scan code. I don't even leave…
Michel Feinstein
  • 13,416
  • 16
  • 91
  • 173
5
votes
2 answers

Google Barcode Scanning ML Kit: activity crashes on certain devices

UPDATE: Maybe it works now since the March 21, 2023 update, maybe not. You can read more about it in the docs if you want to use it. Note again that we haven't tested if it works now. We had to quickly decide on how to get barcode scanning working…
5
votes
1 answer

How can I limit barcode scanner to once?

I try to code a barcode scanner with Jetpack Compose and Google ML Kit. I use ImageAnalysis with the STRATEGY_KEEP_ONLY_LATEST and call a class BarCodeAnalyzer who initialize and create the barcodeScanner. But when I scan a barcode, my code detect…
5
votes
1 answer

`suspendCoroutine` throws `This job has not completed yet` exception?

I'm trying to test my encapsulated translator class which uses Google ML Kit Translate under the hood. I got an error that throws java.lang.IllegalStateException: This job has not completed yet. I don't quite understand why this exception occurs.…
5
votes
1 answer

it requires specifying NormalizationOptions metadata to preprocess input images

Yolov3-tiny-416.tflite is a tflite model for yolov3 tiny model created from yolov3-tiny.weights I had tried to use this from ML kit Vision module provided by google in android. In repo:…
S.Luja
  • 53
  • 1
  • 6
5
votes
3 answers

ValueError: Expect x to be a non-empty array or dataset (Tensor Flow lite model maker on Collab)

I am following this tutorial on creating a custom Model using TensorFlow lite Model Maker on Collab. import pathlib path = pathlib.Path('/content/employee_pics') count = len(list(path.glob('*/*.jpg'))) count data =…
Mena
  • 3,019
  • 1
  • 25
  • 54
5
votes
0 answers

Download MLKit Face Detection Models At Runtime

I'm using the MLKit Face Detection SDK for Android to detect the contours of a user's face. When following this guide (https://developers.google.com/ml-kit/vision/face-detection/android), it shows how developers can (1) bundle the face detection…
Luke
  • 2,187
  • 1
  • 18
  • 29
5
votes
1 answer

Is there possibility to only look for black font in firebase ml kit for android?

I've already read everything around ml kit tutorial https://firebase.google.com/docs/ml-kit/android/recognize-text . I'm interested only in local ocr not cloud version. Of course as question suggests it's about text recognition.
Alisec
  • 63
  • 1
  • 4
4
votes
0 answers

Google Code Scanner (QR Scanner) shows black screen when launching it

I am trying to use Google's new code scanner for scanning QR codes in an Android app, when a button is clicked, but I get a black screen. Here is my code: binding.scanQR.setOnClickListener { val options = GmsBarcodeScannerOptions.Builder() …
tzegian
  • 394
  • 3
  • 13
4
votes
2 answers

Why is MLKit barcode (Qr code) scanner so slow?

I'm trying to implement a QR code scanner in my app using Mlkit and following these two links…
4
votes
0 answers

How to crop XFile image if i have the coordinate that should be cropped (right,top,left,bottom)?

I'm using google-mlkit-object-detection where the detector detects for me many objects in an image and return for me RECT with the coordinate that detects so how can i crop these. ? as image
Flutter Dev
  • 488
  • 3
  • 18
4
votes
3 answers

Image dimension, ByteBuffer size and format don't match

I'm trying to make a face recognition app in flutter. Most of the code is taken from here. That project used Firebase ML Vision(which is now deprecated), so I followed the migration guide to Google ML Kit. I made changes to the face detection part…
Shah Raza
  • 118
  • 9
1
2
3
39 40