微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

AR.js 无法识别 5x5 条形码标记

如何解决AR.js 无法识别 5x5 条形码标记

我的 QR 码中有一个 5x5 条形码,汉明距离为 7,可通向我的网站。条码的值是75。请问下面这段代码没有在条码上产生一个球体是什么原因?

<a-scene id="container" embedded vr-mode-ui="enabled: false"
         arjs="sourceType: webcam; debugUIEnabled: false; detectionMode: mono_and_matrix; matrixCodeType: 5x5_BCH_22_7_7;">

    <a-marker type="barcode" value="75">
        <a-sphere material="color: blue; opacity: 0.5" radius="0.25"></a-sphere>
    </a-marker>

<a-entity id="camera" camera></a-entity>
</a-scene>

编辑:我从这个页面中汲取灵感:

https://github.com/nicolocarpignoli/artoolkit-barcode-markers-collection

还有这个:

https://github.com/nicolocarpignoli/nicolocarpignoli.github.io/blob/master/ar-playground/index.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。