From b7d08813febe2f796decf4cb92689dfa335b4b6c Mon Sep 17 00:00:00 2001 From: Audais Date: Sun, 6 May 2018 10:40:54 +0300 Subject: [PATCH] attributes bug fix --- cli.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cli.py b/cli.py index 016f294..5dcba2a 100644 --- a/cli.py +++ b/cli.py @@ -680,7 +680,9 @@ def dumpjson(self, file, data): boxdata['ybr'] = box.ybr boxdata['outside'] = box.lost boxdata['occluded'] = box.occluded - boxdata['attributes'] = box.attributes + boxdata['attributes'] = [] + for attr in box.attributes: + boxdata['attributes'].append(attr.text) boxes[int(box.frame)] = boxdata result['boxes'] = boxes annotations[int(id)] = result