前言
在行人追踪过程中,需要对追踪结果根据id和位置信息标注追踪颜色框,更好的展示追踪效果。此前在测试开源项目时,写了一个追踪标注代码,以此分享。
准备
ubuntu14.04+python2.7
(其他平台一样能跑,配置相关库即可)
开源代码:https://github.com/abewley/sort
效果展示
代码
#coding=utf-8
import os
import sys
from PIL import Image,ImageDraw
rect_dict = {}
color_list = ['blue', 'red',