Home > other >  For help, ask a face detection point after the resize coordinates alignment problem
For help, ask a face detection point after the resize coordinates alignment problem

Time:09-27

Points the original face of the landmarks are aligned, due to the image size is different, more need to unify the resize into a fixed size, here the resize using BILINEAR (BILINEAR interpolation), it is assumed that the original image size for srcWidth, srcHeight, original one of the key points for srcX1 coordinate, srcY1
Resize the image size of the dstWidth, dstHeight, corresponding to the original image are the coordinates of the point of the resize dstX1, dstY1, here I am this kind of treatment of
DstX1=srcX1 * dstWidth/srcWidth, dstY1=srcY1 * dstHeight/srcHeight, resize images through such after converting point position is not displayed in the corresponding position, could you tell me where is problem, need bosses to solve!!!!!!!!!!
  • Related