开发者

How avi video file can be transformed into series of matrices?

i want to analyse videos given in avi format. For that I need to represent video as serie开发者_开发知识库s of matrices. Every matrix represents one frame from the video. How can I do it? I prefer to use Python and Java but other options are also welcomed.


You can try OpenCV. It has C, C++ and Python API. It treats images as matrices, so reading the video will result in matrices.

Talking about the C++-Interface (Python is similar), there is cv::VideoCapture class. You can initialize such an object with your video file name. Then you can grab each frame separately and retrieve it into a matrix (cv::Mat).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜