<xr-scene ar-system="modes:Face;camera:Front" bind:ready="handleReady" bind:tick="handleTick">
<xr-assets bind:loaded="handleAssetsLoaded">
<xr-asset-load type="gltf" asset-id="mask" src="https://mmbizwxaminiprogram-1258344707.cos.ap-guangzhou.myqcloud.com/xr-frame/demo/jokers_mask_persona5.glb" />
</xr-assets>
<xr-env env-data="xr-frame-team-workspace-day" />
<xr-light type="ambient" color="1 1 1" intensity="1" />
<xr-light type="directional" rotation="40 70 0" color="1 1 1" intensity="3" />
<xr-ar-tracker mode="Face" auto-sync="43">
<xr-gltf model="mask" rotation="0 180 0" scale="0.5 0.5 0.5" />
</xr-ar-tracker>
<xr-camera clear-color="0.4 0.8 0.6 1" background="ar" is-ar-camera />
</xr-scene>
上边是官方的示例,代码一切正常;
如果把上边的 ar-system="modes:Face;camera:Front"改成人体:ar-system="modes:Body;camera:Front";
<xr-ar-tracker mode="Face" auto-sync="43">改成<xr-ar-tracker mode="Body" auto-sync="0">可以正常渲染但是面具没有3d效果,只看到平移和缩放,没有z轴变化。
我之前用过人脸和人体的识别接口, 因为人体识别的输出中只有位置和大小, 人脸还会有姿态角输出