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

ML Kit Barcode Scanning doesn't detect QR codes in the photo of the monitor screen

I am using com.google.mlkit:barcode-scanning:17.0.2 to detect QR codes in the pictures. After getting URI from the gallery I create InputImage and then process this image with BarcodeScanner to find QR codes. When I select a photo of QR codes on…
iknow
  • 8,358
  • 12
  • 41
  • 68
3
votes
1 answer

Save segmentation result of Selfie segmentation with ML Kit on Android as A Bitmap with transparent background

Save segmentation result of Selfie segmentation with ML Kit on Android as A Bitmap with transparent background I am following this tutorial and code for Selfie segmentation Here I have referred this code from the tutorial ByteBuffer mask =…
1234567
  • 2,226
  • 4
  • 24
  • 69
3
votes
3 answers

Convert CameraImage Stream to Bytes or File in flutter?

I am trying to use google ml kit to process an image so i extract the left eye open probability, but it requires the input image to be either a file,bytes or file path, see below final inputImage = InputImage.fromFile(file); final inputImage =…
3
votes
2 answers

Increase in app size on adding mlkit in flutter

I recently added mlkit in my app for smile detection and then .abb size increased from 48mb to 185mb. How can i reduce this size...
Deepak Lohmod
  • 2,072
  • 2
  • 8
  • 18
3
votes
3 answers

Android: locating words on the screen. Google ML Kit bounding boxes are off a bit

I'm trying to find a certain words on the phone screen, and then display a bounding box around them if they are present. I follow these steps: Capture entire screen contents (with MediaProjection API). Pass this screenshot to a TextRecognizer…
Gtomika
  • 845
  • 7
  • 24
3
votes
0 answers

Google ML Kit - Barcode API - Orientation of the detected QR code

I'm using Google ML Kit (formerly The Mobile Vision API) I'm trying to figure out the angle/orientation or "the way it is facing" of the scanned QR code. The positions of the 3 squares of the QR Code (top left, top right and bottom left) is what…
cbt
  • 1,271
  • 1
  • 11
  • 20
3
votes
3 answers

Android mlkit barcode scanner improve speed

Hello I'm using android mlkit barcode scanner without firebase with androidx ,I follow this code https://medium.com/@surya.n1447/google-vision-ml-kit-with-camerax-64bbbfd4c6fd When I scanning qrcode it is too slow and I don't know how to improve…
3
votes
2 answers

x + width must be <= bitmap.width()

I'm trying to develop face detection using google-mlkit. After setup camera, analyzer, detector etc following docs from google-mlkit https://developers.google.com/ml-kit/vision/face-detection/android, I'm able to detect face. After detect face I'm…
BIlly Sutomo
  • 407
  • 1
  • 6
  • 20
3
votes
2 answers

Spamming W/ImageReader_JNI: Unable to acquire a buffer item, very likely client tried to acquire more than maxImages buffers

I got an issue using Camera2 API and Google MLKit. What I try to do, for now, is just to log a message if a face is detected. But I have this issue: It is spamming on console: W/ImageReader_JNI: Unable to acquire a buffer item, very likely client…
Lockface
  • 105
  • 2
  • 8
3
votes
1 answer

How to recognize and count objects with Firebase / ML Kit

I'd like to recognize and count objects in a picture, e.g. count the number of houses in a picture of a neighbourhood. What's the best way to do this with ML Kit? Do I need to use the Object Detection API? Or is it possible to get multiple "house"…
rgisi
  • 858
  • 6
  • 21
3
votes
3 answers

CameraX ML KIT giving error " java.lang.IllegalStateException: Image is already closed

I want to make a real time image classifier using Google ML Kit and CameraX API. I am using Preview and Analysis of CameraX API. It is giving error as 2020-07-27 01:17:18.145 11009-11009/com.example.camerax_automl W/System.err: Caused by:…
3
votes
0 answers

Beauty Mode with CameraX

I have been searching for beauty mode since last week and didn't find any resource except for some overpriced sdk. I want to know if there is any tool or resource which helps me to implement beauty mode in-camera preview like slim face, skin tone,…
Himanshu Malik
  • 464
  • 5
  • 13
3
votes
1 answer

How to Translate text without losing newline characters?

I'm using Firebase ML Kit Translate to translate some text from Japanese to English. I'm just using the example code they have in their documentation: func translate (input: String) { print(input) translator.translate(input) {…
alamodey
  • 14,320
  • 24
  • 86
  • 112
3
votes
3 answers

Unable to get bar-code bounding box in right position on overlay Surfaceview

I'm using my CameraX with Firebase MLKit bar-code reader to detect barcode code. Application Identifies the bar-code without a problem. But I'm trying to add bounding box which shows the area of the barcode in CameraX preview in real-time. The…
3
votes
4 answers

Firebase MLKit Facedetection Slow For Android

I want to detect face from gallery Image (Bitmap). Issues I noticed that Firebase MLKIT is performing very slow on Gallery Image Bitmap. Can i still used mobile vision api for detection of face in image.( I want only detect face, dont want…