C++ OpenCV get Bounding Box From Vector Of Points -



C++ OpenCV get Bounding Box From Vector Of Points -

i have vector of points drawed self :

std::vector<cvpoint> shape1 = paintshape(0);

now need bounding box object (points) around shape ,

i have searched web answeres every topic talking recognizing border of object within whol image file , making bounding box.

in case different ,

thanks !

get boundingrect points:

#include "opencv2/imgproc/imgproc.hpp" // please utilize stuff cv:: namespace, not outdated cv* std::vector<cv::point> shape1 = paintshape(0); cv::rect r = cv::boundingrect(shape1);

c++ opencv

Comments

Popular posts from this blog

maven fortify plugin : Unable to load build session with ID XXXXX .. See log file for more details -

c# - Primavera WebServices does not return any data -

android - Display emoji panel with genymotion - keyboard/touch input? -