Save jpg-images for detector demo if used flag: -prefix <filename>

This commit is contained in:
AlexeyAB
2018-05-21 15:04:10 +03:00
parent 4403e71b33
commit b88b7b645b

View File

@ -243,7 +243,8 @@ void demo(char *cfgfile, char *weightfile, float thresh, float hier_thresh, int
}
}else{
char buff[256];
sprintf(buff, "%s_%08d", prefix, count);
sprintf(buff, "%s_%08d.jpg", prefix, count);
cvSaveImage(buff, show_img, 0);
//save_image(disp, buff);
}