Open duanxb opened 2 years ago
我看见你使用的 "@tensorflow-models/face-landmarks-detection": "0.0.3", 在返回推测数据的格式是这样的: { faceInViewConfidence: 1, boundingBox: { topLeft: [232.28, 145.26], // [x, y] bottomRight: [449.75, 308.36], }, mesh: [ [92.07, 119.49, -17.54], // [x, y, z] [91.97, 102.52, -30.54], ... ], scaledMesh: [ [322.32, 297.58, -17.54], [322.18, 263.95, -30.54] ], annotations: { silhouette: [ [326.19, 124.72, -3.82], [351.06, 126.30, -3.00], ... ], ... } }
我用版本 ~1.0.1 , 返回的数据格式会有变化,只有 keypoints、box,我在计算Matrix的时候,以眉心(midwayBetweenEyes)作为位置基准,高版本的返回格式里没有 annotations.midwayBetweenEyes ,怎么处理呢?
可以对照这个标准脸模型找特征点的编号
我看见你使用的 "@tensorflow-models/face-landmarks-detection": "0.0.3", 在返回推测数据的格式是这样的: { faceInViewConfidence: 1, boundingBox: { topLeft: [232.28, 145.26], // [x, y] bottomRight: [449.75, 308.36], }, mesh: [ [92.07, 119.49, -17.54], // [x, y, z] [91.97, 102.52, -30.54], ... ], scaledMesh: [ [322.32, 297.58, -17.54], [322.18, 263.95, -30.54] ], annotations: { silhouette: [ [326.19, 124.72, -3.82], [351.06, 126.30, -3.00], ... ], ... } }
我用版本 ~1.0.1 , 返回的数据格式会有变化,只有 keypoints、box,我在计算Matrix的时候,以眉心(midwayBetweenEyes)作为位置基准,高版本的返回格式里没有 annotations.midwayBetweenEyes ,怎么处理呢?