Commit 3ad80556277cbf7af8c1a011eb0cde8ada9bccf8

Authored by Josh Klontz
1 parent 3b2f1a64

'Input_Index' now simply 'Index'

sdk/openbr_plugin.cpp
... ... @@ -463,7 +463,7 @@ TemplateList TemplateList::fromGallery(const br::File &gallery)
463 463 for (int i=0; i<newTemplates.size(); i++) {
464 464 newTemplates[i].file.append(gallery.localMetadata());
465 465 newTemplates[i].file.append(file.localMetadata());
466   - newTemplates[i].file.insert("Input_Index", i+templates.size());
  466 + newTemplates[i].file.insert("Index", i+templates.size());
467 467 if (crossValidate > 0) newTemplates[i].file.insert("Cross_Validation_Partition", rand()%crossValidate);
468 468 }
469 469  
... ...
sdk/openbr_plugin.h
... ... @@ -126,7 +126,7 @@ void reset_##NAME() { NAME = DEFAULT; }
126 126 * path | QString | Resolve complete file paths from file names
127 127 * enrollAll | bool | Enroll zero or more templates per file
128 128 * separator | QString | Seperate #name into multiple files
129   - * Input_Index | int | Index of a template in a template list
  129 + * Index | int | Index of a template in a template list
130 130 * Label | float | Classification/Regression class
131 131 * Confidence | float | Classification/Regression quality
132 132 * FTE | bool | Failure to enroll
... ...
sdk/plugins/youtube.cpp
... ... @@ -28,7 +28,7 @@ class YouTubeFacesDBTransform : public UntrainableMetaTransform
28 28 dst = src;
29 29  
30 30 // First input is the header in 'splits.txt'
31   - if (src.file.getInt("Input_Index") == 0) return;
  31 + if (src.file.getInt("Index") == 0) return;
32 32  
33 33 const QStringList words = src.file.name.split(", ");
34 34 dst.file.name = words[0] + "_" + words[1] + "_" + words[4] + ".mtx";
... ...