mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
Experimental. Use -json_port 8070 to allow connection to the port:8070 to get json-stream
This commit is contained in:
@ -222,7 +222,7 @@ void validate_coco(char *cfgfile, char *weightfile)
|
||||
free_image(val_resized[t]);
|
||||
}
|
||||
}
|
||||
fseek(fp, -2, SEEK_CUR);
|
||||
fseek(fp, -2, SEEK_CUR);
|
||||
fprintf(fp, "\n]\n");
|
||||
fclose(fp);
|
||||
|
||||
@ -366,6 +366,7 @@ void run_coco(int argc, char **argv)
|
||||
{
|
||||
int dont_show = find_arg(argc, argv, "-dont_show");
|
||||
int http_stream_port = find_int_arg(argc, argv, "-http_port", -1);
|
||||
int json_port = find_int_arg(argc, argv, "-json_port", -1);
|
||||
char *out_filename = find_char_arg(argc, argv, "-out_filename", 0);
|
||||
char *prefix = find_char_arg(argc, argv, "-prefix", 0);
|
||||
float thresh = find_float_arg(argc, argv, "-thresh", .2);
|
||||
@ -387,5 +388,5 @@ void run_coco(int argc, char **argv)
|
||||
else if(0==strcmp(argv[2], "valid")) validate_coco(cfg, weights);
|
||||
else if(0==strcmp(argv[2], "recall")) validate_coco_recall(cfg, weights);
|
||||
else if(0==strcmp(argv[2], "demo")) demo(cfg, weights, thresh, hier_thresh, cam_index, filename, coco_classes, 80, frame_skip,
|
||||
prefix, out_filename, http_stream_port, dont_show, ext_output);
|
||||
prefix, out_filename, http_stream_port, json_port, dont_show, ext_output);
|
||||
}
|
||||
|
Reference in New Issue
Block a user