diff --git a/modules/objdetect/src/cascadedetect.cpp b/modules/objdetect/src/cascadedetect.cpp index af94fac0e..c4fedd46d 100644 --- a/modules/objdetect/src/cascadedetect.cpp +++ b/modules/objdetect/src/cascadedetect.cpp @@ -555,6 +555,7 @@ HaarEvaluator::HaarEvaluator() localSize = Size(4, 2); lbufSize = Size(0, 0); nchannels = 0; + tofs = 0; } HaarEvaluator::~HaarEvaluator()