Skip to content

Commit 025e137

Browse files
author
Ivar Clemens
committed
Removed check for cascade_face as it is not used.
1 parent f5aeecf commit 025e137

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/face/src/facemarkLBF.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,9 +332,9 @@ void FacemarkLBFImpl::training(void* parameters){
332332
CV_Error(Error::StsBadArg, "Training data is not provided. Consider to add using addTrainingSample() function!");
333333
}
334334

335-
if (params.cascade_face.empty() || (params.model_filename.empty() && params.save_model))
335+
if (params.model_filename.empty() && params.save_model)
336336
{
337-
CV_Error(Error::StsBadArg, "The parameter cascade_face and model_filename should be set!");
337+
CV_Error(Error::StsBadArg, "The parameter model_filename should be set!");
338338
}
339339

340340
// flip the image and swap the landmark position

0 commit comments

Comments
 (0)