【问题标题】:Is there a way to use Python to access IPhone camera resolution?有没有办法使用 Python 访问 iPhone 相机分辨率?
【发布时间】:2020-03-13 07:00:56
【问题描述】:

我知道您可以使用 Objective-c 来访问它,但想知道是否有任何 Python 模块可以让我们做同样的事情?

【问题讨论】:

  • 你用什么用python制作iOS应用?
  • 我正在使用 kivy

标签: iphone python-3.x resolution ios-camera


【解决方案1】:

如果您在 上使用 应用程序,则有photos 库。
※ 可以浏览其他库here

Photos库可以为你提供这样的API

  1. capture_image(camera='rear')
  2. get_metadata(image_index=-1)
    ※很遗憾,没有关于分辨率的信息。至少我没找到。
  3. 等等

但它不能让您直接访问相机分辨率。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-09-12
    • 1970-01-01
    • 1970-01-01
    • 2022-10-04
    • 1970-01-01
    相关资源
    最近更新 更多