feat.暂时废弃百度 OCR API

This commit is contained in:
MistEO
2021-12-17 21:20:40 +08:00
parent 9e03916e78
commit 079698ba01
10 changed files with 123 additions and 66 deletions

View File

@@ -133,11 +133,11 @@ bool ProcessTask::_run()
m_callback(AsstMsg::StageDrops, json::parse(res).value(), m_callback_arg);
auto& opt = Resrc.cfg().get_options();
if (opt.print_window) {
//static const std::string dirname = utils::get_cur_dir() + "screenshot\\";
//save_image(image, dirname);
}
if (opt.penguin_report) {
//if (opt.print_window) {
// //static const std::string dirname = utils::get_cur_dir() + "screenshot\\";
// //save_image(image, dirname);
//}
if (opt.penguin_report.enable) {
PenguinUploader::upload(res);
}
} break;
@@ -208,4 +208,4 @@ void asst::ProcessTask::exec_swipe_task(ProcessTaskAction action)
default: // 走不到这里TODO 报个错
break;
}
}
}