opencv - How to detect motion from already store webm video in c++ -
i want detect motion in existing video, video stored in webm format. have seen demo of opencv samples capturing motion of live webcam streaming.
is there library or api capture motion of webm video file in c++?
please me.
if have code run webcam input have change input type accept video file input.
basically, can accomplish using videocapture object.
cv::videocapture cap("path/for/file.fileextension")
and then, putting input mat datatype (separating frame):
mat frame; cap >> frame;
Comments
Post a Comment