index.wxml 760 B

123456789101112131415161718192021
  1. <xr-demo-viewer
  2. title="扫描物体查看信息"
  3. intro="基于 OSD 实现的扫描 广州塔 或 虎年公仔,识别成功后会在物体右上角加上信息提示"
  4. hint="默认扫描图片见官网开发文档\n组件 -> xr-frame -> 示例"
  5. >
  6. <xr-classic-osd
  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. markerImg="{{markerImg}}"
  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>
  19. </xr-demo-viewer>