ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

This question is probably more appropriate for http://answers.opencv.org/questions/, but as I recently needed this too, here's a quick hint: minAreaRect should fit very well for your use case. Just feed it a few points from the detected contours and you should get the rotated rectangle you seek.