From 1b1221ace5f49b5b464cf7f4ff89f31cf03d3da1 Mon Sep 17 00:00:00 2001 From: AlexeyAB Date: Fri, 6 Apr 2018 23:58:32 +0300 Subject: [PATCH] Minor fix for Web Cam on OpenCV 3.x --- src/demo.c | 1 + src/http_stream.h | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/demo.c b/src/demo.c index 6ae3c336..027ca4dd 100644 --- a/src/demo.c +++ b/src/demo.c @@ -24,6 +24,7 @@ #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; diff --git a/src/http_stream.h b/src/http_stream.h index b1daf9f1..af3d3990 100644 --- a/src/http_stream.h +++ b/src/http_stream.h @@ -11,7 +11,6 @@ void send_mjpeg(IplImage* ipl, int port, int timeout, int quality); CvCapture* get_capture_webcam(int index); IplImage* get_webcam_frame(CvCapture *cap); -//image image_data_augmentation(const char *filename, int w, int h, image image_data_augmentation(IplImage* ipl, int w, int h, int pleft, int ptop, int swidth, int sheight, int flip, float jitter, float dhue, float dsat, float dexp);