hybridgroup / node-bebop

A Node.js client for controlling Parrot Bebop & Bebop2 quadcopters.
http://nodebebop.com
MIT License
146 stars 61 forks source link

Able to specify size and fps params #35

Closed kakakikikeke-fork closed 8 years ago

kakakikikeke-fork commented 8 years ago

Abst

The opts variable has to have a size and fps values in a getMjpegStream method of bebop.js

How to use

You can use it following as (e.g. in node-bebop/examples/opencv-face-tracking.js )

var drone = bebop.createClient(),
    opts = {'size': '320x240', 'fps': 24, 'quality': 1},
    mjpg = drone.getMjpegStream(opts),
    w = new cv.NamedWindow("Video", 0),
    buf = null;
deadprogram commented 8 years ago

Good stuff, thanks @kakakikikeke-fork