-
Notifications
You must be signed in to change notification settings - Fork 67
Open
Description
Hello, thanks for publishing this node.
I noticed that the centroid of the detections are not correctly calculated. From the detect_ros.py#L143 it details
obj.bbox.center.x = int((dimensions[1] + dimensions [3])*image_height/2)
obj.bbox.center.y = int((dimensions[0] + dimensions[2])*image_width/2)
To "debug" it I manually added the following at the end of the "object_predict" method
cv2.circle (image_np,(obj.bbox.center.x,obj.bbox.center.y),5,(0,0,255), 5)
image_width and image_height are not correctly used, they should be switched. I mean
obj.bbox.center.x = int((dimensions[1] + dimensions[3])*image_width/2)
obj.bbox.center.y = int((dimensions[0] + dimensions[2])*image_height/2)
regards,
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels