【发布时间】:2020-08-22 01:03:42
【问题描述】:
我正在使用 claraifai API 检索面部区域以形成边界框,但实际上绘制该框会严重偏离图像中的值。
代码:
return {
topRow: face.top_row * height,
leftCol: face.left_col * width,
bottomRow: (face.bottom_row * height) - (face.top_row * height),
rightCol: (face.right_col * width) - (face.left_col * width)
}
【问题讨论】: