/posenet-camera

Flutter plugin to show camera preview, run PoseNet on camera frames and send output as a stream.

Primary LanguageKotlinCreative Commons Zero v1.0 UniversalCC0-1.0

posenet-camera

Flutter plugin to show camera preview, run PoseNet on camera frames and send output as a stream.

Note: This plugin is still under development, and some APIs might not be available yet.

Features:

  • Display live camera preview in a widget.
  • Get Pose co-ordinates in the form of Dart Stream.
  • Camera and Posenet runs on different threads.

Installation

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

iOS

Add a row to the ios/Runner/Info.plist:

  • with the key 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>

Android

Change the minimum Android sdk version to 21 (or higher) in your android/app/build.gradle file.

minSdkVersion 21

Example

For a more elaborate usage example see here.

Contribution

Note: This plugin is still under development, and some APIs might not be available yet.

Feedback, Issues and Pull Requests are most welcome!

Learn more about Flutter plugins & packages

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.