Skip to content

Commit

Permalink
Fixed object positioning
Browse files Browse the repository at this point in the history
  • Loading branch information
Nils Bittmann committed Mar 18, 2022
1 parent 0d4abf0 commit b5042a7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions coral-app.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ def predict():
{
"confidence": float(obj.score),
"label": labels[obj.id],
"y_min": int(obj.bbox[0]),
"x_min": int(obj.bbox[1]),
"y_max": int(obj.bbox[2]),
"x_max": int(obj.bbox[3]),
"y_min": int(obj.bbox[1]),
"x_min": int(obj.bbox[0]),
"y_max": int(obj.bbox[3]),
"x_max": int(obj.bbox[2]),
}
)
data["predictions"] = preds
Expand Down

0 comments on commit b5042a7

Please sign in to comment.