We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4e8f892 + d2e2300 commit d4ae7f3Copy full SHA for d4ae7f3
apps/traincascade/imagestorage.cpp
@@ -36,6 +36,7 @@ bool CvCascadeImageReader::NegReader::create( const string _filename, Size _winS
36
while( !file.eof() )
37
{
38
std::getline(file, str);
39
+ str.erase(str.find_last_not_of(" \n\r\t")+1);
40
if (str.empty()) break;
41
if (str.at(0) == '#' ) continue; /* comment */
42
imgFilenames.push_back(str);
0 commit comments