From b5938098d12d5c9fe48e7cc71ae3d75b7306833f Mon Sep 17 00:00:00 2001
From: Alexey <AlexeyAB@users.noreply.github.com>
Date: Mon, 02 Jan 2017 12:33:31 +0000
Subject: [PATCH] Update Readme.md - pragma-libs in How to compile
---
src/yolo.c | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/src/yolo.c b/src/yolo.c
index 82faffd..206e468 100644
--- a/src/yolo.c
+++ b/src/yolo.c
@@ -6,6 +6,13 @@
#include "box.h"
#include "demo.h"
+#pragma comment(lib, "opencv_core249.lib")
+#pragma comment(lib, "opencv_imgproc249.lib")
+#pragma comment(lib, "opencv_highgui249.lib")
+//#pragma comment(lib, "opencv_gpu249.lib")
+//#pragma comment(lib, "opencv_photo249.lib")
+//#pragma comment(lib, "opencv_video249.lib")
+
#ifdef OPENCV
#include "opencv2/highgui/highgui_c.h"
#endif
@@ -284,7 +291,7 @@
void test_yolo(char *cfgfile, char *weightfile, char *filename, float thresh)
{
- image *alphabet = load_alphabet();
+ image **alphabet = load_alphabet();
network net = parse_network_cfg(cfgfile);
if(weightfile){
load_weights(&net, weightfile);
@@ -316,7 +323,7 @@
time=clock();
network_predict(net, X);
printf("%s: Predicted in %f seconds.\n", input, sec(clock()-time));
- get_detection_boxes(l, 1, 1, thresh, probs, boxes, 1);
+ get_detection_boxes(l, 1, 1, thresh, probs, boxes, 0);
if (nms) do_nms_sort(boxes, probs, l.side*l.side*l.n, l.classes, nms);
//draw_detections(im, l.side*l.side*l.n, thresh, boxes, probs, voc_names, alphabet, 20);
draw_detections(im, l.side*l.side*l.n, thresh, boxes, probs, voc_names, alphabet, 20);
--
Gitblit v1.10.0