iceglow / node-red-contrib-deepstack

BSD 3-Clause "New" or "Revised" License
10 stars 11 forks source link

Bug with face coordinates #6

Open timdonovanuk opened 3 years ago

timdonovanuk commented 3 years ago

Somewhere there is an issue with coordinates so that if more than one face is detected, the coordinates come out wrong. This only affects y_max. I think an array is being set incorrectly somewhere.

image

image

timdonovanuk commented 3 years ago

Oh and I should point out this isn't just a dodgy match on one photo, all photos with 2+ people do this :)

image

[{"confidence":0,"userid":"unknown","y_min":195,"x_min":320,"y_max":257,"x_max":372},{"confidence":0,"userid":"unknown","y_min":195,"x_min":169,"y_max":232,"x_max":219},{"confidence":0,"userid":"unknown","y_min":195,"x_min":127,"y_max":212,"x_max":173},{"confidence":0,"userid":"unknown","y_min":195,"x_min":251,"y_max":216,"x_max":299},{"confidence":0,"userid":"unknown","y_min":195,"x_min":313,"y_max":203,"x_max":361},{"confidence":0,"userid":"unknown","y_min":195,"x_min":58,"y_max":182,"x_max":107},{"confidence":0,"userid":"unknown","y_min":195,"x_min":220,"y_max":264,"x_max":275}]

iceglow commented 3 years ago

Thanks for a great bug report. Can replicate the bug. Unfortunately, it looks like a bug in Deepstack itself, calling the Deepstack API directly (latest version on docker hub https://hub.docker.com/layers/deepquestai/deepstack/jetpack/images/sha256-45375412cd073a9146435e1bd281b4f3c18f5da7c17566f2dcc9f11860a50b36?context=explore) produces the same errors in the result). I'll see if I can file a bug directly with the Deepstack team.

iceglow commented 3 years ago

I've brought it to the Deepstack forum: https://forum.deepstack.cc/t/prediction-wrong-y-min-coordinates-when-calling-vision-face-recognize/923