fixed vector out of range exception in nextImg
This commit is contained in:
parent
354ed5c4d6
commit
5cb70d34d7
@ -54,8 +54,10 @@ bool CvCascadeImageReader::NegReader::nextImg()
|
|||||||
for( size_t i = 0; i < count; i++ )
|
for( size_t i = 0; i < count; i++ )
|
||||||
{
|
{
|
||||||
src = imread( imgFilenames[last++], 0 );
|
src = imread( imgFilenames[last++], 0 );
|
||||||
if( src.empty() )
|
if( src.empty() ){
|
||||||
|
last %= count;
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
round += last / count;
|
round += last / count;
|
||||||
round = round % (winSize.width * winSize.height);
|
round = round % (winSize.width * winSize.height);
|
||||||
last %= count;
|
last %= count;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user