Pre-Requisites: Flutter >= 3.7
- Install TFLite dependencies for Android
Linux / MacOS
sh install.sh -d
Windows
install.bat -d
- Install TFLite dependencies for iOS
- Download this file: TensorFlowLiteC.framework
- Place the
TensorFlowLiteC.framework
file in thepub-cache
folder of thetflite_flutter
package
- Linux/ Mac => ~/.pub-cache/hosted/pub.dev/tflite_flutter-/ios/
- Windows => %LOCALAPPDATA%\Pub\Cache\hosted\pub.dev\tflite_flutter-\ios\
** To use Metal on iOS: Download the file from this PR: https://github.com/am15h/tflite_flutter_plugin/pull/200/files and follow the instructions here: https://github.com/am15h/tflite_flutter_plugin/wiki/Build-iOS-binaries-with-GPU-delegate
- Install Flutter Dependencies
flutter pub get
- Run
flutter run
- Using the MoveNet Lightning Single Pose Model
- Uses a 640x480 RGB image as input (Medium Resolution Preset for Android and iOS)
- Outputs an array with [x, y, confidence] (x, y are scaled according to the input image size)
Angle Between Two Lines: https://www.nagwa.com/en/explainers/407162748438/