Skip to content

Commit a246d8d

Browse files
michal-kowalczykalalek
authored andcommitted
Merge pull request opencv#13709 from michal-kowalczyk:flush-processed-samples-number
* Add flushing to printing number of processed positive/negative samples so that user is informed of updates quickly. * use flush C api instead of C++ api
1 parent 64629cb commit a246d8d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

apps/traincascade/cascadeclassifier.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,7 @@ int CvCascadeClassifier::fillPassedSamples( int first, int count, bool isPositiv
341341
{
342342
getcount++;
343343
printf("%s current samples: %d\r", isPositive ? "POS":"NEG", getcount);
344+
fflush(stdout);
344345
break;
345346
}
346347
}

0 commit comments

Comments
 (0)