From 6aed4e5e195b431530a37ac8dece984b18223c49 Mon Sep 17 00:00:00 2001 From: Tadas Baltrusaitis Date: Mon, 20 Aug 2018 19:44:11 +0100 Subject: [PATCH] Fixing issue with -bboxdir searching in the wrong location. --- lib/local/Utilities/src/ImageCapture.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/local/Utilities/src/ImageCapture.cpp b/lib/local/Utilities/src/ImageCapture.cpp index a2465bc2b..25834587a 100644 --- a/lib/local/Utilities/src/ImageCapture.cpp +++ b/lib/local/Utilities/src/ImageCapture.cpp @@ -244,8 +244,8 @@ bool ImageCapture::OpenDirectory(std::string directory, std::string bbox_directo if (!bbox_directory.empty()) { boost::filesystem::path current_file = *file_iterator; - boost::filesystem::path bbox_file = current_file.replace_extension("txt"); - + boost::filesystem::path bbox_file = bbox_directory / current_file.filename().replace_extension("txt"); + // If there is a bounding box file push it to the list of bounding boxes if (boost::filesystem::exists(bbox_file)) {