Questions tagged [firebase-mlkit]

[DEPRECATED, use `firebase-machine-learning` or `google-mlkit` instead] ML Kit for Firebase is Google's machine learning toolkit for Android and iOS that provides on-device, cloud, and custom model serving capabilities using TensorFlow Lite.

UPDATE: Since June, 2020, Google offers ML Kit's on-device APIs through a new standalone SDK. Cloud APIs, AutoML Vision Edge, and custom model deployment will continue to be available via Firebase Machine Learning. Learn more

Resources

643 questions
0
votes
1 answer

Searching for image Firebase using ML Kit

I have a set of a hundred or so images (eventually this will be a few thousand). From my app I want to be able to take a picture and upload it to Firebase and search wether the picture contains one of the images from the set and if so which one.…
Anters Bear
  • 1,816
  • 1
  • 15
  • 41
0
votes
0 answers

Text Recognition using firebase MLkit calls the OnFailure() method only. why?

Although i took the code from firebase console and i'm pretty sure the firebase is properly integrated FirebaseVisionImage image = FirebaseVisionImage.fromBitmap(bitmap); FirebaseVisionTextRecognizer detector = FirebaseVision.getInstance() …
0
votes
1 answer

ml kit - Text Recognition output issues

I am creating a business card app using the ml kit text recognition. I have an app this is up and working, but have found that when uploading a business card and extracting the text, but the text comes back in a mess of clumps with no spaces. I…
MadeleineG
  • 31
  • 7
0
votes
1 answer

Is it possible to run two detectors from one CameraSource with Google Play Vision

I have an app, on Android only and using Xamarin that I want to do text recognition (OCR) and barcode scanning at approximately the same time. I am using Google Play Services Vision for this. I have created the TextRecognizer instance like this:…
0
votes
1 answer

Make an alert if eyelid closed more than 3 seconds

I want to make an alert after the user's eyelid is closed for more than 3 seconds but I have a problem with my code. How can I make the boolean right_eye and boolean left_eye trigger the alert after 3 seconds it closed? Here is some code that I…
0
votes
1 answer

How to recognize text from the PDF file using Firebase ML Kit?

I am developing an Android app to detect text from the PDF file. First, I tried to use Google Cloud Vision API. But it required to OAuth 2.0. So I changed from it to Firebase ML Kit. But when I run 'fromFilePath' method, NPE occurred. val file =…
yoonhok
  • 2,575
  • 2
  • 30
  • 58
0
votes
1 answer

ML Kit OCR in Fotoapparat returns nonsense

I'm trying to do custom frame processing, to create an ML-Kit OCR app. I first used FotoApparat to create a simple camera app. I then added a custom frame processing anonymous function in m initialization of FotoApparat. private fun…
0
votes
1 answer

Getting NullPointerException in context

I want to run the program in Android Studio but i got this error. java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.pm.ApplicationInfo android.content.Context.getApplicationInfo()' on a null object reference at…
0
votes
1 answer

Inaccurate prediction in MLKit custom model

Trying to use a retrained MobileNet model to predict dog breeds, but when using the model through Firebase MLKit, it is unable to correctly predict the dog breed. The desktop model and the tflite model are both able to correctly predict the breed,…
Joshua Feltimo
  • 323
  • 1
  • 3
  • 12
0
votes
4 answers

Flutter pick image camera or gallery exception

I have a Flutter project in which I am trying to put MLKit for text OCR. I have crated a standalone Flutter project which works fine with MLKit. However when I put the same code and dependencies to my existing Flutter project it is not working as…
Sam
  • 2,972
  • 6
  • 34
  • 62
0
votes
1 answer

My List faces is always empty

I am implementing the MLKit face detection library with a simple application. The application is a facial monitoring system so i am setting up a preview feed from the front camera and attempting to detect a face. I am using camera2Api. At my…
0
votes
1 answer

Firebase ML kit Hosting a Custom Model

Is it possible to use the ML kit custom model hosting to do object detection not just object classification. I am familiar with doing this in the tensorflow lite sample android application, yet I would like to use Firebase as it has capability of…
0
votes
1 answer

Firebase Cloud Text Recognition

I get the following error when I try to use the cloud based API to do text recognition: W/System.err: com.google.firebase.ml.common.FirebaseMLException: Internal error has occurred when executing Firebase ML tasks at…
El_Loco
  • 1,716
  • 4
  • 20
  • 35
0
votes
1 answer

Exported tflite model predicts incorrect outputs

I have a trained custom Tensorflow model and want to use it in my iOS app via Firebase MLKit. The model is a simple 4in-4out neural network with one hidden layer which is like this. num_data_input = 4 num_units = 12 num_display = 4 xd =…
0
votes
1 answer

What protocol Firebase ML Kit uses?

I plan to use ML Kit with a custom model in my android app and interesting what protocol it uses to download the model from cloud? Is it secure or not?