[vlc-devel] [PATCH] opencv_example: fix compilation
Angelo Compagnucci
angelo at amarulasolutions.com
Thu Feb 20 15:54:14 CET 2020
Fixes:
video_filter/opencv_example.cpp:200:46: error: could not convert
‘cv::Scalar_<double>((double)0, (double)0, (double)0, (double)0)’ from
‘cv::Scalar’ {aka ‘cv::Scalar_<double>’} to ‘CvScalar’
cvRectangle( p_img[0], pt1, pt2, CV_RGB(0,0,0), 3, 8, 0 );
Signed-off-by: Angelo Compagnucci <angelo at amarulasolutions.com>
---
modules/video_filter/opencv_example.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/video_filter/opencv_example.cpp b/modules/video_filter/opencv_example.cpp
index 1334cd4..2a1a05d 100644
--- a/modules/video_filter/opencv_example.cpp
+++ b/modules/video_filter/opencv_example.cpp
@@ -202,7 +202,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
pt2.x = (r->x+r->width)*scale;
pt1.y = r->y*scale;
pt2.y = (r->y+r->height)*scale;
- cvRectangle( p_img[0], pt1, pt2, CV_RGB(0,0,0), 3, 8, 0 );
+ cvRectangle( p_img[0], pt1, pt2, cvScalar(0,0,0), 3, 8, 0 );
*(CvRect*)(&(p_sys->event_info.p_region[i])) = *r;
p_sys->event_info.p_region[i].i_id = p_sys->i_id++;
--
2.7.4
More information about the vlc-devel
mailing list