Commit c73a10cb authored by yao's avatar yao

warnings fix

parent 6982ea5a
......@@ -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 );
......
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