firebase-mlkit

What is the difference between the .lite and the .tflite formats

余生长醉 提交于 2020-01-14 16:35:44
问题 What is the difference between the .lite and the .tflite formats (TensorFlow formats)? And if there is no difference, why there are two of them? In addition to the question, it seems that I can't upload my model with the .lite extension file to Firebase ML kit. What might be the reason for that? 回答1: ML Developers first train a TensorFlow model, and then use TOCO to convert it to TensorFlow Lite model. When running the TOCO command, you can specify whatever output name for the converted Lite

What is the difference between the .lite and the .tflite formats

你离开我真会死。 提交于 2020-01-14 16:35:33
问题 What is the difference between the .lite and the .tflite formats (TensorFlow formats)? And if there is no difference, why there are two of them? In addition to the question, it seems that I can't upload my model with the .lite extension file to Firebase ML kit. What might be the reason for that? 回答1: ML Developers first train a TensorFlow model, and then use TOCO to convert it to TensorFlow Lite model. When running the TOCO command, you can specify whatever output name for the converted Lite

MLKit Firebase android - How to convert FirebaseVisionFace to Image Object (like Bitmap)?

☆樱花仙子☆ 提交于 2020-01-14 07:43:07
问题 I have integrated MLkit FaceDetection into my android application. I have referred below URL https://firebase.google.com/docs/ml-kit/android/detect-faces Code for Face Detection Processor Class is import java.io.IOException; import java.util.List; /** Face Detector Demo. */ public class FaceDetectionProcessor extends VisionProcessorBase<List<FirebaseVisionFace>> { private static final String TAG = "FaceDetectionProcessor"; private final FirebaseVisionFaceDetector detector; public

Android MLKit - Internal error has occurred when executing Firebase ML tasks

Deadly 提交于 2020-01-04 05:33:13
问题 Hi I have a custom model that im using in an android app, how ever when i try to run it, an MLkitExceptions is thrown, the log output for said error is the following: Internal error has occurred when executing Firebase ML tasks My java code for my app looks like the following: FirebaseLocalModel localModel = new FirebaseLocalModel.Builder("local_places_recommend") .setAssetFilePath("recsys.tflite").build(); FirebaseModelManager.getInstance().registerLocalModel(localModel);

MLKit Text detection on iOS working for photos taken from Assets.xcassets, but not the same photo taken on camera/uploaded from camera roll

£可爱£侵袭症+ 提交于 2019-12-31 03:33:14
问题 I'm using Google's Text detection API from MLKit to detect text from images. It seems to work perfectly on screenshots but when I try to use it on images taken in the app (using AVFoundation) or on photos uploaded from camera roll it spits out a small number of seemingly random characters. This is my code for running the actual text detection: func runTextRecognition(with image: UIImage) { let visionImage = VisionImage(image: image) textRecognizer.process(visionImage) { features, error in

Not Retriveing Output Prediction List from Remote Firebase Automl custom model

十年热恋 提交于 2019-12-25 00:25:55
问题 I am currently trying to build an app that uses google's autoML feature. I have trained a model and published it on google firebase and have integrated the necessary code into my app following the documentation: https://firebase.google.com/docs/ml-kit/ios/label-images-with-automl I am using a remote model instead of making it local. However when I try running the code, then choose an image in the simulator, an empty list of predictions is output in the console. I have also turned on the

Running the Firebase ML Vision API calls inside a Compute/Isolate function

拈花ヽ惹草 提交于 2019-12-24 11:39:08
问题 I have been playing around with the Firebase ML Vision https://pub.dartlang.org/packages/firebase_ml_vision and have so far integrated the Text recognition within my application. My issue here is that I have my UI which is a live camera feed and every time I call the Firebase ML vision, I see about 1-2 seconds lag/freeze which affects my UI. I managed to narrow this down to this line of code from the Firebase ML API final results = (() async => (await detector.detectInImage(visionImage) ??

Google ML Kit: Waiting for the text recognition model to be downloaded

a 夏天 提交于 2019-12-23 09:34:55
问题 [mlkit] I am implementing the "On-device text recognition" from the Google Machine Learning Kit for android. I followed this guide but every time try to detect text I get the exception "Waiting for the text recognition model to be downloaded. Please wait." Obviously, waiting doesn't help, neither does making a new detection 10 seconds later. I have the meta tag <meta-data android:name="com.google.firebase.ml.vision.DEPENDENCIES" android:value="text" /> in my manifest's app tag, which is

Firebase ML kit give FirebaseMLException: Waiting for the text recognition model to be downloaded. Please wait

99封情书 提交于 2019-12-23 07:48:19
问题 I'm use firebase ml kit for text recognition but give this exception on emulator and real device. W/System.err: com.google.firebase.ml.common.FirebaseMLException: Waiting for the text recognition model to be downloaded. Please wait. at com.google.android.gms.internal.firebase_ml.zzjz.zzc(Unknown Source) at com.google.android.gms.internal.firebase_ml.zzjz.zza(Unknown Source) at com.google.android.gms.internal.firebase_ml.zzic.call(Unknown Source) at com.google.android.gms.internal.firebase_ml

Firebase ML kit give FirebaseMLException: Waiting for the text recognition model to be downloaded. Please wait

Deadly 提交于 2019-12-23 07:48:14
问题 I'm use firebase ml kit for text recognition but give this exception on emulator and real device. W/System.err: com.google.firebase.ml.common.FirebaseMLException: Waiting for the text recognition model to be downloaded. Please wait. at com.google.android.gms.internal.firebase_ml.zzjz.zzc(Unknown Source) at com.google.android.gms.internal.firebase_ml.zzjz.zza(Unknown Source) at com.google.android.gms.internal.firebase_ml.zzic.call(Unknown Source) at com.google.android.gms.internal.firebase_ml