如何使用后置摄像头让Android屏幕透视?

发布于 2024-12-17 23:51:05 字数 785 浏览 4 评论 0 原文

有没有办法可以在全屏上显示后置摄像头捕获的内容,从而产生屏幕透明的错觉?不需要完美,足够有说服力就行,一点点滞后也没什么区别。

用手机摄像头能做出这样的效果吗?如果可以,如何达到效果? (如应用什么转换等)

(我已经知道如何 创建一个简单的相机预览)

编辑:现在,我也知道它已经完成了,http://gizmodo.com/5587749/the-samsung-galaxy-s -goes-see+through,但是,我仍然不知道如何正确执行此操作,我知道尝试和错误是一种方法,另一种方法是计算用户应该属于哪一部分看看手机是否不在。

我认为会涉及一些因素,例如

  • 观看距离、
  • 视角、
  • 相机变焦范围、
  • 相机焦距、
  • 相机质量、
  • 手机方向、
  • 相机位置(相机位于手机上的位置)等。

所以,我不觉得这个问题有一个足够简单的解决方案,如果不是这样,请用答案来澄清。

感谢您的帮助,

肖比特,

Is there a way I could show what the hind-side camera captures on a full-screen such that it creates an illusion of screen being see-through? It doesn't need to be perfect, just convincing enough, a little lag won't make any difference.

Is it possible to create such an effect using phone camera? If yes, how can the effect be achieved? (as in what transformations to apply etc.)

(I already know how to create a simple Camera Preview)

Edit : Now, I also know it has been done, http://gizmodo.com/5587749/the-samsung-galaxy-s-goes-see+through, But, I still have no clue how to properly do this, I know trial and error is one way, other is calculating what part a user should be seeing if phone wasn't there.

I think there would be some factors involved like -

  • viewing distance,
  • viewing angle,
  • camera zoom range,
  • camera focus,
  • camera quality,
  • phone orientation,
  • camera position (where is camera located on phone) etc.

So, I don't feel this problem has a simple enough solution, if it is not so, please clarify with an answer.

Thanks for help,

Shobhit,

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

挽心 2024-12-24 23:51:05

您可以使用标准的3D投影数学将背面摄像头图像的一部分投影到显示屏上;您可以通过假设相机看到的所有内容都位于距背面相机的特定深度处,并假设观察者的特定视点来管理此问题,

您可以通过查找 面部/眼睛 使用前置摄像头。您可以根据眼睛间距粗略估计观看距离,并假设观看者位置位于眼睛之间的中间位置。当然,这一次仅适用于一名观看者(例如,如果您的面部跟踪器发现多个面部,您可以选择其中之一)。

此外,您还可以通过校准相机和屏幕来改善视觉效果,以便将两者的颜色和亮度相匹配。

You can use standard 3D projection math to project a portion of the backside camera image onto the display; you can manage this by assuming everything the camera sees is at a particular depth from the backside camera, and by assuming a particular viewpoint for the observer

You can improve on this by looking for faces/eyes using the frontside camera. You can get a rough estimate of the the viewing distance from the eye spacing, and assume a viewer position midway between the eyes. Of course, this only works for one viewer at a time (e.g., if your face tracker finds multiple faces, you can select one of them).

Also, you can improve the illusion by calibrating the camera and screen so you can match the color and brightness from one to the other.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文