Skip to content

pixeloxx/realsense-web-socket

This branch is 2 commits ahead of IAD-ZHDK/realsense-web-socket:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Oct 28, 2021
212b3f3 · Oct 28, 2021

History

10 Commits
Oct 28, 2021
Oct 28, 2021
Oct 28, 2021
Jul 30, 2021
Jul 30, 2021

Repository files navigation

Intel RealSense to WebSocket

Send RealSense data over web socket to p5js.

Installation

Make sure to install the following Processing packages from the contribution manager:

  • oscP5
  • Intel RealSense for Processing

Attach the RealSense to the computer and start the sketch.

P5js

To receive the data in a the P5js demo, open the demo-receiver/index.html on a local webserver:

python3 -m http.server

The window shoudl show the image sent from the realsense camera.

Image Size

To adjust the image size which is sent over the network, use the DECIMATION parameter which specifies, by which factor the image will be decimated.

Filter

To add more filter to smooth the image or set a distance threshold, use the following filter examples:

// filters
camera.addTemporalFilter();
camera.addHoleFillingFilter();

// set distance filter (in meters)
camera.addThresholdFilter(2.0, 3.0);

About

Implemented by Florian Bruggisser 2021

About

Send RealSense data over web socket to p5js.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 43.9%
  • Processing 35.5%
  • HTML 20.6%