bennetthardwick / darknet.js

A NodeJS wrapper of pjreddie's darknet / yolo.
65 stars 27 forks source link

box is off #31

Closed TadaWasRaped closed 4 years ago

TadaWasRaped commented 4 years ago

The values the wrapper is returning differs from what happens when I run the same weights directly off darknet

bennetthardwick commented 4 years ago

Hey thanks for the issue! Since this wrapper and the darknet CLI set the detections up a bit differently, there's always going to be some differences. How off is it?

TadaWasRaped commented 4 years ago

About 100px on X and Y axis and a little bit on width and height https://imgur.com/a/0t83CT0

nparziale commented 4 years ago

I think the x and y on a detection are the box center, try to rest half the width to x and half the height to y.

TadaWasRaped commented 4 years ago

I think the x and y on a detection are the box center, try to rest half the width to x and half the height to y.

Oh I didn't even notice its centered thanks