cycle-posenet-driver
TypeScript icon, indicating that this package has built-in type declarations

1.0.13 • Public • Published

cycle-posenet-driver

Cycle.js drivers for pose detection using PoseNet.

Try the demo at StackBlitz!

Note that this package was tested with Chrome browser (>= 65.0.3325.181) only.

API

makePoseDetectionDriver(options)

PoseNet driver factory.

Params:

  • options possible key includes
    • videoWidth {number} An optional video height (default: 640).
    • videoWidth {number} An optional video width (default: 480).
    • flipHorizontal {boolean} An optional flag for horizontally flipping the video (default: true).
    • fps {number} An optional desired frame rate per second
    • closeGUIOnStart {boolean} An optional flag for closing GUI on start

the PoseNet Cycle.js driver function. It takes a stream of PoseNetParameters and returns EventSource:

  • EventSource.events(eventName) takes 'poses' or 'dom' that returns Pose arrays or a required virtual dom element, respectively.

Readme

Keywords

none

Package Sidebar

Install

npm i cycle-posenet-driver

Weekly Downloads

78

Version

1.0.13

License

MIT

Unpacked Size

104 kB

Total Files

24

Last publish

Collaborators

  • mjyc