mirror of
https://github.com/opencv/opencv.git
synced 2024-11-24 19:20:28 +08:00
warnings fix
This commit is contained in:
parent
6982ea5a66
commit
c73a10cb4d
@ -255,7 +255,7 @@ void Draw(Mat& img, vector<Rect>& faces, double scale)
|
||||
imwrite( outputName, img );
|
||||
if(abs(scale-1.0)>.001)
|
||||
{
|
||||
resize(img, img, Size(img.cols/scale, img.rows/scale));
|
||||
resize(img, img, Size((int)(img.cols/scale), (int)(img.rows/scale)));
|
||||
}
|
||||
imshow( "result", img );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user