Skip to content

Commit

Permalink
fixed osrf#2
Browse files Browse the repository at this point in the history
  • Loading branch information
vinay0410 committed Oct 17, 2018
1 parent 7f67490 commit 8c9220b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions detector/scripts/detect_ros.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,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

Expand Down

0 comments on commit 8c9220b

Please sign in to comment.