I am currently doing a motion detection project that records video when motion is detected. I am having an error when recording the video.
This is the following error:
error: (-215) img.cols == width && img.rows == height && channels == 3 in function cv::mjpeg::MotionJpegWriter::write
This is my code:
def takevid():