align with linescan example defaults

This commit is contained in:
yair
2025-11-22 09:55:33 +02:00
parent a81587e8c6
commit 89f904cd71
2 changed files with 127 additions and 19 deletions

View File

@@ -1,18 +1,49 @@
# Pipeline with tee to display and save frames on rollover
# Linescan Pipeline Launcher
# Simple wrapper around launch-ids.py with sensible defaults
# Run from workspace root: c:\dev\gst-plugins-vision
# Or adjust the config-file path below
param(
[Parameter(Position=0)]
[ValidateSet('day', 'night')]
[string]$Mode = 'day',
[switch]$Help
)
if ($Help) {
Write-Host @"
Linescan Pipeline Launcher
Usage: .\launch_linescan.ps1 [day|night] [-Help]
Modes:
day - Day mode: exposure=0.2ms, gain=0, framerate=200fps (default)
night - Night mode: exposure=5.25ms, gain=65, framerate=200fps
All settings are configured in launch-ids.py with these defaults:
- Config: ini/roi-night.ini
- Device ID: 1
- Intervalometer: enabled
- Ramp rate: fast
- Update interval: 500ms
- Brightness deadband: 10.0
- Gain max: 82
- Target brightness: 80
- Log file: timelapse.csv
Examples:
.\launch_linescan.ps1 # Run in day mode (default)
.\launch_linescan.ps1 day # Run in day mode (explicit)
.\launch_linescan.ps1 night # Run in night mode
.\launch_linescan.ps1 -Help # Show this help
"@
exit 0
}
$env:GST_DEBUG="linescan:5"
# Note: Run this from the workspace root (c:\dev\gst-plugins-vision)
# If running from gst/linescan/, use: config-file=../../ini/roi-night.ini
uv run .\scripts\launch-ids.py `
--config .\ini\2456x4pix-500top-cw-extragain.ini `
--device-id 1 `
--framerate 750 `
--gain 0 `
--gain-boost `
--exposure 0.04 `
--host 10.81.2.183 `
--port 5000 `
--control-port 5001
Write-Host "Launching linescan pipeline in $Mode mode..."
Write-Host ""
# All configuration is handled by launch-ids.py defaults
uv run .\scripts\launch-ids.py --mode $Mode