简体   繁体   English

在相机上叠加图像。 增强现实

[英]Overlaying images over camera. Augmented reality

So, I'm trying to create a Augmented reality app on android (client/server). 因此,我正在尝试在android(客户端/服务器)上创建增强现实应用程序。 My question is if i can overlay images and text boxes over the camera in real time or only if i have the capture to display it on the screen and add the extra information 我的问题是我是否可以实时在相机上叠加图像和文本框,或者仅当我有捕获的图像并将其显示在屏幕上并添加其他信息时

If the first version can be implemented can someone help me with some starting code or links with suggestions 如果可以实施第一个版本,有人可以帮助我提供一些起始代码或建议链接

I did something similar for one of my apps, And the way i did it is by placing an empty View on top of camera surfaceView using FrameLayout, then used onDraw method in the View class, to play with canvas and put anything i wanted on top of the camera view, you can practically do everything with Canvas, and since literally your view is overlaying the camera surfaceView, will do exactly the trick you are trying to accomplish here... 我为我的一个应用做了类似的事情,而做这件事的方法是,使用FrameLayout在相机surfaceView的顶部放置一个空的View,然后在View类中使用onDraw方法,以玩画布并将我想要的任何东西放在顶部在摄影机视图中,您几乎可以使用Canvas进行所有操作,并且由于您的视图实际上覆盖了摄影机SurfaceView,因此可以完全完成您要在此处完成的工作...

Regards! 问候!

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

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