代码拉取完成,页面将自动刷新
同步操作将从 zhouxiang/ccface 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#ifndef OPENCVSHOWFRAME_H
#define OPENCVSHOWFRAME_H
#include <QQuickItem>
#include <QTimer>
#include <list>
#include <QImage>
#include <opencv/cv.h>
#include <opencv/highgui.h>
class OpenCVcapture;
class OpencvFaceRecognizer;
class OpenCVfaceDetectAction;
class OpenCVshowFrame : public QQuickItem
{
Q_OBJECT
Q_PROPERTY(int m_frameRate READ frameRate WRITE setFrameRate NOTIFY frameRateChanged)
Q_PROPERTY(bool m_run READ run WRITE setRun NOTIFY runChanged)
Q_PROPERTY(QObject* m_capture READ capture WRITE setCapture NOTIFY captureChanged)
public:
explicit OpenCVshowFrame(QQuickItem *parent = 0);
~OpenCVshowFrame();
int frameRate() const;
void setFrameRate(int rate);
bool run() const;
void setRun(bool r);
QObject* capture() const;
void setCapture(QObject *c);
Q_INVOKABLE void addAction(QObject *act);
Q_INVOKABLE void startPredict();
Q_INVOKABLE void setLabel(int i);
Q_INVOKABLE void startTrain();
signals:
void frameRateChanged();
void runChanged();
void captureChanged();
void who(int i);
public slots:
void fun();
protected slots:
void updateFrame();
void a() {
}
protected:
QSGNode* updatePaintNode(QSGNode * old, UpdatePaintNodeData *);
private:
int m_frameRate;
bool m_run;
QObject *m_capture;
QTimer m_timer;
std::list<QObject*> m_actions;
IplImage* doActions(IplImage *img);
OpencvFaceRecognizer *fr;
OpenCVfaceDetectAction *f;
QImage::Format format(int depth, int nChannels);
};
#endif // OPENCVSHOWFRAME_H
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。