mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
Save jpg-images for detector demo if used flag: -prefix <filename>
This commit is contained in:
@ -243,7 +243,8 @@ void demo(char *cfgfile, char *weightfile, float thresh, float hier_thresh, int
|
|||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
char buff[256];
|
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);
|
//save_image(disp, buff);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user