Compare commits

...

3 Commits

Author SHA1 Message Date
13038267101 900cffc549 调整uos命名 2023-03-17 18:02:44 +08:00
13038267101 7b139ecaa0 scanner_path 多余字符 2023-03-17 17:30:36 +08:00
13038267101 58a564d5b0 调整分支强度,背景抗噪,待纸扫描 2023-03-17 17:09:50 +08:00
4 changed files with 67 additions and 54 deletions

View File

@ -2250,7 +2250,23 @@ int hg_scanner::setting_color_correction(void* data)
} }
int hg_scanner::setting_auto_paper_scan_exit_time(void* data) int hg_scanner::setting_auto_paper_scan_exit_time(void* data)
{ {
is_auto_paper_scan_exit_time = *((int*)data); string str((char*)data);
if (str.compare("15s") == 0)
is_auto_paper_scan_exit_time = 15;
else if (str.compare("30s") == 0)
is_auto_paper_scan_exit_time = 30;
else if (str.compare("60s") == 0)
is_auto_paper_scan_exit_time = 60;
else if (str.compare("2min") == 0)
is_auto_paper_scan_exit_time = 120;
else if (str.compare("4min") == 0)
is_auto_paper_scan_exit_time = 240;
else if (str.compare("8min") == 0)
is_auto_paper_scan_exit_time = 480;
else
is_auto_paper_scan_exit_time = 60;
//is_auto_paper_scan_exit_time = *((int*)data);
//VLOG_MINI_2(LOG_LEVEL_DEBUG_INFO, "set paper_scan_exit_time from (%d)min to (%s)min = %d\n", is_auto_paper_scan_exit_time, (char*)data);
return 0; return 0;
} }
int hg_scanner::on_color_mode_changed(int& color_mode) int hg_scanner::on_color_mode_changed(int& color_mode)

View File

@ -540,7 +540,7 @@ public:
#elif defined(OEM_ZHONGJING) #elif defined(OEM_ZHONGJING)
static const std::string helpfile_ = "/opt/apps/com.microtekchina.microtekscan-ex/entries/help/MicrotekScan_scanSettings_Help_manual.pdf";//帮助文档路径 static const std::string helpfile_ = "/opt/apps/com.microtekchina.microtekscan-ex/entries/help/MicrotekScan_scanSettings_Help_manual.pdf";//帮助文档路径
#elif defined(OEM_ZIGUANG) #elif defined(OEM_ZIGUANG)
static const std::string helpfile_ = "/opt/apps/com.unisgroup.uniscan/entries/help/UniScan_scanSettings_Help_manual.pdf";//帮助文档路径 static const std::string helpfile_ = "/opt/apps/com.unischina.uniscan/entries/help/UniScan_scanSettings_Help_manual.pdf";//帮助文档路径
#else #else
static const std::string helpfile_ ="/opt/apps/com.huagaochina.huagoscan/entries/help/HuaGoScan_scanSettings_Help_manual.pdf";//帮助文档路径 static const std::string helpfile_ ="/opt/apps/com.huagaochina.huagoscan/entries/help/HuaGoScan_scanSettings_Help_manual.pdf";//帮助文档路径
#endif #endif

File diff suppressed because one or more lines are too long

View File

@ -379,7 +379,7 @@ namespace hg_imgproc
#elif defined(OEM_CANGTIAN) #elif defined(OEM_CANGTIAN)
string libname = "libctsdriver.so"; string libname = "libctsdriver.so";
#elif defined(OEM_ZHONGJING) #elif defined(OEM_ZHONGJING)
string libname = "libzjdriver.so";. string libname = "libzjdriver.so";
#elif defined(OEM_ZIGUANG) #elif defined(OEM_ZIGUANG)
string libname = "libzgdriver.so"; string libname = "libzgdriver.so";
#else #else