diff --git a/scripts/detect_ros.py b/scripts/detect_ros.py index 09dd64d..903b22e 100755 --- a/scripts/detect_ros.py +++ b/scripts/detect_ros.py @@ -142,8 +142,8 @@ def object_predict(self,object_data, header, image_np,image): obj.results.append(obj_hypothesis) obj.bbox.size_y = int((dimensions[2]-dimensions[0])*image_height) obj.bbox.size_x = int((dimensions[3]-dimensions[1] )*image_width) - obj.bbox.center.x = int((dimensions[1] + dimensions [3])*image_height/2) - obj.bbox.center.y = int((dimensions[0] + dimensions[2])*image_width/2) + obj.bbox.center.x = int((dimensions[1] + dimensions [3])*image_width/2) + obj.bbox.center.y = int((dimensions[0] + dimensions[2])*image_height/2) return obj