Fix math on bounding box drawing logic.

merge-requests/289/head
Mitch Ross 2021-02-08 15:03:25 +00:00
parent fa5245156c
commit 9d7bd31068
1 changed files with 2 additions and 2 deletions

View File

@ -134,8 +134,8 @@ s.detectObject = function (buffer, d, tx, frameLocation, callback) {
mats.push({
x: v.bbox[0],
y: v.bbox[1],
width: v.bbox[2],
height: v.bbox[3],
width: (v.bbox[2]-v.bbox[0]),
height: (v.bbox[3]-v.bbox[1]),
tag: v.class,
confidence: v.score,
})