【问题标题】:AR.JS - Inconsistent Results with Barcode MarkersAR.JS - 条码标记不一致的结果
【发布时间】:2021-01-27 04:14:47
【问题描述】:

无论我从 https://github.com/nicolocarpignoli/artoolkit-barcode-markers-collection 中选择哪个集合(这似乎是标记的规范集合),我都从 AR.JS 中的条形码标记中得到不一致的结果。在同一个集合中,有些标记有效,有些则无效,即使 matrixCodeType 对所有标记都相同。我希望所有工作或所有工作都不能在一个集合中工作。任何想法为什么会出现不一致的结果?

<!DOCTYPE html>
<html>
    <head>
        <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
    
        <script src="https://aframe.io/releases/1.0.0/aframe.min.js"></script>
        <script src="https://raw.githack.com/AR-js-org/AR.js/master/aframe/build/aframe-ar.js"></script>
    </head>

    <body style="margin:0px; overflow:hidden;">
            
            <a-scene embedded arjs="debugUIEnabled:false; detectionMode:mono_and_matrix; matrixCodeType:4x4_BCH_13_9_3;" vr-mode-ui="enabled:false">
           
            <a-assets>
                <img id="station_01" src="assets/images/station_01.jpg">
                <img id="station_02" src="assets/images/station_02.jpg">
                <img id="station_03" src="assets/images/station_03.jpg">
            </a-assets>   
                            
            <a-marker-camera type="barcode" value="1">            
                <a-image src="#station_01" scale="2 3 1" rotation="-90 0 0"></a-image>
            </a-marker-camera>          
            
            <a-marker-camera type="barcode" value="2">            
                <a-image src="#station_02" scale="2 3 1" rotation="-90 0 0"></a-image>
            </a-marker-camera>          
            
            <a-marker-camera type="barcode" value="3">            
                <a-image src="#station_03" scale="2 3 1" rotation="-90 0 0"></a-image>
            </a-marker-camera>          
                        
            <a-entity camera></a-entity>
        </a-scene>
    </body>
</html>

【问题讨论】:

    标签: ar.js


    【解决方案1】:

    我最近也在为同样的问题而苦苦挣扎,在我的情况下,结果证明这是由于照明条件造成的。不均匀或光线不足有时会产生阴影和对比度差异,这些阴影和对比度差异似乎与肉眼无关,但会干扰模式识别和跟踪。

    【讨论】:

      猜你喜欢
      • 2021-06-15
      • 2013-03-26
      • 2019-05-11
      • 2019-06-27
      • 1970-01-01
      • 2019-08-02
      • 2020-02-17
      • 2014-09-21
      • 1970-01-01
      相关资源
      最近更新 更多