0.0.5 • Published 8 months ago

realsense v0.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

realsense

Node.js native wrapper for accessing the Intel RealSense D435i camera.

const RealSenseCamera = require('realsense');
const camera = new RealSenseCamera();

const options = {
    depthWidth: 480,
    depthHeight: 270,
    colorWidth: 424,
    colorHeight: 240,
    fps: 60
};

camera.on('frame', (frame) => {
    const { depthFrame, colorFrame } = frame;

    const depthArray = new Uint16Array(depthFrame.data.buffer);
    const colorArray = new Uint8Array(colorFrame.data.buffer);
})

camera.on('end', () => {
    console.log('Streaming ended.');
});

camera.start(options);
0.0.5

8 months ago

0.0.4

8 months ago

0.0.3

8 months ago

0.0.2

8 months ago

0.0.1

8 months ago