Fix typo: dectection -> detection

This commit is contained in:
niten 2023-01-11 16:50:17 -08:00
parent 686cfefc06
commit a0af563334
1 changed files with 2 additions and 2 deletions

View File

@ -89,8 +89,8 @@ def detection_to_dict(d):
def result_to_dict(res, base_url): def result_to_dict(res, base_url):
return { return {
"labels": [detection.label for detection in res.dectections], "labels": [detection.label for detection in res.detections],
"detections": [detection_to_dict(dectection) for detection in res.detections], "detections": [detection_to_dict(detection) for detection in res.detections],
"output": base_url + basename(res.outfile), "output": base_url + basename(res.outfile),
} }