call cv::unload when free image-processing object
This commit is contained in:
parent
8d34638f36
commit
2a9ae299ee
|
@ -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));
|
||||
#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()
|
||||
{
|
||||
|
|
|
@ -230,6 +230,7 @@ namespace hg_imgproc
|
|||
~imgproc()
|
||||
{
|
||||
free_auto_txt_hanld();
|
||||
cv::unload();
|
||||
}
|
||||
|
||||
// load data
|
||||
|
|
Loading…
Reference in New Issue