Video files in opencv

前端 未结 4 680
南方客
南方客 2021-02-04 22:37

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

4条回答
  •  梦如初夏
    2021-02-04 23:14

    The shortest example for reading a frame from a video :

    cap = cv::VideoCapture("foo.avi");
    frame = cv::Mat;
    cap >> frame;
    

提交回复
热议问题