index.wxml 885 B

12345678910111213141516171819202122
  1. <xr-demo-viewer
  2. title="AR 人手识别案例"
  3. intro="人手识别案例。识别成功后,会在典型位置展示几何体。手势对应可见官网文档->组件->XR-FRAME->AR追踪器。"
  4. hint="要求基础库 v2.28.1 及以上"
  5. >
  6. <xr-ar-hand
  7. disable-scroll
  8. id="main-frame"
  9. width="{{renderWidth}}"
  10. height="{{renderHeight}}"
  11. style="width:{{width}}px;height:{{height}}px;top:{{top}}px;left:{{left}}px;display:block;"
  12. bind:info="handleInfo"
  13. bind:arTrackerState="handleARTrackerState"
  14. />
  15. <view wx:if="{{arTrackerShow}}" style="text-align: center;padding: 12px;">
  16. <view>Tracker识别状态:{{arTrackerState}}</view>
  17. <view>错误信息:{{arTrackerError}}</view>
  18. <view wx:if="{{score !== undefined}}">置信度:{{score}}</view>
  19. <view wx:if="{{gesture !== undefined}}">手势:{{gesture}}</view>
  20. </view>
  21. </xr-demo-viewer>