【问题标题】:How to make photosphere camera like in Nexus/Pixel camera or StreetView app?如何在 Nexus/Pixel 相机或街景应用中制作 Photosphere 相机?
【发布时间】:2019-05-08 08:48:35
【问题描述】:

我正在尝试找出如何为相机应用程序实现球形模式,尤其是我对在球体上放置点并在相机预览中显示它们感兴趣。例如,这些应用程序具有这样的功能:

Google Camera

Street View - 点击浮动按钮

Panorama 360

Gallery 3D - 图库应用程序的旧版本

我在考虑 ARCore,但可以肯定的是,它没有用于上述应用之一,因为这些应用可以在不支持 ARCore 的设备上运行 (supported devices)。

我也发现了类似的问题

Create spherical camera app like google camera

How to implement Camera functionality with extra options (like Panorama)?

但他们老了,没有任何线索。

任何提示将不胜感激。

【问题讨论】:

标签: android


【解决方案1】:

我认为您正在谈论使用 android 的加速度计进行事件处理,您可以像这里一样捕获事件 How to detect shake event with android? ,然后可能会打开您的相机并执行您的活动。

也试试这个http://www.techrepublic.com/blog/app-builder/a-quick-tutorial-on-coding-androids-accelerometer/472

您需要捕获多张图像,然后使用特定的算法将它们组合起来,从而获得全景 360 视图。

像这样的图像拼接算法:http://en.wikipedia.org/wiki/Image_stitching

最重要的事情:没有人会在任何开源论坛上透露他们的算法(据我所知)

也看看这个:数学解释

http://www.cs.cornell.edu/courses/cs4670/2010fa/projects/final/results/group_of_acc269_ty244_yc563/cs4670_final.html

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-02-24
    • 1970-01-01
    • 2013-01-20
    相关资源
    最近更新 更多