UWARG Computer Vision
video_import.h
Go to the documentation of this file.
1 
16 #ifndef VIDEO_IMPORT_H_INCLUDED
17 #define VIDEO_IMPORT_H_INCLUDED
18 
19 #include "imgimport.h"
20 #include "metadata_input.h"
21 #include "frame.h"
22 #include "camera.h"
23 #include <opencv2/highgui/highgui.hpp>
24 
30 class VideoImport : public ImageImport {
31 public:
36  VideoImport(std::string videoFile, MetadataInput * reader, Camera &camera, long frameSkipMs);
37 
38  virtual Frame * next_frame();
39 
43  virtual std::string to_string();
44 private:
45  cv::VideoCapture capture;
46  double totalFrames;
47  std::string fileName;
48  std::time_t videoStartTime;
49  long frameSkipMs;
50 };
51 
52 #endif // VIDEO_IMPORT_H_INCLUDED
Abstract class for importing frames and corresponding metadata.
Definition: imgimport.h:29
virtual Frame * next_frame()
Retrieves the next frame to be analyzed.
Definition: video_import.cpp:78
A class for storing and searching telemetry logs.
Definition: metadata_input.h:32
Container class for storing photos or frames of video to be processed and analyzed.
virtual std::string to_string()
String representation of the Importer.
Definition: video_import.cpp:105
Definition: frame.h:49
VideoImport(std::string videoFile, MetadataInput *reader, Camera &camera, long frameSkipMs)
Definition: video_import.cpp:40
Definition: video_import.h:30
Container class for storing information about the camera used to capture an image *...
Definition: camera.h:28