1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-18 17:24:28 +08:00

Changes SVT recognition evaluation to be Case Insensitive (according to the standard evaluation protocol). This makes the benchmark obtained mean-f1 score increase from 0.23 to 0.27

This commit is contained in:
lluis
2015-08-06 11:53:46 +02:00
parent 6e4d6bca75
commit 769d2ada0e

View File

@@ -244,6 +244,8 @@ int main(int argc, char *argv[])
continue;
}
std::transform(words[j].begin(), words[j].end(), words[j].begin(), ::toupper);
if (find(example->lex.begin(), example->lex.end(), words[j]) == example->lex.end())
{
continue;