Skip to content

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

License

Notifications You must be signed in to change notification settings

IdeaCraft/posenet-camera

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

posenet-camera

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!

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 this.

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published