Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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);
}