保存图像处理各阶段结果,文件名以序号开头
This commit is contained in:
parent
7d5068ecf8
commit
c2d4ed7626
|
@ -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<tiny_buffer> 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;
|
||||
|
|
Loading…
Reference in New Issue