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