|
@@ -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_)
|
|
|
{
|