cv2.dnn.readNet讀取yolov5s.onnx報錯 YOLOv5 v7.0 onnx報錯 解決方案:將YOLOv5切換為tag v6.2版本 git clone yolov5到本地 git clone https://github.com/ultralytics/yolov5.git 新建一個分支,并切換到tag v6.2 git checkout -b opencv_dnn v6.2 完畢泌辫!