Install
openclaw skills install @ruiduobao/geoskill-sar-ship-detectionSAR 船舶检测:CA/OS-CFAR 恒虚警检测 + 连通域聚类,从单极化 SAR 强度影像提取船舶目标并输出 GeoJSON 矢量与属性表
openclaw skills install @ruiduobao/geoskill-sar-ship-detectionAutomatically detects ship targets at sea from single-polarization SAR intensity imagery. Core workflow:
pip install 'numpy' 'rasterio' 'geopandas' 'shapely' 'scipy'
python geoskill-sar-ship-detection.py --bbox 121.0 30.0 122.0 31.0 --synthetic --cfar ca --pfa 1e-4 --output-dir ./out
python geoskill-sar-ship-detection.py --bbox 121.0 30.0 122.0 31.0 --synthetic --cfar os --output-dir ./out
python geoskill-sar-ship-detection.py --input sar_scene.tif --cfar ca --pfa 1e-5 --output-dir ./out
python geoskill-sar-ship-detection.py --input sar_scene.tif --guard 3 --background 8 --output-dir ./out
| File | Format | Description |
|---|---|---|
ships.geojson | GeoJSON | Ship point targets (centroids) + attributes |
detection_mask.tif | GeoTIFF | Detection mask (0/1) |
ship_attributes.json | JSON | Target attribute table (area/peak/bounding box) |
detection_count.json | JSON | Detection count and parameters |
output-manifest.json | JSON | Run manifest |
Local single-band SAR intensity GeoTIFF, or a --synthetic simulated sea surface (exponential clutter + bright ship targets).
--synthetic mode is fully network-free.MIT
从单极化 SAR 强度影像中自动检测海上船舶目标。核心流程:
pip install 'numpy' 'rasterio' 'geopandas' 'shapely' 'scipy'
python geoskill-sar-ship-detection.py --bbox 121.0 30.0 122.0 31.0 --synthetic --cfar ca --pfa 1e-4 --output-dir ./out
python geoskill-sar-ship-detection.py --bbox 121.0 30.0 122.0 31.0 --synthetic --cfar os --output-dir ./out
python geoskill-sar-ship-detection.py --input sar_scene.tif --cfar ca --pfa 1e-5 --output-dir ./out
python geoskill-sar-ship-detection.py --input sar_scene.tif --guard 3 --background 8 --output-dir ./out
| 文件 | 格式 | 说明 |
|---|---|---|
ships.geojson | GeoJSON | 船舶点目标(质心)+ 属性 |
detection_mask.tif | GeoTIFF | 检测掩膜(0/1) |
ship_attributes.json | JSON | 目标属性表(面积/峰值/外接框) |
detection_count.json | JSON | 检测计数与参数 |
output-manifest.json | JSON | 运行清单 |
本地单波段 SAR 强度 GeoTIFF,或 --synthetic 模拟海面(指数杂波 + 高亮船舶)。
--synthetic 模式完全无网络。MIT