Commit 03839741d41703a040c135e5dd99654b8e81d13c
1 parent
d602d0b5
fixed youtubeface plugin
Showing
1 changed file
with
4 additions
and
5 deletions
sdk/plugins/youtube.cpp
| ... | ... | @@ -17,14 +17,13 @@ class YouTubeFacesDBTransform : public UntrainableMetaTransform |
| 17 | 17 | Q_PROPERTY(QString algorithm READ get_algorithm WRITE set_algorithm RESET reset_algorithm STORED false) |
| 18 | 18 | BR_PROPERTY(QString, algorithm, "") |
| 19 | 19 | |
| 20 | - void project(const TemplateList &src, TemplateList &dst) const | |
| 21 | - { | |
| 22 | - Transform::project(src.mid(1) /* First template is the header in 'splits.txt' */, dst); | |
| 23 | - } | |
| 24 | - | |
| 25 | 20 | void project(const Template &src, Template &dst) const |
| 26 | 21 | { |
| 27 | 22 | static QMutex mutex; |
| 23 | + | |
| 24 | + // First input is the header in 'splits.txt' | |
| 25 | + if (src.file.get<int>("Index") == 0) return; | |
| 26 | + | |
| 28 | 27 | const QStringList words = src.file.name.split(", "); |
| 29 | 28 | const QString matrix = "YTF-"+algorithm+"/"+words[0] + "_" + words[1] + "_" + words[4] + ".mtx"; |
| 30 | 29 | const QStringList arguments = QStringList() << "-algorithm" << algorithm | ... | ... |