demo.h的声明:
void demo(char *cfgfile, char *weightfile, float thresh, float hier_thresh, int cam_index, const char *filename, char **names, int classes, int frame_skip, char *prefix, char *out_filename, int http_stream_port, int dont_show, int ext_output);
YOLO-V3的demo命令的函数运行路径:detector.c中的 else if(0==strcmp(argv[2], "demo") --> demo.c中的void demo()
detector.c中的demo调用:
demo(cfg, weights, thresh, hier_thresh, cam_index, filename, names, classes, frame_skip, prefix, out_filename,
http_stream_port, dont_show, ext_output);
demo.c中的demos定义:
void demo(char *cfgfile, char *weightfile, float thresh, float hier_thresh, int cam_index, const char *filename, char **names, int classes,
int frame_skip, char *prefix, char *out_filename, int http_stream_port, int dont_show, int ext_output)
对于参数prefix,frame——skip,out_filename需要研究下
20181018工作节点:追溯show_img图片的处理函数。
detector.c中的run_detector函数:
find_arg():从输入的命令(argv[])中遍历,找到*arg的字符串后,return 1,否则return 0;