A modular, object-oriented Python application for capturing images from Intel RealSense cameras.
- Capture from both infrared and color cameras
- Toggle laser emitter (for infrared mode)
- Save images with timestamped filenames
- Clean, modular codebase with OOP principles
- Configurable through command-line arguments
- Install Intel RealSense SDK: https://github.com/IntelRealSense/librealsense
- Install Python dependencies:
pip install -r requirements.txt
- (Optional) Install as a package:
python setup.py install
Run the infrared camera:
python src/main.py --mode infraredRun the color camera:
python src/main.py --mode colorSpecify a custom save directory:
python src/main.py --mode infrared --save-dir /path/to/save/directory- Press 's' to save current frames
- Press 'e' to toggle laser emitter (infrared mode only)
- Press 'q' to quit the application
realsense-capture/
├── src/ # Source code
│ ├── cameras/ # Camera implementations
│ ├── utils/ # Utility functions
│ └── main.py # Main application
├── config/ # Configuration files
├── scripts/ # Scripts and test images
├── requirements.txt # Python dependencies
├── setup.py # Package installation script
└── README.md # Project documentation