From 55dc2a9b9a5a349cb450b372553e9a958c9ac3b6 Mon Sep 17 00:00:00 2001 From: TimZnr Date: Wed, 23 Nov 2022 17:09:27 +0100 Subject: [PATCH] read certain file instead of random one --- AutonomousMode/Input/input.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AutonomousMode/Input/input.cpp b/AutonomousMode/Input/input.cpp index 6c269a2..7ae1321 100644 --- a/AutonomousMode/Input/input.cpp +++ b/AutonomousMode/Input/input.cpp @@ -22,7 +22,7 @@ Mat Input::readFile(String filePath) // Random shuffle std::random_shuffle(filenames.begin(), filenames.end()); - Mat image = imread(filenames[0], IMREAD_COLOR); + Mat image = imread(filePath, IMREAD_COLOR); if(image.empty()) {