diff --git a/bob/ip/flandmark/cpp/flandmark_detector.cpp b/bob/ip/flandmark/cpp/flandmark_detector.cpp index 50dbbce4a12d20a4ed4db916e9232c076847183a..085282fcdb6b9b859a946fa7c5baa4f7899e1423 100644 --- a/bob/ip/flandmark/cpp/flandmark_detector.cpp +++ b/bob/ip/flandmark/cpp/flandmark_detector.cpp @@ -942,8 +942,8 @@ void flandmark_get_normalized_image_frame(const blitz::Array<uint8_t, 2>& input, nd[0] = d[0]*model->data.options.bw_margin[1]/100. + d[0]; nd[1] = d[1]*model->data.options.bw_margin[0]/100. + d[1]; - corrected_bbx[0] = int(c[0] - nd[0]/2.); - corrected_bbx[1] = int(c[1] - nd[1]/2.); + corrected_bbx[0] = int(c[0] - nd[0]/2.) + 2; + corrected_bbx[1] = int(c[1] - nd[1]/2.) + 2; corrected_bbx[2] = int(c[0] + nd[0]/2.); corrected_bbx[3] = int(c[1] + nd[1]/2.);