Skip to main content

No project description provided

Project description

realsense-cli

A modern command-line interface for Intel RealSense cameras, built on pyrealsense2.

PyPI version Python License


Features

  • List connected devices and their supported streaming profiles
  • Configure sensor controls (exposure, gain, laser power, etc.)
  • Stream selected profiles and monitor live FPS per stream
  • Inspect ROS bag files without a full ROS installation
  • Multi-device support via --serial

Installation

uv (recommended):

uv tool install realsense-cli   # install permanently
uvx realsense-cli               # run without installing

pipx:

pipx install realsense-cli

pip:

pip install realsense-cli

Development

Clone and set up:

git clone https://github.com/yegarti/realsense-cli.git
cd realsense-cli
uv sync

Run the CLI from source:

uv run rs --help

Run tests:

uv run pytest                  # mock tests only (no camera required)
uv run pytest -m hardware      # hardware integration tests (camera required)

Quick Start

rs --help          # top-level help
rs list            # show connected devices
rs stream play     # start all streams with default settings

Use -s / --serial to target a specific device when multiple are connected:

rs -s 801312071342 stream play depth

Commands

rs 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

rs config — sensor controls

List all writable controls for a sensor:

rs config list depth
rs config list color

Read control values:

rs config get depth exposure laser_power
  Name          Value
 ──────────────────────
  exposure      8500.0
  laser_power   150.0

Write control values:

rs config set depth exposure=15000 laser_power=120

Read all controls at once:

rs config get depth --all

rs stream — streaming

List supported profiles for a sensor (or all sensors):

rs stream list
rs stream list depth
                     Streams
  Stream       Resolution   FPS          Format
 ───────────────────────────────────────────────
  Depth        640x480      6/15/30      Z16
  Infrared 1   640x480      6/15/30      Y8
  Infrared 2   640x480      6/15/30      Y8
  Color        640x480      6/15/30      RGB8
  ...

Start streaming — profile syntax: STREAM[-WxH[-FPS[-FORMAT]]]

rs stream play                             # all streams, default settings
rs stream play depth                       # depth only
rs stream play depth color                 # depth + color
rs stream play depth-640x480-30-z16        # fully specified profile
rs stream play depth-640x480-30 color-0x0-15

Live view (Ctrl-C to stop):

  ╭─────── Depth (0) 640x480 15fps z16 ───────╮
  │ Frame #69       FPS: 15.01                │
  ╰───────────────────────────────────────────╯
  ╭───── Infrared 1 (1) 640x480 15fps y8 ─────╮
  │ Frame #66       FPS: 15.01                │
  ╰───────────────────────────────────────────╯
  ╭────── Color (0) 640x480 15fps rgb8 ───────╮
  │ Frame #68       FPS: 15.01                │
  ╰───────────────────────────────────────────╯

Hide metadata with --no-md. Switch to the low-level sensor API with --sensor.


rs bag — ROS bag inspection

rs bag info recording.bag

Displays bag duration and per-topic message counts without requiring a full ROS installation.


rs reset — hardware reset

rs reset

Options

Option Description
-s, --serial Select device by serial number
-v Verbose output (INFO); -vv for DEBUG
-h, --help Show help for any command

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

realsense_cli-0.3.1.tar.gz (13.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

realsense_cli-0.3.1-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

Details for the file realsense_cli-0.3.1.tar.gz.

File metadata

  • Download URL: realsense_cli-0.3.1.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for realsense_cli-0.3.1.tar.gz
Algorithm Hash digest
SHA256 2372e8b4e9de51f105876c892b8a991346a1f1e84d6a6efe15611f99364ae5f3
MD5 aecb6e4794a95943d0bf114d75d49e72
BLAKE2b-256 34188a55cceb69f49d4cac109879eef05910b7a66b2ef3e3413feed357e8a718

See more details on using hashes here.

Provenance

The following attestation bundles were made for realsense_cli-0.3.1.tar.gz:

Publisher: python-publish.yml on yegarti/realsense-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file realsense_cli-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: realsense_cli-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 18.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for realsense_cli-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e4228fc698ec72d0cd7b993f31b576e6528480d2cac04ec8d694bc8e401ee1e4
MD5 5c3845fde6cbd5b4301bae0a9e9e8fe7
BLAKE2b-256 5e86791efafa42394fd6c878b53c1c2d0f7bee1e872dc1a9700a5ad4ef010575

See more details on using hashes here.

Provenance

The following attestation bundles were made for realsense_cli-0.3.1-py3-none-any.whl:

Publisher: python-publish.yml on yegarti/realsense-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page