index.wxml 749 B

123456789101112131415161718192021
  1. <xr-demo-viewer
  2. title="AR 人体识别案例"
  3. intro="人体识别案例。识别成功后,会在典型位置展示几何体。"
  4. hint="要求基础库 v2.28.1 及以上"
  5. >
  6. <xr-ar-body
  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>
  20. </xr-demo-viewer>