diff --git a/hgdriver/hgdev/image_process.cpp b/hgdriver/hgdev/image_process.cpp index 53381ca..c253840 100644 --- a/hgdriver/hgdev/image_process.cpp +++ b/hgdriver/hgdev/image_process.cpp @@ -786,10 +786,12 @@ namespace hg_imgproc scanner_path = scanner_path.substr(0,scanner_path.size() - libname.size()); scanner_path+="libhwocrdetect.so"; printf("hwlib path:%s\r\n",scanner_path.c_str()); +#ifndef WIN32 if(access(scanner_path.c_str(),F_OK) != 0) { return SCANNER_ERR_OUT_OF_RANGE; } +#endif #if ((!defined x86_64) && (!defined WIN32)) //linux x86_64 暂时没有OCR三方 #ifndef test