I am new to flutter. I am making an action recognize mobile app. But tflite defense doesn’t work with flutter. Does anyone know a solution?
The plugin tflite
uses a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to see if this plugin supports the Android V2 embedding. Otherwise, consider removing it since a future release of Flutter will remove these deprecated APIs.
this is the error. anyone can help me plz?
2
Answers
You can use google ml kit for recognize things.
for example for object detection you can use google_mlkit_object_detection
and this base on tflite
this is sample code to Create an instance of tflite_model
change the
compile to api
you will find a file in this location in windowsscreenshot shows changes
or you can use the relative path