我想读取视频文件(.avi 或 .mov)并使用 Opencv 检测运动和边缘。你能帮我写代码吗?我想创建一个 GUI,我们可以在其中选择视频文件,然后我们可以携带在opencv中输出图像处理函数?
最佳答案
如何读取视频文件:
- Read video file and display it on a window (C API)
- Read video file and display it on a window (C++ API)
- Read video file, convert it to grayscale then display it on a window (C API)
如何跟踪/检测运动:
- Opencv Motion detection with tracking
- How to do motion tracking of an object using video?
- The OpenCV Video Surveillance / Blob Tracker Facility
如何检测边缘/计数:
有关如何检测形状的更多信息,请查看 this post .
关于c++ - opencv中的视频文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9936058/