This commit is contained in:
罗颖 2019-12-09 07:54:39 +08:00
parent b93463578e
commit 425ea39346
1 changed files with 6 additions and 4 deletions

View File

@ -5,7 +5,7 @@
#include "opencv2/opencv.hpp"
#include "twain.h"
#include "device_common.h"
#include "GDevice.h";
#include "GDevice.h"
GScan200::GScan200()
{
@ -116,9 +116,11 @@ bool GScan200::Get_IsImageQueueEmpty()
void GScan200::reset()
{
m_dev->stop();
this_thread::sleep_for(chrono::milliseconds(200));
m_pImages.clear();
if (m_dev) {
m_dev->stop();
this_thread::sleep_for(chrono::milliseconds(200));
m_pImages.clear();
}
}
void GScan200::setdecodepixtype(int twpixtype)