call cv::unload when free image-processing object

This commit is contained in:
gb 2023-08-21 09:47:29 +08:00
parent 8d34638f36
commit 2a9ae299ee
2 changed files with 3 additions and 1 deletions

View File

@ -234,7 +234,8 @@ hg_scanner::hg_scanner(ScannerSerial serial, const char* dev_name, usb_io* io, i
thread_devslock_handle_.reset(new std::thread(&hg_scanner::thread_devslock_handle, this)); thread_devslock_handle_.reset(new std::thread(&hg_scanner::thread_devslock_handle, this));
#endif #endif
ImagePrc_pHandle_ = nullptr; // hg_imgproc::init(pid_, isx86_Advan_);; ImagePrc_pHandle_ = hg_imgproc::init(pid_, isx86_Advan_);;
//ImagePrc_pHandle_ = nullptr;
} }
hg_scanner::~hg_scanner() hg_scanner::~hg_scanner()
{ {

View File

@ -230,6 +230,7 @@ namespace hg_imgproc
~imgproc() ~imgproc()
{ {
free_auto_txt_hanld(); free_auto_txt_hanld();
cv::unload();
} }
// load data // load data