First time here? Check out the FAQ!
answered 2016-02-10 08:17:33 -0600
You could create a 0-image where you add the info in the rectangles; something like this :
cv::Mat justInfo = cv::Mat::zeros(frame.size(), frame.type()); for (cv::Rect roi : detections) { justInfo(roi) = frame(roi); }