1、实现了光谱仪简单的采集功能:曝光、调焦、暗电流、采集影像、保存影像;

2、设置光谱仪帧率、曝光时间、gain;
3、在页面中嵌入了rgb相机图传(通过opencv实现);
4、平台的相机位置模拟、x/y马达的分别控制、x/y马达的量程检测;
5、轨迹规划;
6、加入了张卓的自动调焦模块;
7、加入了自动电源控制;
This commit is contained in:
tangchao0503
2023-03-14 22:52:38 +08:00
commit 0b4ee48355
42 changed files with 7697 additions and 0 deletions

41
HPPA/fileOperation.h Normal file
View File

@ -0,0 +1,41 @@
#ifndef FILE_OPERATIOIN_H
#define FILE_OPERATIOIN_H
#include <iostream>
#include <fstream>
#include<iostream>
#include <QObject>
using namespace std;
class FileOperation :public QObject
{
Q_OBJECT
public:
FileOperation();
~FileOperation();
string getDirectoryOfExe();//getDirectoryOfExe
string getDirectoryFromString(string directory="C:/HPPA_image");
public Q_SLOTS:
bool copyFile(QString source, QString target);
/*bool moveFile(const string& source, const string& target);
bool deleteFile(const string& path);
bool hasFile(const string& path);
bool copyDirectory(const string& source, const string& target);
bool moveDirectory(const string& source, const string& target);
bool deleteDirectory(const string& path);*/
signals:
void CopyFinishedSignal();//<2F><><EFBFBD><EFBFBD>Ӱ<EFBFBD><D3B0><EFBFBD>ź<EFBFBD>
};
#endif