converted cli to pwsh
This commit is contained in:
parent
44083222ee
commit
d0467aaf65
14
README.md
14
README.md
@ -19,13 +19,13 @@ GStreamer plugins for IDS uEye cameras with frame analysis capabilities.
|
|||||||
## Usage Examples
|
## Usage Examples
|
||||||
|
|
||||||
### Basic capture from IDS uEye camera
|
### Basic capture from IDS uEye camera
|
||||||
```bash
|
```powershell
|
||||||
gst-launch-1.0 idsueyesrc config-file=ini/whole-presacler64_autoexp-binningx2.ini exposure=0.5 ! queue ! autovideosink
|
gst-launch-1.0 idsueyesrc config-file=ini/whole-presacler64_autoexp-binningx2.ini exposure=0.5 ! queue ! autovideosink
|
||||||
```
|
```
|
||||||
|
|
||||||
### Frame filtering based on column analysis
|
### Frame filtering based on column analysis
|
||||||
Drop frames when column mean deviates from rolling baseline by more than 0.5:
|
Drop frames when column mean deviates from rolling baseline by more than 0.5:
|
||||||
```bash
|
```powershell
|
||||||
gst-launch-1.0 idsueyesrc config-file=ini/whole-presacler64_autoexp-binningx2.ini exposure=0.5 ! videoconvert ! video/x-raw,format=GRAY8 ! rollingsum window-size=1000 column-index=1 threshold=0.5 ! queue ! autovideosink
|
gst-launch-1.0 idsueyesrc config-file=ini/whole-presacler64_autoexp-binningx2.ini exposure=0.5 ! videoconvert ! video/x-raw,format=GRAY8 ! rollingsum window-size=1000 column-index=1 threshold=0.5 ! queue ! autovideosink
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -34,17 +34,17 @@ gst-launch-1.0 idsueyesrc config-file=ini/whole-presacler64_autoexp-binningx2.in
|
|||||||
### Additional rollingsum examples
|
### Additional rollingsum examples
|
||||||
|
|
||||||
Analyze column 320 with larger window:
|
Analyze column 320 with larger window:
|
||||||
```bash
|
```powershell
|
||||||
gst-launch-1.0 idsueyesrc config-file=ini/whole-presacler64_autoexp-binningx2.ini exposure=0.5 ! videoconvert ! video/x-raw,format=GRAY8 ! rollingsum window-size=5000 column-index=320 threshold=0.3 ! queue ! autovideosink
|
gst-launch-1.0 idsueyesrc config-file=ini/whole-presacler64_autoexp-binningx2.ini exposure=0.5 ! videoconvert ! video/x-raw,format=GRAY8 ! rollingsum window-size=5000 column-index=320 threshold=0.3 ! queue ! autovideosink
|
||||||
```
|
```
|
||||||
|
|
||||||
Use stride for faster processing (sample every 2 rows):
|
Use stride for faster processing (sample every 2 rows):
|
||||||
```bash
|
```powershell
|
||||||
gst-launch-1.0 idsueyesrc config-file=ini/whole-presacler64_autoexp-binningx2.ini exposure=0.5 ! videoconvert ! video/x-raw,format=GRAY8 ! rollingsum window-size=1000 column-index=1 stride=2 threshold=0.5 ! queue ! autovideosink
|
gst-launch-1.0 idsueyesrc config-file=ini/whole-presacler64_autoexp-binningx2.ini exposure=0.5 ! videoconvert ! video/x-raw,format=GRAY8 ! rollingsum window-size=1000 column-index=1 stride=2 threshold=0.5 ! queue ! autovideosink
|
||||||
```
|
```
|
||||||
|
|
||||||
Lower threshold for more sensitive detection:
|
Lower threshold for more sensitive detection:
|
||||||
```bash
|
```powershell
|
||||||
gst-launch-1.0 idsueyesrc config-file=ini/whole-presacler64_autoexp-binningx2.ini exposure=0.5 ! videoconvert ! video/x-raw,format=GRAY8 ! rollingsum threshold=0.2 ! queue ! autovideosink
|
gst-launch-1.0 idsueyesrc config-file=ini/whole-presacler64_autoexp-binningx2.ini exposure=0.5 ! videoconvert ! video/x-raw,format=GRAY8 ! rollingsum threshold=0.2 ! queue ! autovideosink
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -81,7 +81,7 @@ If you prefer to build manually:
|
|||||||
3. Install [IDS uEye SDK](https://www.ids-imaging.com) (default path: `C:\Program Files\IDS\uEye\Develop`)
|
3. Install [IDS uEye SDK](https://www.ids-imaging.com) (default path: `C:\Program Files\IDS\uEye\Develop`)
|
||||||
4. Run:
|
4. Run:
|
||||||
|
|
||||||
```bash
|
```powershell
|
||||||
git clone https://github.com/joshdoe/gst-plugins-vision.git
|
git clone https://github.com/joshdoe/gst-plugins-vision.git
|
||||||
cd gst-plugins-vision
|
cd gst-plugins-vision
|
||||||
mkdir build
|
mkdir build
|
||||||
@ -101,7 +101,7 @@ The `build.ps1` script automatically copies plugins to `$env:GST_PLUGIN_PATH` if
|
|||||||
|
|
||||||
### Verify Installation
|
### Verify Installation
|
||||||
|
|
||||||
```bash
|
```powershell
|
||||||
gst-inspect-1.0 idsueyesrc
|
gst-inspect-1.0 idsueyesrc
|
||||||
gst-inspect-1.0 rollingsum
|
gst-inspect-1.0 rollingsum
|
||||||
```
|
```
|
||||||
|
|||||||
@ -35,21 +35,21 @@ The `rollingsum` plugin analyzes video frames in real-time by tracking the mean
|
|||||||
|
|
||||||
### Simple Pipeline
|
### Simple Pipeline
|
||||||
|
|
||||||
```bash
|
```powershell
|
||||||
gst-launch-1.0 idsueyesrc config-file=config.ini ! \
|
gst-launch-1.0 idsueyesrc config-file=config.ini ! `
|
||||||
videoconvert ! \
|
videoconvert ! `
|
||||||
video/x-raw,format=GRAY8 ! \
|
video/x-raw,format=GRAY8 ! `
|
||||||
rollingsum window-size=1000 column-index=1 threshold=0.0002 ! \
|
rollingsum window-size=1000 column-index=1 threshold=0.0002 ! `
|
||||||
autovideosink
|
autovideosink
|
||||||
```
|
```
|
||||||
|
|
||||||
### With CSV Logging
|
### With CSV Logging
|
||||||
|
|
||||||
```bash
|
```powershell
|
||||||
gst-launch-1.0 idsueyesrc config-file=config.ini exposure=0.5 ! \
|
gst-launch-1.0 idsueyesrc config-file=config.ini exposure=0.5 ! `
|
||||||
videoconvert ! \
|
videoconvert ! `
|
||||||
video/x-raw,format=GRAY8 ! \
|
video/x-raw,format=GRAY8 ! `
|
||||||
rollingsum window-size=1000 column-index=1 threshold=0.0002 csv-file=output.csv ! \
|
rollingsum window-size=1000 column-index=1 threshold=0.0002 csv-file=output.csv ! `
|
||||||
fakesink
|
fakesink
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -77,6 +77,11 @@ set GST_DEBUG=rollingsum:5 && gst-launch-1.0 [pipeline...]
|
|||||||
GST_DEBUG=rollingsum:5 gst-launch-1.0 [pipeline...]
|
GST_DEBUG=rollingsum:5 gst-launch-1.0 [pipeline...]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
**PowerShell equivalent:**
|
||||||
|
```powershell
|
||||||
|
$env:GST_DEBUG="rollingsum:5"; gst-launch-1.0 [pipeline...]
|
||||||
|
```
|
||||||
|
|
||||||
### Debug Levels
|
### Debug Levels
|
||||||
|
|
||||||
| Level | Output |
|
| Level | Output |
|
||||||
@ -105,7 +110,7 @@ GST_DEBUG=rollingsum:5 gst-launch-1.0 [pipeline...]
|
|||||||
|
|
||||||
#### 1. Verify Plugin Loaded
|
#### 1. Verify Plugin Loaded
|
||||||
|
|
||||||
```bash
|
```powershell
|
||||||
gst-inspect-1.0 rollingsum
|
gst-inspect-1.0 rollingsum
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -149,7 +154,7 @@ frame,column_mean,rolling_mean,deviation,normalized_deviation,dropped
|
|||||||
|
|
||||||
Use the included analysis script:
|
Use the included analysis script:
|
||||||
|
|
||||||
```bash
|
```powershell
|
||||||
uv run analyze_sma.py output.csv
|
uv run analyze_sma.py output.csv
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -183,7 +188,7 @@ Based on analysis of stable camera footage:
|
|||||||
|
|
||||||
### For General Use
|
### For General Use
|
||||||
|
|
||||||
```bash
|
```powershell
|
||||||
# Conservative (1-2% frame drop)
|
# Conservative (1-2% frame drop)
|
||||||
threshold=0.0003
|
threshold=0.0003
|
||||||
|
|
||||||
@ -197,17 +202,17 @@ threshold=0.0001
|
|||||||
### For Specific Scenarios
|
### For Specific Scenarios
|
||||||
|
|
||||||
**High-speed acquisition** (minimal processing):
|
**High-speed acquisition** (minimal processing):
|
||||||
```bash
|
```powershell
|
||||||
window-size=100 threshold=0.0005
|
window-size=100 threshold=0.0005
|
||||||
```
|
```
|
||||||
|
|
||||||
**Quality-focused** (stable scenes):
|
**Quality-focused** (stable scenes):
|
||||||
```bash
|
```powershell
|
||||||
window-size=1000 threshold=0.0001
|
window-size=1000 threshold=0.0001
|
||||||
```
|
```
|
||||||
|
|
||||||
**Real-time monitoring** (fast response):
|
**Real-time monitoring** (fast response):
|
||||||
```bash
|
```powershell
|
||||||
window-size=50 threshold=0.0002
|
window-size=50 threshold=0.0002
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -316,14 +321,17 @@ Key files:
|
|||||||
|
|
||||||
### Rebuild After Changes
|
### Rebuild After Changes
|
||||||
|
|
||||||
```bash
|
```powershell
|
||||||
.\build.ps1 # Windows
|
.\build.ps1 # Windows
|
||||||
|
```
|
||||||
|
|
||||||
|
```bash
|
||||||
./build.sh # Linux
|
./build.sh # Linux
|
||||||
```
|
```
|
||||||
|
|
||||||
### Testing
|
### Testing
|
||||||
|
|
||||||
```bash
|
```powershell
|
||||||
# Quick test
|
# Quick test
|
||||||
gst-inspect-1.0 rollingsum
|
gst-inspect-1.0 rollingsum
|
||||||
|
|
||||||
@ -341,7 +349,7 @@ gst-launch-1.0 videotestsrc ! rollingsum ! fakesink
|
|||||||
## Support
|
## Support
|
||||||
|
|
||||||
For issues or questions:
|
For issues or questions:
|
||||||
1. Enable debug output (`GST_DEBUG=rollingsum:5`)
|
1. Enable debug output (`$env:GST_DEBUG="rollingsum:5"` in PowerShell)
|
||||||
2. Generate CSV log and analyze
|
2. Generate CSV log and analyze
|
||||||
3. Check this guide's troubleshooting section
|
3. Check this guide's troubleshooting section
|
||||||
4. Review debug output for errors/warnings
|
4. Review debug output for errors/warnings
|
||||||
Loading…
x
Reference in New Issue
Block a user