/** * Callback for when Jibo takes a photo. * ``` * let behavior = TakePhoto(2, 2, (url) => { * let img = new Image(); * img.src = url; * }); * ``` * @callback jibo.bt.behaviors.TakePhoto~OnPhoto * @param {String} url The image URL. */ /** * @class TakePhoto * @extends jibo.bt.Behavior * @memberof jibo.bt.behaviors * @description Makes Jibo take a photo and will return a URL to get the contents of that photo. * @param {Object} options Options * @param {number} options.resolution `1` for a 672x380 photo. `2` for 1280x720 photo. `3` for 1920x1080 photo. `4` for 2688x1520 photo. * @param {jibo.bt.behaviors.TakePhoto~OnPhoto} options.onPhoto Called after Jibo takes a picture. The image URL is passed to this function. * @param {boolean} [options.noDistortion=true] Removes camera distortion from photo. */