mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
Added param -http_port 8090 to show MJPEG-stream in the WebBrowser (Chrome/Firefox)
This commit is contained in:
@ -367,6 +367,7 @@ void test_coco(char *cfgfile, char *weightfile, char *filename, float thresh)
|
||||
|
||||
void run_coco(int argc, char **argv)
|
||||
{
|
||||
int http_stream_port = find_int_arg(argc, argv, "-http_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);
|
||||
@ -385,5 +386,6 @@ void run_coco(int argc, char **argv)
|
||||
else if(0==strcmp(argv[2], "train")) train_coco(cfg, weights);
|
||||
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, cam_index, filename, coco_classes, 80, frame_skip, prefix, out_filename);
|
||||
else if(0==strcmp(argv[2], "demo")) demo(cfg, weights, thresh, cam_index, filename, coco_classes, 80, frame_skip,
|
||||
prefix, out_filename, http_stream_port);
|
||||
}
|
||||
|
Reference in New Issue
Block a user