Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef VIDEOFILTERRUNNABLE_H
- #define VIDEOFILTERRUNNABLE_H
- #include <QObject>
- #include <QVideoSurfaceFormat>
- #include <QVideoFrame>
- #include <QAbstractVideoFilter>
- #include <QVideoFilterRunnable>
- #include "opencv2/videoio.hpp"
- #include "peopleidentificationmainwindow.h"
- class QVideoSurfaceFormat;
- class QVideoFrame;
- class QAbstractVideoFilter;
- class QObject;
- extern PeopleIdentificationMainWindow* peopleIdentificationMainWindow;
- class VideoFilterRunnable : public QVideoFilterRunnable, public QObject {
- Q_OBJECT
- public:
- QVideoFrame run(QVideoFrame *input, const QVideoSurfaceFormat &surfaceFormat, RunFlags flags);
- QImage imageFromVideoFrame(const QVideoFrame& buffer);
- signals:
- void finished(QObject *result);
- private:
- cv::Mat img;
- cv::Mat img_BGR;
- };
- #endif
Add Comment
Please, Sign In to add comment