No project description provided
Project description
Realsense-CLI
RealSenseCLI is a command-line utility for interacting with RealSense cameras built on top of pyrealsense2.
With this package, you can easily access and control the functionalities of your RealSense cameras directly from the terminal
Features
- List connected devices info and supported streams
- Configure camera sensor controls
- Stream selected streaming profiles and check for FPS
Installation
pipx
Install RealSense-CLI using pipx
pipx install realsense-cli
pip
Install as a regular Python package
python -m pip install realsense-cli
Build
Build the package using Poetry
poetry build
Usage
You can call rs --help
to read the help for every command.
All commands, except rs list
operate on a single connected device.
In case multiple devices are connected use the -s/--serial
option to select a device.
List
List connected devices
> rs list
Devices
Name Serial Firmware USB Connection Sensors
───────────────────────────────────────────────────────────────────────────────────
Intel RealSense D435 801312071342 5.13.0.51 2.1 Stereo Module
RGB Camera
Intel RealSense D415 732612060537 5.15.0.2 3.2 Stereo Module
RGB Camera
Configure
List sensor supported controls
> rs config list depth
Query sensor controls
> rs config depth get exposure laser_power
Name Value
──────────────────────
exposure 8500.0
laser_power 150.0
Set sensor controls
> rs config set depth exposure=15000 laser_power=120
Name Value
───────────────────────
exposure 15000.0
laser_power 120.0
Stream
List supported profiles
can be called with a sensor name (rs stream list depth
) or without sensor to list profiles for all sensors
> rs stream list
Streams
Stream Resolution FPS Format
───────────────────────────────────────────────
Depth 256x144 90 Z16
Depth 480x270 6/15/30/60 Z16
Depth 640x360 30 Z16
Depth 640x480 6/15/30 Z16
Depth 848x480 6/8/10 Z16
Depth 1280x720 6 Z16
Infrared 1 480x270 6/15/30/60 Y8
Infrared 1 640x360 30 Y8
Infrared 1 640x480 6/15/30 Y8
Infrared 1 848x480 6/8/10 Y8
Infrared 1 1280x720 6 Y8
Infrared 2 480x270 6/15/30/60 Y8
Infrared 2 640x360 30 Y8
Infrared 2 640x480 6/15/30 Y8
Infrared 2 848x480 6/8/10 Y8
Infrared 2 1280x720 6 Y8
...
Color 1280x720 6/10/15 RGB8
Color 1280x720 6/10/15 RGBA8
Color 1280x720 6/10/15 Y16
Color 1280x720 6/10/15 Y8
Color 1280x720 6/10/15 YUYV
Color 1920x1080 8 BGR8
Color 1920x1080 8 BGRA8
Color 1920x1080 8 RGB8
Color 1920x1080 8 RGBA8
Color 1920x1080 8 Y16
Color 1920x1080 8 Y8
Color 1920x1080 8 YUYV
Play
Stream profiles and show a live view for incoming frames
rs stream play
- Start all streams with default profilesrs stream play depth color infrared2
- Start only given streams with default settingsrs stream play depth color --fps 30 --res 1280x720
- Start given streams with 1280x720 resolution at 30 fps
Example for live view (Ctrl-C to exit)
> rs stream play
╭─────── Depth (0) 640x480 15fps z16 ───────╮
│ Frame #69 FPS: 15.01 │
╰───────────────────────────────────────────╯
╭───── Infrared 1 (1) 640x480 15fps y8 ─────╮
│ Frame #66 FPS: 15.01 │
╰───────────────────────────────────────────╯
╭───── Infrared 2 (2) 640x480 15fps y8 ─────╮
│ Frame #66 FPS: 15.01 │
╰───────────────────────────────────────────╯
╭────── Color (0) 640x480 15fps rgb8 ───────╮
│ Frame #68 FPS: 15.01 │
╰───────────────────────────────────────────╯
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file realsense_cli-0.1.0.tar.gz
.
File metadata
- Download URL: realsense_cli-0.1.0.tar.gz
- Upload date:
- Size: 11.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.5 Linux/5.15.130-1-MANJARO
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38ce67dc8ff9b92a4eab6e748b872f052ffdaac50def67e721256a6e75eaad48 |
|
MD5 | 3856af805b0b42e7bc029adb6fd73a78 |
|
BLAKE2b-256 | f321d7b4bc03cc8f7b7909e2ce985cf7151b4dc797b62b3152b5d93c6af0cc57 |
File details
Details for the file realsense_cli-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: realsense_cli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 14.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.5 Linux/5.15.130-1-MANJARO
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 591e984de0d09de202b750c448ba187bf3f8a4ae693548cdc9124df312c2c400 |
|
MD5 | 1cc3264d1d6e99a30b19598f362b771c |
|
BLAKE2b-256 | 06b87cf21209f908819783e37c1f9ad711889d4a122fd2f2f55049e65ebbf4f6 |