| | |
| | | #ifndef CV_VERSION_EPOCH |
| | | #include "opencv2/videoio/videoio_c.h" |
| | | #endif |
| | | #include "http_stream.h" |
| | | image get_image_from_stream(CvCapture *cap); |
| | | |
| | | static char **demo_names; |
| | |
| | | int letter = 0; |
| | | int nboxes = 0; |
| | | detection *dets = get_network_boxes(&net, det.w, det.h, demo_thresh, demo_thresh, 0, 1, &nboxes, letter); |
| | | if (nms) do_nms_obj_v3(dets, nboxes, l.classes, nms); |
| | | if (nms) do_nms_obj(dets, nboxes, l.classes, nms); |
| | | |
| | | printf("\033[2J"); |
| | | printf("\033[1;1H"); |
| | |
| | | load_weights(&net, weightfile); |
| | | } |
| | | set_batch_network(&net, 1); |
| | | |
| | | fuse_conv_batchnorm(net); |
| | | srand(2222222); |
| | | |
| | | if(filename){ |