视觉智能开放平台人脸检测如何根据FaceRectangles计算人脸矩形框面积?[阿里云人脸识别]

视觉智能开放平台人脸检测如何根据FaceRectangles计算人脸矩形框面积?

「点点赞赏,手留余香」

    还没有人赞赏,快来当第一个赞赏的人吧!
=====这是一个广告位,招租中,联系qq 78315851====
2 条回复 A 作者 M 管理员
  1. 您好,FaceRectangles接口返回人脸矩形框,分别是[left, top, width, height],人脸矩形框面积计算公式为width*height。更多人脸检测FaceRectangles接口定义说明请点此查看

  2. 人脸检测接口返回值中,返回的数据FaceRectangles,也就是人脸矩形框,分别是[left, top, width, height]。如有多个人脸,则依次顺延,返回矩形框。例如有两个人脸则返回[left1, top1, width1, height1, left2, top2, width2, height2]。 left-top: 表示以图片左上角为坐标原点,目标框所对应的左上角点位置(x,y),表示框的第一个点距离图片左边界x像素,距离上边界y个像素。 width-height:表示目标框的宽和高。 目标框面积为width*height,目标框右下角坐标为(left+width,top+heigth)。

  3. 人脸检测器获取到人脸矩形框FaceRectangles,返回人脸矩形框,格式为[left, top, width, height]。如有多个人脸,则依次顺延,返回矩形框。例如有两个人脸则返回[left1, top1, width1, height1, left2, top2, width2, height2]。