Skip to content

qpycam-hello Command

The qpycam-hello command displays the live camera feed. It is useful for testing camera functionality and adjusting display settings.

Usage

To run qpycam-hello with default settings:

qpycam-hello

To see all available options:

qpycam-hello --help

Commonly Used Options

Option Description
-ct, --camera_type Selects the camera type (0: CSI, 1: USB, 2: RTSP).
-id, --device_id Specifies the device ID for USB cameras (default: 2).
-url, --input_rtsp_url RTSP stream URL (only for RTSP cameras).
-t, --timeout Sets the stream duration in ms (0 for infinite).

Note

By default, qpycam-hello will run continuously.
To stop manually, press Ctrl + C.
To run for a limited time, use the -t option (e.g., -t 5000 for 5 seconds).

For a full list of common options, refer to Common Options.

Display Options

Option Description
--display Enable video display (default: True).
--fullscreen Run in fullscreen mode.
-dw, --display_width Set display width (default: 1920 px).
-dh, --display_height Set display height (default: 1080 px).

Example Usage

  1. Display live camera feed (default: CSI camera)

    qpycam-hello
    
  2. Specify 5 seconds to close the window

    qpycam-hello -t 5000
    
  3. Use a USB camera (device ID 2)

    qpycam-hello -ct 1 -id 2
    
  4. Show an RTSP stream

    qpycam-hello -ct 2 -url rtsp://10.1.9.22:8900/live
    
  5. Rotate the video

    qpycam-hello --rotate 1
    
  6. Set custom display resolution

    qpycam-hello --display -dw 1280 -dh 720