Flutter plugin to show camera preview, run PoseNet on camera frames and send output as a stream.
Flutter plugin to show camera preview, run PoseNet on camera frames and send output as a stream of keypoint-coordinates.
Note: This plugin is still under development, and some APIs might not be available yet!
First, add posenet-camera
as a git dependency in your pubspec.yaml file.
dependencies:
posenet-camera:
git:
url: git://github.com/IdeaCraft/posenet-camera.git
Add a row to the ios/Runner/Info.plist
:
Privacy - Camera Usage Description
and a usage description.Or in text format add the key:
<key>NSCameraUsageDescription</key>
<string>Can I use the camera please?</string>
Change the minimum Android sdk version to 21 (or higher) in your android/app/build.gradle
file.
minSdkVersion 21
For a more elaborate usage example see this.
Note: This plugin is still under development, and some APIs might not be available yet!
Feedback, Issues and
Pull Requests are most welcome!
plug-in package is
a specialized package that includes platform-specific implementation code for
Android and/or iOS.
For help getting started with Flutter, view the
online documentation, which offers tutorials,
samples, guidance on mobile developments, and a full API reference.