This repository contains code that uses the Intel RealSense camera to capture video with color and depth information. The captured videos are saved to a file while displaying the frames in real-time using OpenCV.
- Clone this repository and navigate to the project folder:
git clone https://github.com/aniervs/depth-streaming-realsense.git && cd depth-streaming-realsense
- Create a virtual environment and install the dependencies:
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
- Connect the Intel RealSense camera to your computer.
- Set the preprocessing settings you want for the recordings on the 'settings.json' file.
- Run the 'main.py' file to start recording.
- The script will start capturing video from the RealSense camera. Press 'q' to stop the capture.
- The recordings will be stored under the 'data' folder, where you'll have two videos: one with the color image and another with the depth image.
- Decimation filter
- HDR Merge
- Filter by Sequence id
- Threshold Filter
- Depth to Disparity
- Spatial Filter
- Temporal Filter
- Hole Filling Filter
- Disparity to Depth