diff --git a/hgdriver/hgdev/hg_scanner.cpp b/hgdriver/hgdev/hg_scanner.cpp index ad8859a..a9785d0 100644 --- a/hgdriver/hgdev/hg_scanner.cpp +++ b/hgdriver/hgdev/hg_scanner.cpp @@ -586,8 +586,8 @@ void hg_scanner::dump_image_real(hg_imgproc::HIMGPRC himg, const char* desc) { char sn[40] = { 0 }; - sprintf(sn, "_%03d.jpg", final_img_index_ + 1); - hg_imgproc::dump_2_file(himg, (dump_usb_path_ + PATH_SEPARATOR + desc + sn).c_str()); + sprintf(sn, "%03d_", final_img_index_ + 1); + hg_imgproc::dump_2_file(himg, (dump_usb_path_ + PATH_SEPARATOR + sn + desc + ".jpg").c_str()); } void hg_scanner::init_setting_func_map(void) { @@ -2967,7 +2967,7 @@ int hg_scanner::save_usb_data(std::shared_ptr data) char name[80] = { 0 }; FILE* dst = nullptr; - sprintf(name, "%susb_img_%03u.jpg", PATH_SEPARATOR, usb_img_index_); + sprintf(name, "%s%03u_usb_img.jpg", PATH_SEPARATOR, usb_img_index_); if ((dst = fopen((dump_usb_path_ + name).c_str(), "wb"))) { unsigned int off = 0, len = bytes;