CV_Error(CV_StsBadArg,"DetectionBasedTracker::SeparateDetectionWork::SeparateDetectionWork: Cannot load a cascade from the file '"+cascadeFilename+"'");
}
CV_Assert(!_detector.empty());
cascadeInThread=_detector;
intres=0;
res=pthread_mutex_init(&mutex,NULL);//TODO: should be attributes?