comparison trafficintelligence/storage.py @ 1133:c4d9c270f999

modification for performance computation
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Wed, 26 Feb 2020 22:39:36 -0500
parents 3972d85e3b6c
children 3e0f43edb4d6
comparison
equal deleted inserted replaced
1132:09ef0dc994a0 1133:c4d9c270f999
472 userTypes = loadObjectAttributesFromTable(connection.cursor(), objectNumbers) # string format is same as object 472 userTypes = loadObjectAttributesFromTable(connection.cursor(), objectNumbers) # string format is same as object
473 473
474 for t, b in zip(topCorners, bottomCorners): 474 for t, b in zip(topCorners, bottomCorners):
475 num = t.getNum() 475 num = t.getNum()
476 if t.getNum() == b.getNum(): 476 if t.getNum() == b.getNum():
477 annotation = moving.BBMovingObject(num, t.getTimeInterval(), t, b, userTypes[num]) 477 annotation = moving.BBMovingObject(num, t, b, t.getTimeInterval(), userTypes[num])
478 objects.append(annotation) 478 objects.append(annotation)
479 else: 479 else:
480 print ('Unknown type of bounding box {}'.format(objectType)) 480 print ('Unknown type of bounding box {}'.format(objectType))
481 return objects 481 return objects
482 482