From 353ec8a76706ee7df710a494966561a6905959ab Mon Sep 17 00:00:00 2001 From: Nuzhny007 Date: Sun, 11 Oct 2020 17:33:45 +0300 Subject: [PATCH 1/2] Fix some warnings --- src/Tracker/Kalman.cpp | 2 +- src/Tracker/dat/dat_tracker.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Tracker/Kalman.cpp b/src/Tracker/Kalman.cpp index a8c50b747..137a675ef 100644 --- a/src/Tracker/Kalman.cpp +++ b/src/Tracker/Kalman.cpp @@ -10,10 +10,10 @@ TKalmanFilter::TKalmanFilter( track_t accelNoiseMag ) : + m_accelNoiseMag(accelNoiseMag), m_deltaTime(deltaTime), m_deltaTimeMin(deltaTime), m_deltaTimeMax(2 * deltaTime), - m_accelNoiseMag(accelNoiseMag), m_type(type), m_useAcceleration(useAcceleration) { diff --git a/src/Tracker/dat/dat_tracker.cpp b/src/Tracker/dat/dat_tracker.cpp index 6c6a317a6..d4c33b480 100644 --- a/src/Tracker/dat/dat_tracker.cpp +++ b/src/Tracker/dat/dat_tracker.cpp @@ -160,7 +160,7 @@ cv::RotatedRect DAT_TRACKER::Update(const cv::Mat &im, float& confidence) candidate_scores.push_back(vote_scores[i] * dist_scores[i]); } auto maxEl = std::max_element(candidate_scores.begin(), candidate_scores.end()); - int best_candidate = maxEl - candidate_scores.begin(); + size_t best_candidate = maxEl - candidate_scores.begin(); confidence = *maxEl; target_pos = candidate_centers[best_candidate]; From a32248914b5b1f509a3c7cb270e1340d8da573ed Mon Sep 17 00:00:00 2001 From: Nuzhny007 Date: Sun, 11 Oct 2020 17:34:30 +0300 Subject: [PATCH 2/2] Fix OpenCV 3 compatible --- src/Detector/OCVDNNDetector.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Detector/OCVDNNDetector.h b/src/Detector/OCVDNNDetector.h index d80e3c5ba..ba2fd1f29 100644 --- a/src/Detector/OCVDNNDetector.h +++ b/src/Detector/OCVDNNDetector.h @@ -39,7 +39,7 @@ class OCVDNNDetector : public BaseDetector bool m_swapRB = false; float m_maxCropRatio = 2.0f; std::vector m_classNames; - std::vector m_outNames; + std::vector m_outNames; std::vector m_outLayers; std::string m_outLayerType; cv::UMat m_inputBlob;