You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
411 B
C
24 lines
411 B
C
|
5 years ago
|
#ifndef _QALGDETECT_H_
|
||
|
|
#define _QALGDETECT_H_
|
||
|
|
|
||
|
|
#include <QObject>
|
||
|
|
#include <opencv.hpp>
|
||
|
|
#include <QImage>
|
||
|
|
|
||
|
|
using namespace cv;
|
||
|
|
typedef std::function<void(QImage)> AlgCallBack;
|
||
|
|
class QAlgDetect : public QObject
|
||
|
|
{
|
||
|
|
Q_OBJECT
|
||
|
|
|
||
|
|
public:
|
||
|
|
QAlgDetect(QObject *parent = nullptr);
|
||
|
|
~QAlgDetect();
|
||
|
|
|
||
|
|
void detect(QImage img, AlgCallBack func);
|
||
|
|
Mat DetectCircle(Mat img, QPointF center, double radius);
|
||
|
|
private:
|
||
|
|
|
||
|
|
};
|
||
|
|
#endif
|