Skip to content

Commit

Permalink
Fix txt extension
Browse files Browse the repository at this point in the history
  • Loading branch information
fvalle1 authored Dec 17, 2023
1 parent 784d9be commit dcee6db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions edgetpumodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,10 +261,10 @@ def process_predictions(self, det, output_image, pad, output_path="detection.jpg
output[base]['cls_name'] = self.names[c]

if save_txt:
output_txt = base+"txt"
output_txt = base+".txt"
with open(output_txt, 'w') as f:
json.dump(output, f, indent=1)
if save_img:
cv2.imwrite(output_path, output_image)

return det
return det

0 comments on commit dcee6db

Please sign in to comment.