在deepsort代码中有段话:
detections = [ Detection(bbox, 1.0, feature) for bbox, feature in zip(boxs, features) ]
boxs features 均是列表、
我的测试:
>>> A = [1,3,5]
>>> B = [2,4,6]
>>> def X(a,b):
... c = a+b
... return c
>>> C = [X(a,b) for a,b in zip(A,B)]
>>> print(C)
[3, 7, 11]