Merge pull request #7205 from souch55:Fixtrans

pull/7212/head
Alexander Alekhin 9 years ago
commit d4ae7f32e3
  1. 1
      apps/traincascade/imagestorage.cpp

@ -36,6 +36,7 @@ bool CvCascadeImageReader::NegReader::create( const string _filename, Size _winS
while( !file.eof() )
{
std::getline(file, str);
str.erase(str.find_last_not_of(" \n\r\t")+1);
if (str.empty()) break;
if (str.at(0) == '#' ) continue; /* comment */
imgFilenames.push_back(str);

Loading…
Cancel
Save