leon 1 mēnesi atpakaļ
vecāks
revīzija
813aa24e5f
1 mainītis faili ar 4 papildinājumiem un 4 dzēšanām
  1. 4 4
      src/nodes/infer/inferNode.cpp

+ 4 - 4
src/nodes/infer/inferNode.cpp

@@ -25,10 +25,10 @@ void InferNode::work()
             int height = image.rows;
 
             // cv::imwrite("test.jpg", image);
-            float x = rand() % width;
-            float y = rand() % height;
-            float w = rand() % (width - x);
-            float h = rand() % (height - y);
+            int x = rand() % width;
+            int y = rand() % height;
+            int w = rand() % (width - x);
+            int h = rand() % (height - y);
             metaData->boxes.push_back(data::Box(x, y, x + w, y + h, 0.9, "test"));
             for (auto& output_buffer : output_buffers_)
             {