简体   繁体   English

如何使用HTML5和AR在视频/图像上实时生成3d标记?

[英]How can i generate 3d markers using HTML5 and AR it on a video / image in real time?

I am still wondering how can I generate 3d markers using HTML5 and AR it on a video / image in real time? 我仍然想知道如何使用HTML5和AR在视频/图像上实时生成3d标记?

My requirement is - 我的要求是-

I want to develop AR eg: I get an image or live video stream on desktop and I should be able to mark some points/annotate something on it and mirror it on to iPad remotely. 我想开发AR,例如:在桌面上获得图像或实时视频流,我应该能够在其中标记一些点/对其进行注释,然后将其远程镜像到iPad。 How can I achieve this in HTML5 app 如何在HTML5应用中实现此目标

I came across wonderful tutorial here on JSARToolKit - http://www.html5rocks.com/en/tutorials/webgl/jsartoolkit_webrtc/ , which I felt would be most suitable one for my use case. 我碰到精彩的教程在这里JSARToolKit - http://www.html5rocks.com/en/tutorials/webgl/jsartoolkit_webrtc/ ,我认为这将是最适合我的使用情况。 But, I am not sure how do I start with it? 但是,我不确定如何开始呢? I found the source code in github but I am not very sure about how do i debug or understand it and twist as per my use case? 我在github中找到了源代码,但是我不确定如何调试或理解它并根据使用案例进行扭曲? or at least how can I get my hands dirty to start with it? 或者至少我该如何弄脏我的手?

I would recommend trying "Metaio" or "Wikitude" SDK they both support HTML. 我建议尝试使用均支持HTML的“ Metaio”或“ Wikitude” SDK。 Here is a sample for Marker based Tracker using "Metaio" SDK & Unity3D http://bit.ly/ARTrkingSample 这是使用“ Metaio” SDK和Unity3D的基于标记的跟踪器的示例, 网址为http://bit.ly/ARTrkingSample

Regarding your idea you have to display the video or image base on the marker then 4 ex: on touch add your annotation manually store the location of them (in Metaio you will need their location compared to the Camera location because Metaio SDK will keep change the Markers location base on the camera moves so you can see it stable when you move your physical camera) and display them in the same location on your other device. 关于您的想法,您必须在标记上显示视频或图像,然后在4 ex上:触摸时手动添加注释以存储它们的位置(在Metaio中,您需要将其位置与Camera位置相比,因为Metaio SDK会不断更改标记的位置取决于相机的移动,因此您在移动物理相机时可以看到它的位置稳定),并在其他设备上的相同位置显示它们。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM