Skip to content

Commit a41d0fd

Browse files
committed
Merge pull request #2952 from iclemens:lbf_dont_check_cascade
2 parents f5aeecf + 025e137 commit a41d0fd

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)