Files
yolocam-linux/docs/gui-guide.md
T
2026-02-15 12:50:49 -08:00

168 lines
5.8 KiB
Markdown

# YoloCam GUI User Guide
PySide6 desktop application for controlling the YoloCam S3 camera with live video preview.
## Prerequisites
1. YoloCam S3 connected via USB
2. CDC NCM network interface configured (camera at 192.168.126.10)
3. System packages:
```bash
sudo apt install python3-pyside6.qtcore python3-pyside6.qtgui \
python3-pyside6.qtwidgets python3-opencv
```
4. `yolocam-lib` installed: `cd yolocam-lib && pip install -e .`
**Important**: Use PySide6 from `apt`, not from `pip`. The pip version conflicts
with system Qt6 libraries.
## Launching
```bash
cd yolocam-gui
python run.py
```
The application auto-connects to the camera on startup and displays the UVC video feed.
## Interface Layout
```
┌──────┬─────────────────────┬──────────────────────────────────┐
│ │ │ │
│ Side │ Panel Area │ Video Feed │
│ bar │ (scrollable) │ (live UVC) │
│ │ │ │
│ [1] │ │ │
│ [2] │ │ │
│ [3] │ │ │
│ [4] │ │ │
│ [5] │ │ │
│ │ │ │
├──────┴─────────────────────┴──────────────────────────────────┤
│ Status bar │
└───────────────────────────────────────────────────────────────┘
```
## Panels
### 1. Camera Parameters (Ctrl+1)
Collapsible sections for all camera settings:
**Image Quality** -- Brightness, Sharpness (-10 to 30), Contrast, Saturation, Hue, Gamma
**Exposure** -- Mode (Auto/Manual), EV compensation, ISO, Shutter speed, Aperture,
Exposure Lock, Anti-flicker, Dynamic Range, HDR
**White Balance** -- Mode (Auto/Manual), Color Temperature (2000-10000K), WB Offset,
WB Lock
**Focus** -- Mode (AFS/Manual/AFC/Face), Focus Level (Large/Medium/Small), CAF toggle
**Zoom** -- Digital zoom slider (1.0x to 4.0x)
**Graphics** -- Noise Reduction (Close/Weak/Middle/Strong), Shading Correction
**Audio** -- Volume, Noise Reduction, Auto Gain, Mic Type, Reverb, Delay
### 2. Color Grading (Ctrl+2)
HSV color wheel with two grading modes:
**Fast Mode** -- Two-point color remapping. Click a source color region, drag to
the destination color. The shift propagates across the color space with linear falloff.
Multiple drags can be stacked. Changes are applied as a 3D Color LUT on the camera's ISP.
- Left-click: create a new color shift or drag an existing point
- Right-click: delete a drag point
- Hover over existing points to see which will be selected (enlarges)
- Reset Grid button: clear all adjustments
**Professional Mode** -- Per-point polar grid of draggable control points for
fine-grained HSV adjustments across the color space.
**HSV Sliders** -- Direct numeric control of Hue (0-360), Saturation (0-100),
Brightness (0-100).
**Color LUT** -- Enable/disable CLUT on camera, adjust intensity (0-255), reset grading.
**Tuning** -- Brightness and Color Temperature fine-tuning.
Switching from Fast to Professional mode syncs the grid state so professional mode
shows the result of fast mode edits.
### 3. Console (Ctrl+3)
Protocol console showing raw command/response traffic.
### 4. Stream (Ctrl+4)
Streaming and recording controls.
### 5. Settings (Ctrl+5)
Application configuration.
## Keyboard Shortcuts
| Shortcut | Action |
|----------|--------|
| Ctrl+Q | Quit |
| Ctrl+1 | Camera Parameters panel |
| Ctrl+2 | Color Grading panel |
| Ctrl+3 | Console panel |
| Ctrl+4 | Stream panel |
| Ctrl+5 | Settings panel |
| Ctrl+Shift+C | Toggle camera connection |
| F11 | Toggle fullscreen |
## Menu Bar
**YoloCam**
- Connect to Camera / Disconnect (Ctrl+Shift+C)
- Quit (Ctrl+Q)
**View**
- Panel shortcuts (Ctrl+1 through Ctrl+5)
- Toggle Fullscreen (F11)
## Color Grading Workflow
### Quick Color Correction (Fast Mode)
1. Select "Fast" mode at the top of the Color panel
2. Click on the color you want to change on the wheel
3. Drag to the target color
4. Release to commit. The CLUT is computed and sent to the camera
5. Add more adjustments by clicking and dragging other color regions
6. Use the Reset Grid button to start over
### Precise Color Grading (Professional Mode)
1. Select "Professional" mode
2. Drag individual grid points to shift specific color regions
3. Right-click a point to reset it to its home position
4. Right-click empty space to reset the entire grid
### Using the LUT Controls
1. Enable CLUT in the Color LUT section
2. Adjust Intensity (0-255) to control how strongly the LUT is applied
3. Use "Reset Color Grading" to clear the LUT and start fresh
## Troubleshooting
**Black video feed** -- The UVC device is auto-detected by VID/PID (46f8:0855).
Check `ls /dev/video*` and ensure the camera USB connection is stable.
**"Disconnected" in status bar** -- The camera may have dropped the TCP connection.
Use Ctrl+Shift+C to reconnect, or restart the application.
**Slider changes not applying** -- Ensure the camera is connected (status bar shows
"Connected"). Some parameters require specific modes (e.g., manual exposure mode for
ISO/shutter control).
**Color grading not visible** -- Enable CLUT in the Color LUT section and set
intensity above 0.