更改配置文件读写文件路径到:/media/nvme/300TC/config/ximea.cfg;

This commit is contained in:
tangchao0503
2022-12-06 14:50:18 +08:00
parent 627f666d30
commit cbff36447b
2 changed files with 4 additions and 2 deletions

View File

@ -264,7 +264,7 @@ bool Configfile::createConfigFile()
// Write out the new configuration. // Write out the new configuration.
QString output_file = QDir::cleanPath(QCoreApplication::applicationDirPath() + QDir::separator() + "ximea.cfg"); QString output_file = "/media/nvme/300TC/config/ximea.cfg";
try try
{ {
cfg.writeFile(output_file.toStdString().c_str()); cfg.writeFile(output_file.toStdString().c_str());

View File

@ -9,7 +9,7 @@ XimeaImager::XimeaImager()
//connect(this, SIGNAL(recordFinished()),this, SLOT()); //connect(this, SIGNAL(recordFinished()),this, SLOT());
QString ximeaCfgFile = QDir::cleanPath(QCoreApplication::applicationDirPath() + QDir::separator() + "ximea.cfg"); QString ximeaCfgFile = "/media/nvme/300TC/config/ximea.cfg";
m_configfile.setConfigfilePath(ximeaCfgFile.toStdString()); m_configfile.setConfigfilePath(ximeaCfgFile.toStdString());
if(!m_configfile.isConfigfileExist()) if(!m_configfile.isConfigfileExist())
m_configfile.createConfigFile(); m_configfile.createConfigFile();
@ -212,6 +212,8 @@ double XimeaImager::autoExposure()
bool bIsAutoExposureOk=false; bool bIsAutoExposureOk=false;
while(!bIsAutoExposureOk) while(!bIsAutoExposureOk)
{ {
std::cout<<"自动曝光本次时间为:"<< exposureTime <<std::endl;
m_imager.start(); m_imager.start();
m_imager.get_frame(m_buffer); m_imager.get_frame(m_buffer);
m_imager.stop(); m_imager.stop();