mirror of
https://gitcode.com/gh_mirrors/ope/OpenFace.git
synced 2025-12-30 04:52:29 +00:00
Fixing issue with -bboxdir searching in the wrong location.
This commit is contained in:
@@ -244,8 +244,8 @@ bool ImageCapture::OpenDirectory(std::string directory, std::string bbox_directo
|
|||||||
if (!bbox_directory.empty())
|
if (!bbox_directory.empty())
|
||||||
{
|
{
|
||||||
boost::filesystem::path current_file = *file_iterator;
|
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 there is a bounding box file push it to the list of bounding boxes
|
||||||
if (boost::filesystem::exists(bbox_file))
|
if (boost::filesystem::exists(bbox_file))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user