From d50ebc7fdf6543faab8c8b02d30730a9991f02b6 Mon Sep 17 00:00:00 2001
From: AlexeyAB <alexeyab84@gmail.com>
Date: Tue, 06 Dec 2016 11:41:18 +0000
Subject: [PATCH] Fixed command line examples
---
src/rnn_vid.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/rnn_vid.c b/src/rnn_vid.c
index bf024f9..7f4c2ba 100644
--- a/src/rnn_vid.c
+++ b/src/rnn_vid.c
@@ -6,6 +6,8 @@
#ifdef OPENCV
#include "opencv2/highgui/highgui_c.h"
+image get_image_from_stream(CvCapture *cap);
+image ipl_to_image(IplImage* src);
void reconstruct_picture(network net, float *features, image recon, image update, float rate, float momentum, float lambda, int smooth_size, int iters);
@@ -161,6 +163,7 @@
CvCapture *cap = cvCaptureFromFile("/extra/vid/ILSVRC2015/Data/VID/snippets/val/ILSVRC2015_val_00007030.mp4");
float *feat;
float *next;
+ next = NULL;
image last;
for(i = 0; i < 25; ++i){
image im = get_image_from_stream(cap);
--
Gitblit v1.10.0