添加管控软件和相机的通讯
This commit is contained in:
@@ -21,6 +21,8 @@ public:
|
||||
QRect roiRect() const { return m_roi; }
|
||||
void setROI(const QRect& r);
|
||||
void clearState();
|
||||
bool isBusy() const { return m_busy; }
|
||||
void setResourceBlocked(bool blocked) { m_resourceBlocked=blocked; }
|
||||
// 全流程用的批量接口
|
||||
QRect runYoloAndCrop(const QImage& img, int filterClass,
|
||||
const QRect& hint, const QString& tag);
|
||||
@@ -28,6 +30,7 @@ signals:
|
||||
void logMessage(const QString& msg);
|
||||
void roiChanged(const QRect& roi);
|
||||
void yoloCompleted();
|
||||
void busyChanged(bool busy);
|
||||
|
||||
private slots:
|
||||
void onLoadModel(); void onRunYolo();
|
||||
@@ -54,6 +57,7 @@ private:
|
||||
QVector<YoloResult> m_results;
|
||||
QVector<GrooveDetectionResult> m_grooveResults;
|
||||
bool m_grooveModelValid = false;
|
||||
bool m_busy=false, m_resourceBlocked=false;
|
||||
float m_confThresh = 0.25f;
|
||||
float m_nmsThresh = 0.45f;
|
||||
float m_grooveConfThresh = 0.25f;
|
||||
|
||||
Reference in New Issue
Block a user