场景适配方案
针对零件表面划痕、焊接缺陷等典型问题:
Schritte zur Umsetzung:
- 数据准备阶段:
- 采集200+缺陷样本(需包含多种光照条件)
- ausnutzen
labelme
标注缺陷区域(导出JSON格式)
- Modellauswahl:
- 高精度场景:选用
yoloe-v8l-seg.pt
Pre-Training Modell - 实时产线:改用
yoloe-s-det.pt
纯检测模型
- 高精度场景:选用
- 部署优化:
- passieren (eine Rechnung oder Inspektion etc.)
export.py
输出ONNX/TensorRT格式 - aufstellen
--conf 0.7
避免误检(质检需严格)
- passieren (eine Rechnung oder Inspektion etc.)
Typischer Arbeitsablauf:
# 视觉提示模式(适合外观变异大的缺陷) python predict_visual_prompt.py --source conveyor.jpg --ref defect_sample1.jpg --checkpoint yoloe-l.pt
Vorbehalte:对反光金属件,需先进行cv2.GaussianBlur
Vorverarbeitung
Diese Antwort stammt aus dem ArtikelYOLOE: ein Open-Source-Tool für Videoerkennung und Objektsegmentierung in EchtzeitDie