summaryrefslogtreecommitdiff
path: root/tools/extract_features.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/extract_features.cpp')
-rw-r--r--tools/extract_features.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/extract_features.cpp b/tools/extract_features.cpp
index 364c436d..1ffbfbed 100644
--- a/tools/extract_features.cpp
+++ b/tools/extract_features.cpp
@@ -157,7 +157,7 @@ int feature_extraction_pipeline(int argc, char** argv) {
for (int d = 0; d < dim_features; ++d) {
datum.add_float_data(feature_blob_data[d]);
}
- int length = snprintf(key_str, kMaxKeyStrLength, "%d",
+ int length = snprintf(key_str, kMaxKeyStrLength, "%010d",
image_indices[i]);
string out;
CHECK(datum.SerializeToString(&out));