mirror of
https://github.com/caperren/school_archives.git
synced 2025-11-09 21:51:15 +00:00
These are all design documents that I thought I had lost. It's may make me cringe, but it's still cool to use it to see how far I've come.
40 lines
696 B
C++
40 lines
696 B
C++
#ifndef THREADEDOPENCVPROCANDDISPLAY_H
|
|
#define THREADEDOPENCVPROCANDDISPLAY_H
|
|
|
|
#include <QObject>
|
|
#include <QImage>
|
|
|
|
|
|
#include <opencv2/core/core.hpp>
|
|
#include <opencv2/highgui/highgui.hpp>
|
|
#include <opencv2/imgproc/imgproc.hpp>
|
|
#include "opencv2/objdetect/objdetect.hpp"
|
|
#include "opencv2/features2d/features2d.hpp"
|
|
#include <vector>
|
|
|
|
using namespace cv;
|
|
|
|
class ThreadedOpenCVProcAndDisplay : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit ThreadedOpenCVProcAndDisplay(QObject *parent = 0);
|
|
|
|
signals:
|
|
|
|
public slots:
|
|
|
|
private:
|
|
VideoCapture Webcam;
|
|
|
|
Mat matOriginal;
|
|
Mat matProcessed;
|
|
|
|
QImage qimgProcessed;
|
|
QImage qimgFinal;
|
|
|
|
|
|
};
|
|
|
|
#endif // THREADEDOPENCVPROCANDDISPLAY_H
|