warning fix

This commit is contained in:
Francesco Gatti
2020-04-09 01:00:14 +02:00
parent 2389df8626
commit c248a94101
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -133,7 +133,7 @@ void CenternetDetection::preprocess(cv::Mat &frame){
float new_height = sz.height * scale;
float new_width = sz.width * scale;
if(sz.height != sz_old.height && sz.width != sz_old.width){
float c[] = {new_width / 2.0, new_height /2.0};
float c[] = {new_width / 2.0f, new_height /2.0f};
float s[2];
if(sz.width > sz.height){