dceejay / tfjs-coco-ssd

Node-RED node for tensorflowjs coco ssd
Apache License 2.0
14 stars 10 forks source link

payload output #19

Open dahlheim2 opened 2 years ago

dahlheim2 commented 2 years ago

what a great node, thanks!

i notice when more than one object has been detected in an image, the payload contains the information it should as described by the documentation. but if more than one object is detected, for example more than one person, only one bounding box's coordinates are described in the resultant msg.payload object. perhaps i am missing something?

dceejay commented 2 years ago

Errr - no - the output should be like

image

Where you can see the payload is an array of objects - each with its own bounding box.

dahlheim2 commented 2 years ago

well, yes, thank you for the attention and response and for the careful explanation but i'm aware of that and a direct output of msg.payload from the node seems to indicate more than one person detected often in msg.classes but only one bounding box per image is output in msg.payload.

dceejay commented 2 years ago

please can you run the example supplied with the node and show me the debug output expanded as per above.

dahlheim2 commented 2 years ago

thanks once again, for pointing out that example, which i had not yet stumbled across, having installed the node from the node-red palette gui feature. it helped me sort out my own confusion.

dahlheim2 commented 2 years ago

i guess i just wonder if this makes sense? image

dceejay commented 2 years ago

indeed that does not look correct... but maybe the confidence score for one of the persons was below the confidence limit... (If so it should not have been counted in the classes - but may be a reason for why it's not in the payload).