Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Check that roi is correct:

if (roi.x >= 0 && row.y >= 0 && roi.width < input_frame.cols && roi.height < input_frame.rows)
{
    // your code
}
else
{
    return -1;
}