Skip to content

Commit

Permalink
seem to fixed one more opencv_face test
Browse files Browse the repository at this point in the history
  • Loading branch information
vpisarev committed Jun 15, 2023
1 parent 12c7da2 commit 56dea72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/face/src/facemarkLBF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ void FacemarkLBFImpl::prepareTrainingData(Mat img, std::vector<Point2f> facePoin
std::vector<Mat> & cropped, std::vector<Mat> & shapes, std::vector<BBox> &boxes)
{
Mat shape;
Mat _shape = Mat(facePoints).reshape(1);
Mat _shape = Mat(facePoints).reshape(1, (int)facePoints.size());
Rect box = getBBox(img, _shape);

if(img.channels()>1){
Expand Down Expand Up @@ -1359,7 +1359,7 @@ Mat FacemarkLBFImpl::Regressor::supportVectorRegression(
if(verbose) printf("Objective value = %lf\n", v);
if(verbose) printf("nSV = %d\n",nSV);

return Mat(Mat(w).t()).clone();
return Mat(w).reshape(2, 1).clone();

}//end

Expand Down

0 comments on commit 56dea72

Please sign in to comment.