iPhone 应用程序中的实时摄像头问题

发布于 2024-08-05 08:40:08 字数 339 浏览 2 评论 0原文

关于我们开发的使用实时摄像头功能的 iPhone 应用程序的问题。

详细信息:

  1. 我们在实时摄像头源上叠加一个可调整的半透明图像。
  2. 当用户将半透明图像调整到恰好覆盖(任何部分)摄像头按钮的位置时,它会使摄像头按钮不可单击,并且用户很沮丧——无法拍照。

问题:

  1. 有人对我们如何克服相机功能的默认功能有建议吗(即:默认是相机栏,相机按钮位于最底层 - 我们还没有找到改变的方法它到一个不同的、更高的层,以允许我们的半透明图像位于底部以避免点击问题)?
  2. 任何人都可以想到一个可能有效的解决方法吗?

谢谢!

Question regarding an iPhone application we have developed which uses the live camera function.

Details:

  1. We are layering an adjustable semi-transparent image over the live camera feed
  2. When the user adjusts the semi-transparent image to a location that happens to cover (in any part) the camera button, it renders the camera button unclickable and the user is left frustrated - unable to snap the photo.

Question:

  1. Does anyone have a suggestion for how we might be able to overcome the default features of the camera function (ie: default is the camera bar and camera button are the bottom-most layer - and we haven't found a way to change it to a different, higher layer to allow for our semi-transparent image to be on the bottom to avoid the clicking problem)?
  2. Can anyone think of a workaround that might work?

Thanks!

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

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

发布评论

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

评论(2

淡淡の花香 2024-08-12 08:40:08

如果最终用户手机可以选择 OS 3.1,请查看新的 3.1 相机 API。总之,将showsCameraControls 属性设置为NO,将cameraOverlayview 属性设置为您自己的视图,并使用takePicture 方法连接到您自己的拍照控件。您还需要实现 imagePickerController:didFinishPickingMediaWithInfo 以在拍摄照片后保存图像。

当然,目标是消除库存控制并使用您自己可以控制的库存控制来进行放置。

UIImagePickerController 类参考

有更多信息关于这个问题。

If OS 3.1 is an option for end-user phones, take a look at the new 3.1 camera APIs. In summary, set the showsCameraControls property to NO, set the cameraOverlayview property to your own view, and use the takePicture method to hook up to your own control for taking the picture. You'll also need to implement imagePickerController:didFinishPickingMediaWithInfo to save the image after the picture is taken.

The goal, of course, is to eliminate the stock controls and use your own that you can control for placement.

UIImagePickerController Class Reference

has further information on the subject.

逆光飞翔i 2024-08-12 08:40:08

您还可以查看 ARKit。我还没有使用过它,或者有时间玩它。从表面上看,苹果似乎不会批准它,但它似乎拆开了 UIImagePicker 控件以删除取景器周围的所有镶边。

You might also check out ARKit. I haven't used it yet or had time to play with it. From looking at it, it seems like apple would not sanction it, but it seems to pick apart the UIImagePicker control to remove all the chrome around the view finder.

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