1、结合现场情况,同步更新lpmain和algprithm模块,(针对现场出现的花图崩溃问题)
2、检测图片保存格式由png改为jpg,训练图像修改为支持大于1900大小的图片 3、模型管理页面和标定页面增加保存图片路径记录功能,添加图片时默认会找到data文件夹master
parent
e986a174f6
commit
cbb44ca349
Binary file not shown.
@ -0,0 +1,33 @@
|
||||
#include "lpdesignerConfig.h"
|
||||
#include <QApplication>
|
||||
#include <QFile>
|
||||
#include <QJsonDocument>
|
||||
#include <QJsonObject>
|
||||
lpdesignerConfig::lpdesignerConfig(QObject *parent)
|
||||
: QObject(parent)
|
||||
{
|
||||
}
|
||||
|
||||
lpdesignerConfig::~lpdesignerConfig()
|
||||
{
|
||||
}
|
||||
|
||||
void lpdesignerConfig::readConfig()
|
||||
{
|
||||
QString fileMyself = QApplication::applicationDirPath() + "\\user\\selfdefine.json";
|
||||
QFile file(fileMyself);
|
||||
if (true == file.open(QIODevice::ReadOnly))
|
||||
{
|
||||
QByteArray readData = file.readAll();
|
||||
QJsonObject rootObj = QJsonDocument::fromJson(readData).object();
|
||||
if (!rootObj.isEmpty())
|
||||
{
|
||||
QJsonObject detectImage = rootObj.value("DetectImage").toObject();
|
||||
if (!detectImage.isEmpty())
|
||||
{
|
||||
m_SaveImgDirPath = detectImage.value("SaveImgPath").toString();
|
||||
}
|
||||
}
|
||||
}
|
||||
file.close();
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
#ifndef _LPDESIGNERCONFIG_H_
|
||||
#define _LPDESIGNERCONFIG_H_
|
||||
|
||||
#include <QObject>
|
||||
#include "lp_singleton_base.h"
|
||||
|
||||
class lpdesignerConfig : public QObject,public lp_singleton_base<lpdesignerConfig>
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
lpdesignerConfig(QObject *parent = 0);
|
||||
~lpdesignerConfig();
|
||||
void readConfig();
|
||||
QString m_SaveImgDirPath;
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Reference in New Issue