|
5 days ago | |
---|---|---|
.idea | 3 weeks ago | |
.vscode | 3 weeks ago | |
Data | 3 weeks ago | |
Output | 3 weeks ago | |
__pycache__ | 3 weeks ago | |
src | 5 days ago | |
tests | 3 weeks ago | |
.gitignore | 3 weeks ago | |
README.md | 2 weeks ago | |
requirements.txt | 3 weeks ago |
基于 ONNX 的无人机检测系统,支持单张图片和批量处理。
pip install -r requirements.txt
# 处理单张图片
python -m src.core.inference --input path/to/image.jpg --output results
# 处理整个目录
python -m src.core.inference --input path/to/images_dir --output results
# 调整检测参数
python -m src.core.inference --input path/to/image.jpg --threshold 0.6 --max-bbox-ratio 0.1
# 保存未检测到目标的图片
python -m src.core.inference --input path/to/images_dir --save-empty
python -m src.core.inference --gui
--input
: 输入图像路径或目录(必需)--output
: 输出目录路径,默认为输入目录名+_results--threshold
: 检测置信度阈值,默认0.5--max-bbox-ratio
: 检测框最大面积比例阈值,默认0.05--save-empty
: 是否保存未检测到目标的图片--gui
: 启用图形界面选择输入目录程序会在输出目录中生成以下内容:
detection_report.csv
: 检测报告,包含以下信息: