From c2d4ed76262aff07c6b9713add645190bd7bac5d Mon Sep 17 00:00:00 2001 From: gb <741021719@qq.com> Date: Sat, 3 Jun 2023 17:48:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=9D=E5=AD=98=E5=9B=BE=E5=83=8F=E5=A4=84?= =?UTF-8?q?=E7=90=86=E5=90=84=E9=98=B6=E6=AE=B5=E7=BB=93=E6=9E=9C=EF=BC=8C?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=90=8D=E4=BB=A5=E5=BA=8F=E5=8F=B7=E5=BC=80?= =?UTF-8?q?=E5=A4=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hgdriver/hgdev/hg_scanner.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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;