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