项目作者: IdeaCraft

项目描述 :
Flutter plugin to show camera preview, run PoseNet on camera frames and send output as a stream.
高级语言: Kotlin
项目地址: git://github.com/IdeaCraft/posenet-camera.git
创建时间: 2020-07-16T09:49:51Z
项目社区:https://github.com/IdeaCraft/posenet-camera

开源协议:Creative Commons Zero v1.0 Universal

下载


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.

  1. dependencies:
  2. posenet-camera:
  3. git:
  4. 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:

  1. <key>NSCameraUsageDescription</key>
  2. <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.

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