Commit caa0d1e7 authored by Tristan Matthews's avatar Tristan Matthews

video_filter: opencv_example: use C++ loop declaration

parent 83d5b02f
......@@ -149,7 +149,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
{
IplImage** p_img = NULL;
CvPoint pt1, pt2;
int i, scale = 1;
int scale = 1;
filter_sys_t *p_sys = p_filter->p_sys;
if ((!p_pic) )
......@@ -189,7 +189,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
}
//populate the video_filter_region_info_t struct
for( i = 0; i < (faces ? faces->total : 0); i++ )
for( int i = 0; i < (faces ? faces->total : 0); i++ )
{
CvRect *r = (CvRect*)cvGetSeqElem( faces, i );
pt1.x = r->x*scale;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment