Yolov5_Deepsort/检测说明.txt

12 lines
562 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

检测说明:
1、检测终端输入
python demo.py
2、deepsort权重路径
./deep_sort/deep_sort/deep/checkpoint/ckpt.t7
YOLOv5权重修改路径
AIDetector_pytorch.py 脚本第18行 self.weights = 'weights/yolov5s_ren.pt'
3、待检测视频或图像路径
demo.py 脚本第13行cap = cv2.VideoCapture('/home/thsw/WJ/nyh/CODE/Yolov5-Deepsort-main/video/smogfire_video14.mp4')
检测完视频保存路径:
demo.py 脚本第33行videoWriter = cv2.VideoWriter('./detect_result/result.mp4', fourcc, fps, (result.shape[1], result.shape[0]))