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.

25 lines
466 B
C

#ifndef _QALGDETECT_H_
#define _QALGDETECT_H_
#include <QObject>
#include <opencv.hpp>
#include <QImage>
#include <QVariantMap>
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, QVariantMap param, AlgCallBack func);
Mat DetectCircle(Mat img, QPointF center, double radius, bool bEqual);
private:
};
#endif