例如,我是否可以获得检测图片的结果以转到AR.js中的下一页。因为我看到它正在向控制台发送对象检测消息,但是我不能在代码中使用检测结果

发布于 2021-03-27 09:54:41
根据AR.js文档,“markerFound”是“当基于标记的标记或图像跟踪中的图片被找到时触发的”。
因此,如果这是您定义要跟踪的图像的方式:
<a-nft type="nft" imageMarkerName ...要添加监听程序,请执行以下操作:
AFRAME.registerComponent(imageMarkerName, {
init: function () {
var marker = this.el;
marker.addEventListener('markerFound', function() {
// The image is found.
});
});https://stackoverflow.com/questions/64853862
复制相似问题