如何使用HTML5和AR在视频/图像上实时生成3d标记? [英] How can i generate 3d markers using HTML5 and AR it on a video / image in real time?

查看:375
本文介绍了如何使用HTML5和AR在视频/图像上实时生成3d标记?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我仍然想知道如何使用HTML5生成3d标记并在视频/图像上实时生成3d标记?

I am still wondering how can I generate 3d markers using HTML5 and AR it on a video / image in real time?

我的要求是-

我想开发增强现实,例如:我在桌面上获得了图像或实时视频流,我应该能够在其中标记一些点/对其进行注释,然后将其远程镜像到iPad上.如何在HTML5应用中实现这一目标

I want to develop AR e.g.: 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. How can I achieve this in HTML5 app

我在这里遇到了有关JSARToolKit的精彩教程- http://www.html5rocks. com/zh-CN/tutorials/webgl/jsartoolkit_webrtc/,我认为它最适合我的用例.但是,我不确定如何开始呢?我在github中找到了源代码,但是我不确定如何调试或理解它并根据使用案例进行扭曲?或者至少我该如何弄脏我的手?

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. 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? or at least how can I get my hands dirty to start with it?

推荐答案

我建议尝试使用"Metaio"或"Wikitude" SDK 它们都支持HTML. 这是使用"Metaio" SDK&的基于标记的跟踪器的示例. Unity3D http://bit.ly/ARTrkingSample

I would recommend trying "Metaio" or "Wikitude" SDK they both support HTML. Here is a sample for Marker based Tracker using "Metaio" SDK & Unity3D http://bit.ly/ARTrkingSample

关于您的想法,您必须 在标记上显示视频或图像 然后4前:触摸时添加注释 手动存储它们的位置(在Metaio中,您需要将它们的位置与相机"位置相比,因为Metaio SDK会根据相机的移动来不断更改标记"位置,以便在移动物理相机时可以看到它们的位置稳定) 并将它们显示在另一台设备上的相同位置.

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.

这篇关于如何使用HTML5和AR在视频/图像上实时生成3d标记?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆