Skip to content

Commit acad84c

Browse files
committed
refactor(detect): 保存图像
1 parent 52504ce commit acad84c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

py/detector.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,4 +143,5 @@ def deform_bboxs(pred_bboxs, data_dict):
143143
pred_bboxs = deform_bboxs(pred_cate_bboxs, data_dict)
144144
# 在原图绘制标注边界框和预测边界框
145145
dst = draw.plot_bboxs(data_dict['src'], data_dict['bndboxs'], data_dict['name_list'], pred_bboxs, pred_cates, pred_cate_probs)
146+
cv2.imwrite('./detect.png', dst)
146147
draw.show(dst)

0 commit comments

Comments
 (0)