Questions tagged [firebase-machine-learning]
Firebase Machine Learning is a mobile SDK that brings custom model deployment, AutoML Vision Edge, and Cloud Visions APIs to Android and iOS apps.
45
questions
0
votes
0
answers
39
views
Flutter - Fail to run Custom Model From Firebase into Flutter App
I call model from firebase through firebase_ml_model_downloader it work fine but when I try to work with my model through this flutter_tflite it giving error
init model in first screen like this
///...
1
vote
1
answer
75
views
How to use firebase mlkit witn react-native?
I do find info on how to setup basic firebase (like @react-native-firebase/app) for react native, and there is info of how to install ML, but that is old info. The new ones, after 2020, would be ML ...
0
votes
0
answers
70
views
How to solve "Encountered unresolved custom op: edgetpu-custom-op" exception
Im trying to implement my custom ML model in a kotlin app.
I first make and train my model in GCP Vertex AI.
After my model was ready i've export it as tensor flow model to the edge and then upload to ...
0
votes
0
answers
81
views
com.google.mlkit.vision.text.TextRecognizer com.google.mlkit.vision.text.internal.zzb.zza() on a null object reference
I'm trying to implement mlkit for text recognition.
But while using
val recognizer= TextRecognition.getClient()
Throws this expection
com.google.mlkit.vision.text.internal.zzb.zza() on a null object ...
0
votes
0
answers
50
views
Capture Screen shot every 30 sec on Android
How do I make the application take a screenshot every 30 seconds and then the following code here will run? (The code for the screenshot is also attached here)
ImageView imgGallery;
TextView textView;
...
0
votes
1
answer
94
views
Firebase - Machine Learning and interest tracking to create an algorithm for sorting posts
One of my applications includes user-generated posts and functions in a similar way to Instagram. When a user opens the app they see a feed of posts sorted by date. This works when there just one ...
0
votes
0
answers
74
views
FirebaseMLNLTranslation model files not found
I am adding a translate text feature to my app. I have the text and run the initial setup, but this error keeps coming up.
error: Error Domain=com.firebase.ml Code=13 "Translation model files ...
0
votes
1
answer
124
views
Firebase Text Recognition for Web [closed]
Is it possible to use Text Recognition (https://firebase.google.com/docs/ml/recognize-text) for web projects. I'd like it to run the built-in model through images uploaded to the Storage.
0
votes
0
answers
27
views
Does Firebase ML API read request quota affect download of model file from Device?
I'm using Custom ML model with Firebase.
When I try to check the models uploaded to firebase using python script, the following message appears.
( https://github.com/firebase/quickstart-python/tree/...
0
votes
0
answers
165
views
I am facing an issue with Android Studio Camera
I am using firebase text recognition to recognize text from camera images, however sometimes when I take a picture, I get an error message. I do not understand what the error is, I have already ...
0
votes
2
answers
380
views
Cannot resolve symbol 'FirebaseVisionImage' error in Android Studio
I am currently making a basic google lens app and I'm struggling with this error. Is there a way to fix this?
My dependencies:
dependencies {
implementation 'androidx.appcompat:appcompat:1.4.0'
...
0
votes
1
answer
70
views
Firebase deploy - Cannot publish a model that is not verified
I'm trying to deploy a .tflite to Firebase ML so that I can distribute it from there.
I used transfer learning on this TF Hub model. I then followed this tutorial to convert the model .tflite format.
...
0
votes
1
answer
159
views
How to use the Cloud Functions in order to use Firebase Cloud vision
I just recently upgraded my Firebase account to blaze to try out the Machine Learning features of Firebase. I am following closely this guide by google:
https://firebase.google.com/docs/ml/android/...
1
vote
1
answer
157
views
Firebase Text Recognition
I tried firebase ml kit and got error this TypeError: (0 , _ml.default)(...).cloudDocumentTextRecognizerProcessImage is not a function
const onPressActionGallery = () => {
ImagePicker....
1
vote
1
answer
160
views
Use Firebase ML Vision to detect spots / dots / circles in an image
I'm using the firebase_ml_vision plugin for flutter. I need to detect all the spots / dots / solid circles on an image. With the example app, and using cloudImageLabeler i managed to detect that there ...
0
votes
1
answer
98
views
FirebaseML Vision with SwiftPM
I was installing Firebase via Swift package manager trying to use FirebaseMLVision framework. I was wondering if this was removed or hasn't been added yet to Swiftpm. I selected Firebase, Firebase ...
0
votes
0
answers
81
views
Upload images to train ML Kit not possible
I am trying to use Firebase ML Kit in an app to label images. I want to upload training data to the dataset, but i always get the error, that my cloud bucket has to be in the region "us-central1&...
0
votes
1
answer
209
views
Flutter: upgrading firebase_ml_vision dependency from 0.9.x to 0.10.0
My flutter project runs fine with Firebase ML Vision 0.9.x, if I try to upgrade to 0.10.0 (or higher), it yields the following errors:
FAILURE: Build completed with 2 failures.
1: Task failed with an ...
0
votes
2
answers
414
views
Can we use android ML Kit Image Labeling to detect a product
I am having a requirement from client that we need to detect our product box in cameraView. For that I am trying to use firebase ML Kit object detection. For now it detects general objects like door, ...
0
votes
2
answers
1k
views
inputImage.getByteBuffer() is null when using AndroidX Camera with MLKit
This is the code from my Activity class:
@Override protected void onCreate(Bundle savedInstanceState)
{
requestWindowFeature(Window.FEATURE_NO_TITLE);
super.onCreate(...
0
votes
0
answers
46
views
Convert JsonObjectRequest to an Object
I'm trying to implement by own JSON search backend.
In ML Kit, the search engine uses Volley to process the request.
Once a barcode is detected in detectedBarcode this is ran:
...
2
votes
1
answer
397
views
Error downloading/saving a remote ML model from Firebase
I'm using MLKit with iOS in a react native project.
Basically using this code: https://firebase.google.com/docs/ml/ios/label-images-with-automl
It used to work fine but now i get this error:
...
0
votes
1
answer
947
views
Flutter - firebase_ml_vision - doesn't build on IOS - textRecognizer doesn't work
Flutter - Trying to get textRecognizer to work on IOS
firebase_ml_vision - doesn't build on IOS
pubspec.yaml:
firebase_core: ^0.7.0
firebase_auth: ^0.20.1
cloud_firestore: ^0.16.0+1
...
0
votes
1
answer
166
views
How can I use two Ml Kit detectors at the same time
I want to use image tagging and text recognition at the same time in my application. I have the following:
fun initAnalyzer(cameraExecutor: Executor) {
imageAnalyzer = ImageAnalysis.Builder()....
0
votes
1
answer
222
views
Tensorflow Model output weights have different values
I am developing an Android application which requires an ML model integration.For it I am using TensorFlow lite for deployment.I am using Custom Model based Siamese Network for output and the output ...
0
votes
1
answer
189
views
Duplicate class when adding Firebase-ML to Gradle
I am totally new to android studio. I am trying to read some text using Firebase-ML, but I am getting duplicate class error when I try to run the program
Error:
Duplicate class com.google.android.gms....
3
votes
1
answer
901
views
Firebase ML Kit
Trying to use Firebase ml kit for label but getting error below with version; firebase_ml_vision: ^0.9.10
Error
Launching lib\main.dart on sdk gphone x86 arm in debug mode...
lib\main.dart
FAILURE:...
0
votes
1
answer
60
views
Android Task<FirebaseVisionText> not returning FirebaseVisionText type
I'm trying to pull the text and blocks from my image processed through a FirebaseVisionTextRecognizer, and even though the processing is successful, it doesn't seem to return as the correct type. ...
1
vote
0
answers
45
views
How to publish AutoML(Firebase) model with node?
how can I publish the model not using the firebase UI but using the code?
I'm already create a client witch fill and predicts my model using node.js. And from my client application I'm receiving my ...
1
vote
1
answer
394
views
FlutterFire Firebase_ml_vision: PlatformException(Error 13, com.firebase.ml, Barcode engine is nil., null)
I've been using the 'firebase_ml_vision' package to scan Qr codes in an Image Stream provided by the 'camera' package. Everything was fine until the update that happened in Nov. 6. In Android, I can ...
9
votes
0
answers
513
views
Duplicate class found in module error when runnig app uses firebase ml kit
I am developing android application that uses firebase ml kit to recognize text from image after importing firebase libraries when i run the application I catch this error:
Duplicate class com.google....
0
votes
2
answers
145
views
What is the meaning of 'iw' language code from firebase-ml-languageIdentifier? (flutter)
I'm trying to use the firebase ML language identifier. Whenever I type something in Hebrew, I get back the language code 'iw' instead of 'he'. I tried to look for the API or the meaning of the 'iw' ...
2
votes
0
answers
222
views
Firebase ml vision : Platform exception No model is bundled
I get the following error when i try to call the processImage() from imagelabeler
As mentioned in their docs I have added the dependency but still it doesnt seem to be working.
Error
E/flutter ( 5149):...
1
vote
2
answers
156
views
Flutter firebase_ml_vision errors with async function, getImage and pickedFile
How to resolve the following errors:
The await expression can only be used in an async function.Try
marking the function body with async.
Instance member 'getImage'
can't be accessed using static ...
0
votes
1
answer
324
views
Vision image process returns nil ML Kit Firebase
I am trying to build a text recognizer app in iOS with the Firebase ML Kit. I have tried following some tutorials, but no luck. I keep getting the following error at the line indicated (return self....
0
votes
1
answer
671
views
Flutter firebase_ml_vision build failed with exception
Android build keeps crashing with firebase_ml_vision being the dependency that causes it.
Below is the output from the debug console when running a build for android.
> In project 'app' a resolved ...
2
votes
1
answer
754
views
How do I select text from a scanned photo?
I'm in the process of writing an app with which you can take a picture of a text and then the text is scanned and transferred to a variable. I've done that with the plugin firebase_ml_vision and ...
0
votes
0
answers
926
views
Can't get face detection to work properly using Flutter and Firebase_ml_vision
I've been struggling with this for about 24 hours now, and have come to the end of my ideas on how to address it.
I've written code which loads an image from Firebase, and detects a face in it - no ...
0
votes
0
answers
176
views
How to do FirebaseVisionImage.fromBytes(bytes, metadata) from firebase_vision_image package of flutter
Hi I am using firebase_vision_image package of flutter and right now I do confused, is there a way to change FirebaseVisionImage.fromFile(myImage file) to FirebaseVisionImage.fromBytes(bytes, metadata)...
0
votes
0
answers
175
views
How to speed up respond of image processing result from camera when using firebase_ml_vision of flutter package
I am using a package flutter of firebase_ml_vision. Is there a way to get fast respond of result from face detection? Here is the part of the code
final faceDetector = FirebaseVision.instance....
1
vote
1
answer
480
views
Tflite 200mb big
I am building a model which should classify flowers. So I created a model with Tensorflow:
keras.layers.Conv2D(128, (3,3), activation='relu', input_shape=(imageShape[0], imageShape[1],3)),
keras....
0
votes
1
answer
87
views
Firebase Tensorflow Lite Model
I am building a Tensorflow model to predict a certain feature for each user. So, I am making a model for each user of the application. I was wondering how to I upload the Tensorflow lite model to the ...
1
vote
0
answers
603
views
how to create barcode scanner using imagestream (flutter)
I would like to create an Android apps using flutter/Dart which displays current camera stream on the upper half of the mobile screen and the result of the barcode on the bottom half.
Here is what I ...
0
votes
2
answers
220
views
Firebase ML image classification probabilities got a weird output (not in probabilities) ----Update 1
I'm new to ML kit Firebase, I'm using the Firebase image classification custom model ML kits.
There have 6 different objects in my custom model
The custom model .tflite file was tested in python and ...
0
votes
1
answer
969
views
MLKit rotate face image so its straight (iOS and Android)
I'm developing an app where I use Firebase's MLKit to do face detection. I then take the detected face and run it through a custom tensorflow model
The problem is my custom tensorflow model expects ...