-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPlayer.h
More file actions
39 lines (34 loc) · 775 Bytes
/
Player.h
File metadata and controls
39 lines (34 loc) · 775 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
35
36
37
38
39
#include "Lane_Det_Mng.h"
class Player : public QThread
{ Q_OBJECT
private:
bool stop;
QMutex mutex;
QWaitCondition condition;
Mat frame, canny_frame;
int frameRate;
VideoCapture capture;
Mat RGBframe;
QImage img, canny_img;
signals:
//Signal to output frame to be displayed
void processedImage(const QImage &image,const QImage &canny_image);
protected:
void run ();
void work();
public:
Lane_Det_Mng ld_Mng;
bool isConnected;
//Constructor
Player(QObject *parent = 0);
//Destructor
~Player();
//Load a video from memory
bool loadVideo(std::string filename);
//Play the video
void Play();
//Stop the video
void Stop();
//check if the player has been stopped
bool isStopped() const;
};