I want to read video file(.avi or .mov) and detect motion and edges using Opencv.Can u help me with code?I want to create a GUI in which we can select the video file,then we can
The shortest example for reading a frame from a video :
cap = cv::VideoCapture("foo.avi"); frame = cv::Mat; cap >> frame;