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:
To see all available options:
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
-
Display live camera feed (default: CSI camera)
-
Specify 5 seconds to close the window
-
Use a USB camera (device ID 2)
-
Show an RTSP stream
-
Rotate the video
-
Set custom display resolution