From ac2f54af5ec74de6dd0027618b0c7bcc26e5b772 Mon Sep 17 00:00:00 2001
From: Alexey <AlexeyAB@users.noreply.github.com>
Date: Tue, 14 Mar 2017 09:38:06 +0000
Subject: [PATCH] Update Readme.md

---
 src/demo.c |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/src/demo.c b/src/demo.c
index 6c653a9..7a90480 100644
--- a/src/demo.c
+++ b/src/demo.c
@@ -7,7 +7,10 @@
 #include "box.h"
 #include "image.h"
 #include "demo.h"
-#include <sys/time.h>
+//#include <sys/time.h>
+#include <time.h>
+#include <winsock.h>
+#include "gettimeofday.h"
 
 #define FRAMES 3
 
@@ -17,7 +20,7 @@
 image get_image_from_stream(CvCapture *cap);
 
 static char **demo_names;
-static image *demo_alphabet;
+static image **demo_alphabet;
 static int demo_classes;
 
 static float **probs;
@@ -63,7 +66,7 @@
     if(l.type == DETECTION){
         get_detection_boxes(l, 1, 1, demo_thresh, probs, boxes, 0);
     } else if (l.type == REGION){
-        get_region_boxes(l, 1, 1, demo_thresh, probs, boxes, 0);
+        get_region_boxes(l, 1, 1, demo_thresh, probs, boxes, 0, 0);
     } else {
         error("Last layer must produce detections\n");
     }
@@ -94,7 +97,7 @@
 void demo(char *cfgfile, char *weightfile, float thresh, int cam_index, const char *filename, char **names, int classes, int frame_skip, char *prefix)
 {
     //skip = frame_skip;
-    image *alphabet = load_alphabet();
+    image **alphabet = load_alphabet();
     int delay = frame_skip;
     demo_names = names;
     demo_alphabet = alphabet;
@@ -110,6 +113,7 @@
     srand(2222222);
 
     if(filename){
+        printf("video file: %s\n", filename);
         cap = cvCaptureFromFile(filename);
     }else{
         cap = cvCaptureFromCAM(cam_index);

--
Gitblit v1.10.0