I am trying to use MoveNet in Flutter using tflite. If anyone has experience with it or example with the implementation, an example would be appreciated.
I have successfully implemented MoveNet singlepose lightning model with tflite_flutter on my Flutter application. You can refer to this repo I made: https://github.com/AGRapista/FitnessInstructor The code you should be interested in is in lib/test.dart
Related
I have a basic AR app with Fluttern, using the arcore_flutter_plugin plugin "ArCoreReferenceNode".
I am trying to import a basic model but unfortunately it doesn't display it in any way, I don't even get an error message. The code shows no errors. Only the built-in cube is displayed.
Has anyone seen this error before?
GLB extension files were used as models.
I have completed a tensorflow model than converted it correctly to tflite in order to use it in a mobile app using flutter. I didn't know how to integrate a personalized tflite model with flutter. All the available examples use the pretrained models. When I tried my model, the camera launches for a while and stops immediately!
I followed the source code from this link which uses the "tflite" pacakge : https://medium.com/#shaqian629/real-time-object-detection-in-flutter-b31c7ff9ef96
I added my own tflite model alongside with other models in all the ".dart" files and in "pubspec.yaml".
you can try the 'tflite_flutter' package. 'tflite' package is not suitable for custom trained models as you will get shape incompatible error message
i have a database in firebase and i am trying to read it using flutter. I found this tutorial here https://medium.com/flutterdevs/explore-realtime-database-in-flutter-c5870c2b231f
it looks pretty easy so i followed the steps. I added the read function in my code and when i run it i get this error here https://gyazo.com/a1cfe40527ad9908dcd4edfcd36d2cc9
if i search the error, i only get the solution to clean and flutter get but this doesn't work do you guys have any ideas?
I'm on a project that uses tflite Posenet to run on a mobile with Flutter Framework. We wanted more precision score on our tests, but we realized that the repository which is given us by the original example on Dart API docs https://pub.dev/documentation/tflite/latest/ uses Multi-Person Pose Estimation by defalt. (Repository mentioned:https://github.com/shaqian/flutter_realtime_detection).
We know that the original tfjs repository talks about it and give examples https://github.com/tensorflow/tfjs-models/tree/master/posenet but we can't find it on Dart API for flutter.
How can I set Single-Person Pose Estimation?
There is another tflite_flutter plugin which is actively being developed: https://pub.dev/packages/tflite_flutter. Please take a look.
This plugin allows you to run any custom .tflite model, so you should be able to download the single person posenet model provided from the official TFLite site here: https://www.tensorflow.org/lite/models/pose_estimation/overview.
There aren't any official flutter examples, but you should be able to refer to the Android/iOS examples to see how to pre-process / post-process the data.
Hy guys, updating the issue:
We maneged it after some tests with the Tflite.runPoseNetOnImage function. This function has a property called numResults, wich we can set to "1". Tflite.runPoseNetOnFrame has the same property.
You can see it in this link (https://pub.dev/documentation/tflite/latest/)
I'm developing an app widget on Android Studio beside an ionic project.
My goal is to to integrate my app widget into the ionic project permitting users having access to the widget by downloading the app.
I started copying pasting some file into the folder platform/android/src
but I get the error package R does not exist.
I don't know if it is the right way to do it.
If so, which library shall I import to fix this error. I already tried the android.jar from the android-sdk.
Is there any other easiest way to achieve this?
I just want to precise that the widget doesn't communicate with the ionic app, it make just http request to a Rest API.
It is because the hybrid does not have the Class R that manages that part. I'll leave some examples of how I do.
Instead of using R.layout.new_app_widget
context.getPackageName(),context.getResources().getIdentifier("new_app_widget", "layout",context.getPackageName());
or
context.getResources().getIdentifier("new_app_widget", "layout",context.getPackageName());
Instead of using R.id.btn_action
context.getResources().getIdentifier("btn_action", "id",context.getPackageName());
Instead of using R.string.app_name
context.getResources().getIdentifier("app_name", "string",context.getPackageName());
Instead of using R.drawable.icon
context.getResources().getIdentifier("icon", "drawable",context.getPackageName());