添加管控软件和相机的通讯

This commit is contained in:
lidg
2026-10-27 22:14:53 +08:00
parent c8cd533d9b
commit 069eb902ed
21 changed files with 572 additions and 26 deletions
+4
View File
@@ -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;