Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Thank you very very much. I was successfully able to solve the problem. As per suggestion given by Vladislav Vinogradov and Moster, i modified my earlier condition to check the ROI. The new condition is as follows -

if(roi.x >= 0 && roi.y >= 0 && roi.width + roi.x < input_frame.cols && roi.height + roi.y < input_frame.rows)
{
    // your code

}
else
    return -1;

The assert problem is successfully solved here. Thanks a lot Moster and Vladislav Vinogradov.