Joseph Redmon
2016-03-14 02bb33c64514ef36d48388e2265b034c49bb31c4
src/coco_demo.c
@@ -71,7 +71,7 @@
void demo_coco(char *cfgfile, char *weightfile, float thresh, int cam_index, const char *filename)
{
    demo_thresh = thresh;
    printf("YOLO demo\n");
    printf("COCO demo\n");
    net = parse_network_cfg(cfgfile);
    if(weightfile){
        load_weights(&net, weightfile);
@@ -87,8 +87,8 @@
    }
    if(!cap) error("Couldn't connect to webcam.\n");
    cvNamedWindow("YOLO", CV_WINDOW_NORMAL);
    cvResizeWindow("YOLO", 512, 512);
    cvNamedWindow("COCO", CV_WINDOW_NORMAL);
    cvResizeWindow("COCO", 512, 512);
    detection_layer l = net.layers[net.n-1];
    int j;
@@ -127,8 +127,8 @@
        gettimeofday(&tval_before, NULL);
        if(pthread_create(&fetch_thread, 0, fetch_in_thread_coco, 0)) error("Thread creation failed");
        if(pthread_create(&detect_thread, 0, detect_in_thread_coco, 0)) error("Thread creation failed");
        show_image(disp, "YOLO");
        save_image(disp, "YOLO");
        show_image(disp, "COCO");
        //save_image(disp, "COCO");
        free_image(disp);
        cvWaitKey(10);
        pthread_join(fetch_thread, 0);