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.

41 lines
850 B
C

#ifndef _MODELTEST_H_
#define _MODELTEST_H_
#include <QtWidgets/QMainWindow>
#include "ui_ModelTest.h"
#include "ModelManager.h"
#include "QModelMgrDlg.h"
#include "lpImgViewer.h"
#include "QAlgDetect.h"
class ModelTest : public QMainWindow
{
Q_OBJECT
public:
ModelTest(QWidget *parent = Q_NULLPTR);
~ModelTest();
Q_SLOT void onButtonClicked();
void loadImage(QString strPath);
void AlgResultCallFunc(QVariantMap map);
void saveImage(const QPixmap& m_pixmap, QString m_path, QString filename);
void saveResult(QString strName, QImage img);
private:
Ui::ModelTestClass ui;
ModelManager* m_pModelMgr{ nullptr };
QModelMgrDlg* m_pModelMgrUI{ nullptr };
QStringList m_filelst;
int m_gIndex{ 0 };
lpImgViewer* m_srcView{ nullptr };
lpImgViewer* m_rltView{ nullptr };
QAlgDetect *m_pAlg{ nullptr };
QString strRootPath;
};
#endif