summaryrefslogtreecommitdiff
path: root/tools/convert_imageset.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/convert_imageset.cpp')
-rw-r--r--tools/convert_imageset.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/convert_imageset.cpp b/tools/convert_imageset.cpp
index 90cdb15..9c5d09f 100644
--- a/tools/convert_imageset.cpp
+++ b/tools/convert_imageset.cpp
@@ -115,7 +115,7 @@ int main(int argc, char** argv) {
size_t p = fn.rfind('.');
if ( p == fn.npos )
LOG(WARNING) << "Failed to guess the encoding of '" << fn << "'";
- enc = fn.substr(p);
+ enc = fn.substr(p+1);
std::transform(enc.begin(), enc.end(), enc.begin(), ::tolower);
}
status = ReadImageToDatum(root_folder + lines[line_id].first,