onvif-snapshot
Include this library to take a snapshot of a camera with the onvif library.
Installation
npm install --save onvif onvif-snapshot
Returns an object:
{
mimeType: 'jpg|png',
rawImage: <Node.JS Buffer>
}
Examples
Promise
const Onvif = ;; const Cam = hostname: processenvHOSTNAME username: processenvUSER password: processenvPASSWORD { iferr throw err; try var data = await this; catche return console; console;};
Callback
const Onvif = ;; const Cam = hostname: processenvHOSTNAME username: processenvUSER password: processenvPASSWORD { iferr throw err; this;};