How to find object on video using OpenCV

前端 未结 2 1936
孤城傲影
孤城傲影 2021-01-05 01:20

To track object on video frame, first of all I extract image frames from video and save those images to a folder. Then I am supposed to process those images to find an objec

2条回答
  •  一向
    一向 (楼主)
    2021-01-05 01:56

    There is no point in storing frames of a video if you're using OpenCV, as it has really handy methods for capturing frames from a camera/stored video real-time.

    In this post you have an example code for capturing frames from a video.

    Then, if you want to detect objects on those frames, you need to process each frame using a detection algorithm. OpenCV brings some sample code related to the topic. You can try to use SIFT algorithm, to detect a picture, for example.

提交回复
热议问题