1 | initial version |
I just found the solution since I found the error is develop at imshow();
. So, to avoid this error I include the code as follow:
if (!frame.empty())
{
cv::imshow("image", frame);
}
I'm not sure why, btw. If someone can explain this.