cycle-posenet-driver
v1.0.13
Published
A Cycle.js driver for pose detection using TensorFlow.js-powered PoseNet
Downloads
146
Readme
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 returnsPose
arrays or a required virtual dom element, respectively.