收藏
回答

XR-FRAME 图片识别 识别失败什么原因导致的?

使用xr-assets 绑定glb模型  xr-ar-tracker放入图片和上面xr-gltf进行绑定 然后识别https://api.mifuxing.net/statics/ar/img02.jpg 识别失败

<xr-scene ar-system="modes:Marker;planeMode: 3id="xr-scenebind:ready="handleReadybind:ar-ready="handleARReadybind:log="handleLog">

  <xr-assets bind:progress="handleAssetsProgress" bind:loaded="handleAssetsLoaded">

    <xr-asset-load type="gltf" asset-id="maku" src="https://api.mifuxing.net/statics/ar/img01.glb"/>

  </xr-assets> 

  <xr-env env-data="gz-haixinsha" />

  <xr-node>

    <!-- 识别图片 -->

   <xr-ar-tracker id="ar-tracker" mode="Marker" src="https://api.mifuxing.net/statics/ar/img02.jpg" bind:ar-tracker-state="handleARTrackerState1">

      <xr-gltf id="wxball-1" position="0.2 0.7 -0.25" scale="0.025 0.025 0.025" rotation="-90 0 0" model="maku" anim-autoplay bind:gltf-loaded="handleGLTFLoaded" wx:if="{{isShow}}"></xr-gltf>

    </xr-ar-tracker>

    <xr-camera id="cameranode-id="cameraposition="1 1 1clear-color="0.925 0.925 0.925 1far="2000background="aris-ar-camera></xr-camera>

  </xr-node>

  <xr-node node-id="lights">

    <xr-light type="ambientcolor="1 1 1intensity="2" />

    <xr-light type="directionalrotation="90 60 0color="1 1 1intensity="1" />

  </xr-node>

</xr-scene>


回答关注问题邀请回答
收藏

1 个回答

  • div
    div
    11-02

    这里没人回。可以进微信群里问下,应该有人遇到过,不过人太多了,只能+wx:wdmwjm ,邀请进

    11-02
    有用
    回复
登录 后发表内容