未验证 提交 24e96056 编写于 作者: F Feng Ni 提交者: GitHub

[MOT] fix plot_tracking_dict (#4694)

上级 cc70a3df
...@@ -205,6 +205,7 @@ def plot_tracking_dict(image, ...@@ -205,6 +205,7 @@ def plot_tracking_dict(image,
line_thickness = max(1, int(image.shape[1] / 500.)) line_thickness = max(1, int(image.shape[1] / 500.))
if num_classes == 1: if num_classes == 1:
if records is not None:
start = records[-1].find('Total') start = records[-1].find('Total')
end = records[-1].find('In') end = records[-1].find('In')
cv2.putText( cv2.putText(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册