From 8fcf3f04eec0e4b776e053047010d29ab6b53ea5 Mon Sep 17 00:00:00 2001 From: AlexeyAB Date: Wed, 18 Apr 2018 16:00:06 +0300 Subject: [PATCH] sure ODR --- src/yolo_v2_class.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/yolo_v2_class.hpp b/src/yolo_v2_class.hpp index 68482e6d..00c2a5b7 100644 --- a/src/yolo_v2_class.hpp +++ b/src/yolo_v2_class.hpp @@ -446,7 +446,7 @@ class Tracker_optflow {}; #ifdef OPENCV -cv::Scalar obj_id_to_color(int obj_id) { +static cv::Scalar obj_id_to_color(int obj_id) { int const colors[6][3] = { { 1,0,1 },{ 0,0,1 },{ 0,1,1 },{ 0,1,0 },{ 1,1,0 },{ 1,0,0 } }; int const offset = obj_id * 123457 % 6; int const color_scale = 150 + (obj_id * 123457) % 100;