加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
VideoController.hxx 1.10 KB
一键复制 编辑 原始数据 按行查看 历史
ctguhzy 提交于 2021-03-23 16:17 . Added YOLO Tracking into the system.
#ifndef VIDEOCONTROLLER_HXX
#define VIDEOCONTROLLER_HXX
#include <QObject>
#include <YOLOTrackingThread.hxx>
#include "VideoThread.hxx"
class VideoView;
class Sequence;
class VideoThread;
class TrackingThread;
class Project;
class VideoController : public QObject
{
Q_OBJECT
public:
explicit VideoController(QObject *parent = nullptr);
~VideoController();
public:
void playVideo();
void pauseVideo();
void resumeVideo();
void startTrack(const char* trackerType);
void stopTrack();
void makeSingleFrameObjects();
void makeNegativeSampleFrame();
void slow();
void fast();
void nextFrame();
void actionGoFrame(int findex);
inline bool isPaused() { return _trackingThread->isPaused() || _videoThread->isPaused(); }
signals:
public slots :
void seekVideoPosition(double pos);
inline void setView(VideoView* view) { _view = view; }
inline void setProject(Project* project) { _project = project; }
private:
VideoView* _view;
Project* _project;
VideoThread* _videoThread;
YOLOTrackingThread* _trackingThread;
};
#endif // VIDEOCONTROLLER_HXX
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化