如何开始编写增强现实应用程序
我一直在考虑创建一个增强现实应用程序。任何人都可以建议一个首选的技术平台来开始编写此类应用程序。
我希望这是一个桌面应用程序而不是移动应用程序。因此我想使用具有对象识别功能的网络摄像头。
谢谢!
I have been looking at creating an augmented reality application. Can anyone suggest a preferred technology platform to start writing an application of this kind.
I would like this to be a desktop application and not a mobile application. Therefore I want to use a webcam with object recognition.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(9)
FLARToolKit 是另一个值得一看的好地方。它是免费的,使用 flash + Actionsctript 3。 gotoandlearn DOT com 有几个关于如何使用该库的很好的视频教程,我会给你它们的链接,但 stackoverflow 说我对于超过 1 个 url 来说还不够特别。
FLARToolKit is another good place to look. It's free and uses flash + Actionsctript 3. gotoandlearn DOT com has a couple good video tutorial on how to use the library, I'd give you links to them but stackoverflow says I'm not special enough for more than 1 url.
您最好的选择可能是某种手机。
我会选择安卓。借助 Android 手机上内置的加速计和 GPS,标记位置并检测您是否正在查看它们并不困难。然后,您可以在相机输入上创建叠加层以标记位置等。有些人在这个平台上做过类似的事情,所以你甚至可能会得到一些帮助。
祝你好运。
Your best bet is probably a cell phone of some kind.
I would go for Android. With the built in Accelerometer and GPS on Android phones, it won't be too hard to tag locations and detect if you are looking at them. You can then create an overlay ontop of the camera input to tag locations and the like. There are some people who have done similar things on this platform, so you might even get some help.
Good Luck.
如果您想构建自己的 AR sdk,以便随着时间的推移对其进行改进,此处我发布了一种教程,其中您需要的技术和功能。
我选择OpenCV,因为它快速、免费且用途广泛。
If you want to build your own AR sdk so you can improve it over time, here I posted a kind of tutorial on which techniques and functions do you need.
I chose OpenCV as it is fast, free and versatile.
上周末我参加了一个会议,有人演示了 Goblin XNA。它是 XNA 框架的扩展,用于支持增强现实。它确实看起来非常令人印象深刻。
如果您已经熟悉 .net,那么它可能值得一看。
I was at a conference last weekend where somebody demoed Goblin XNA. It's an extension to the XNA framework to support augmented reality. It certainly looked very impressive.
If your already familiar with .net it might be worth a look.
有 Android 和 iPhone 增强现实开发套件。 iPhone 版本此处
Android 版本此处。假设您可以使用 obj-c 或 java 进行编程,那么这些应该可以帮助您解决一些复杂的数学问题。
There is the Android and iPhone Augmented Reality dev kit. iPhone version here
Android version here. Assuming you can program in obj-c or java, those should take some of the complicated math off your hands.
您可以在 Windows 和 Linux 平台上使用 Nyartoolkit for java
您可以使用 http://sixwish.jp/Nyartoolkit/Java/section01.en/
您也可以检查 http:// Fivedots.coe.psu。 ac.th/~ad/jg/ch165/index.html 用于使用 NyARToolkit 进行增强现实的电子书和示例。
You can use Nyartoolkit for java on Windows and Linux platforms
You can install using http://sixwish.jp/Nyartoolkit/Java/section01.en/
Also you can check http://fivedots.coe.psu.ac.th/~ad/jg/ch165/index.html for Augmented Reality with NyARToolkit e-book and samples.
对于桌面用途 - 使用网络摄像头进行对象识别 - opencv 确实值得一看。
我认为还有一个用于移动设备的端口
For desktop purposes - object recognition with a webcam - opencv is certainly worth a look.
I think there is also a port for mobile devices
我建议您尝试 NYARToolkit for Unity
您可以从 < a href="http://unity3d.com/unity/download/" rel="nofollow">这里
这个增强现实是一个 2 分钟的任务,它非常容易使用“unity”
和“NyARToolkit for unity”
I would suggest you to try NYARToolkit for Unity
you can download basic Unity for free from here
with this Augmented Reality be a 2 minutes task, its very easy to use both "unity"
and "NyARToolkit for unity"
桌面应用程序是否包括 Web 浏览器中的 WebGL 应用程序?
如果是这样,那么您可能需要查看 skarf.js,这是我为处理问题而编写的框架Three.js 中的 JavaScript 增强现实库。它目前集成了 JSARToolKit 和 js-aruco,因此您可以轻松地在这两个库之间切换,以决定使用更合适的一个。
该框架会为您处理许多事情,包括在检测到关联标记时自动加载模型(关联在 JSON 文件中指定)。还有一个 GUI 标记系统,允许用户使用 AR 标记来控制设置。
与 Three.js 集成只需一行代码即可创建 Skarf 实例,另一行代码可更新。
有视频、现场演示、源代码、示例和文档可供使用。请访问 http://cg.skeelogy.com/skarfjs/ 了解更多信息。
Does desktop application include WebGL applications in the web browser?
If so, then you might want to check out skarf.js, a framework that I have written for handling JavaScript augmented reality libraries in Three.js. It currently integrates JSARToolKit and js-aruco, so you can easily switch between these two libraries to decide on the more suitable one to use.
This framework takes care of a number of things for you, including automatic loading of models when the associated markers are detected (association is specified in a JSON file). There is also a GUI marker system which allows users to control settings using AR markers.
Integration with Three.js is just one line of code to create a Skarf instance and another line of code to update.
There are videos, live demos, source codes, examples and documentation available. Check out http://cg.skeelogy.com/skarfjs/ for more info.