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

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -