Skip to content

Commit

Permalink
fix a bug for face alignment.
Browse files Browse the repository at this point in the history
  • Loading branch information
jiezhang-zz committed Sep 18, 2016
1 parent 476a6d5 commit b26578b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Binary file removed FaceAlignment/model/seeta_fa_v1.0.bin
Binary file not shown.
Binary file added FaceAlignment/model/seeta_fa_v1.1.bin
Binary file not shown.
6 changes: 4 additions & 2 deletions FaceAlignment/src/cfan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@

#include "cfan.h"

using namespace std;

/** A constructor.
* Initialize basic parameters.
*/
Expand Down Expand Up @@ -162,8 +164,8 @@ void CCFAN::FacialPointLocate(const unsigned char *gray_im, int im_width, int im
int right_x = left_x + bbox_w - 1;
int right_y = left_y + bbox_h - 1;

float extend_factor = 0.15;
float extend_revised_y = 0.0;
float extend_factor = 0.05;
float extend_revised_y = 0.05;

/*Compute the extended region of the detected face*/
int extend_lx = max(floor(left_x - extend_factor*bbox_w), 0);
Expand Down

0 comments on commit b26578b

Please sign in to comment.