这里使用的是5.0版本
打开detect.py,找到# Write results模块,找到 save_one_box
ctr+鼠标点击,进入general.py,会自动定位到 save_one_box函数,在图片位置加一行print,输出目标边框坐标
print("左上点坐标:("+str(int(xyxy[0,0]))+","+str(int(xyxy[0,1]))+"),右下点坐标:("+str(int(xyxy[0,2]))+","+str(int(xyxy[0,3]))+")")
还需要在配置中打开save