pre-recorded video in OpenCV
Is there a way to import a pre-recorded video to use with openCV-python instead of live video feed from camera?
This can be done via VideoCapture: http://docs.opencv.org/modules/highgui/doc/reading_and_writing_images_and_video.html#videocapture-open
Thanks. I noticed there are two versions of the constructors for both images and video.. for video there is cv2.VideoCapture(filename) and cv.CaptureFromFile(filename).. for image there is cv2.imread(filename[, flags]) and cv.LoadImageM(filename, iscolor=CV_LOAD_IMAGE_COLOR). What exactly is the difference?
Asked: 2014-10-21 22:33:44 -0600
Seen: 805 times
Last updated: Oct 22 '14