Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions modules/face/src/facemarkLBF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -332,9 +332,9 @@ void FacemarkLBFImpl::training(void* parameters){
CV_Error(Error::StsBadArg, "Training data is not provided. Consider to add using addTrainingSample() function!");
}

if (params.cascade_face.empty() || (params.model_filename.empty() && params.save_model))
if (params.model_filename.empty() && params.save_model)
{
CV_Error(Error::StsBadArg, "The parameter cascade_face and model_filename should be set!");
CV_Error(Error::StsBadArg, "The parameter model_filename should be set!");
}

// flip the image and swap the landmark position
Expand Down