Skip to content

Commit

Permalink
Merge pull request jveitchmichaelis#14 from fvalle1/main
Browse files Browse the repository at this point in the history
Fix txt extension
  • Loading branch information
jveitchmichaelis authored Dec 17, 2023
2 parents 784d9be + dcee6db commit 422d209
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 422d209

Please sign in to comment.