Skip to content

Commit ffe49bd

Browse files
committed
fixed createsamples info message
1 parent fc9e031 commit ffe49bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/createsamples/utility.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -995,12 +995,12 @@ void icvGetNextFromBackgroundData( CvBackgroundData* data,
995995
{
996996
round = data->round;
997997

998+
data->last = rand() % data->count;
999+
9981000
#ifdef CV_VERBOSE
9991001
printf( "Open background image: %s\n", data->filename[data->last] );
10001002
#endif /* CV_VERBOSE */
10011003

1002-
data->last = rand() % data->count;
1003-
data->last %= data->count;
10041004
img = cvLoadImage( data->filename[data->last], 0 );
10051005
if( !img )
10061006
continue;

0 commit comments

Comments
 (0)