-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVideoFrameGetter.h
More file actions
34 lines (34 loc) · 845 Bytes
/
VideoFrameGetter.h
File metadata and controls
34 lines (34 loc) · 845 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef VIDEOFRAMEGETTER_H
#define VIDEOFRAMEGETTER_H
#include "highgui.h"
#include <opencv/cvaux.h>
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/opencv.hpp"
#include "opencv2/contrib/contrib.hpp"
#include <QString>
#include <QFile>
#include <QFileInfo>
#include <QFileInfoList>
using namespace cv;
class VideoFrameGetter
{
public:
VideoFrameGetter(QString dir_name);
IplImage *getNextFrame();
int getCurrent_frame_count();
QString getCurrent_frame_name();
private:
void captureNextFrame();
void init();
IplImage *_frame;
CvCapture *_capture;
CvCapture *_temp1_capture;
CvCapture *_temp2_capture;
int frame_count;
int count;
QString directory_name;
QFileInfo current_file;
QFileInfoList current_files;
};
#endif // VIDEOFRAMEGETTER_H