Skip to content

Commit

Permalink
Fix cocossd bounding boxes
Browse files Browse the repository at this point in the history
  • Loading branch information
tirtawr committed Nov 22, 2019
1 parent 2dc6f5c commit c660e16
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ObjectDetector/CocoSsd/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ class CocoSsdBase {
return {
label: prediction.class,
confidence: prediction.score,
x: prediction.bbox[0],
y: prediction.bbox[1],
w: prediction.bbox[2],
h: prediction.bbox[3],
x: prediction.bbox[0] / imgToPredict.width,
y: prediction.bbox[1] / imgToPredict.height,
w: prediction.bbox[2] / imgToPredict.width,
h: prediction.bbox[3] / imgToPredict.height,
}
})

Expand Down

0 comments on commit c660e16

Please sign in to comment.