std::vector<std::vector<cv::Point> > contours;
std::vector<cv::Vec4i> hierarchy;
cv::findContours(ThreshIm,contours, hierarchy, CV_RETR_TREE, CV_CHAIN_APPROX_NONE);
cv::fillPoly(ThreshIm,contours,Scalar(255));
cv::drawContours(frame,contours,-1,Scalar(0,255,0),3);
// cv::RotatedRect box= cv::minAreaRect(Mat(contours[0]));
从摄像机获取实时输入时,程序会成功运行,直到代码中不包含cv :: RotatatedRect,但是一旦程序运行该程序,程序就会崩溃。可能会发生什么?