Spaces:
Runtime error
Runtime error
Zengyf-CVer
commited on
Commit
·
840bf4d
1
Parent(s):
23aa64f
v03 update
Browse files
app.py
CHANGED
@@ -270,7 +270,7 @@ def yolo_det(img, device, model_name, infer_size, conf, iou, max_num, model_cls,
|
|
270 |
area_obj_all.append(area_obj)
|
271 |
|
272 |
# ------------JSON generate------------
|
273 |
-
det_json = export_json(results,
|
274 |
det_json_format = json.dumps(det_json, sort_keys=False, indent=4, separators=(",", ":"), ensure_ascii=False) # JSON formatting
|
275 |
|
276 |
if "json" not in opt:
|
|
|
270 |
area_obj_all.append(area_obj)
|
271 |
|
272 |
# ------------JSON generate------------
|
273 |
+
det_json = export_json(results, img.size)[0] # Detection information
|
274 |
det_json_format = json.dumps(det_json, sort_keys=False, indent=4, separators=(",", ":"), ensure_ascii=False) # JSON formatting
|
275 |
|
276 |
if "json" not in opt:
|