Skip to content

Commit d4ae7f3

Browse files
committed
Merge pull request opencv#7205 from souch55:Fixtrans
2 parents 4e8f892 + d2e2300 commit d4ae7f3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

apps/traincascade/imagestorage.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ bool CvCascadeImageReader::NegReader::create( const string _filename, Size _winS
3636
while( !file.eof() )
3737
{
3838
std::getline(file, str);
39+
str.erase(str.find_last_not_of(" \n\r\t")+1);
3940
if (str.empty()) break;
4041
if (str.at(0) == '#' ) continue; /* comment */
4142
imgFilenames.push_back(str);

0 commit comments

Comments
 (0)