Skip to content

Commit

Permalink
Fixing issue with -bboxdir searching in the wrong location.
Browse files Browse the repository at this point in the history
  • Loading branch information
TadasBaltrusaitis committed Aug 20, 2018
1 parent 44f35af commit 6aed4e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/local/Utilities/src/ImageCapture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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))
{
Expand Down

0 comments on commit 6aed4e5

Please sign in to comment.