我正在使用kivy为iPhone创建一个移动应用程序。我使用以下kv文件:
...
Camera:
id: camera
resolution: (640, 480)
play: True
Button:
...
当我尝试在iPad上运行此应用程序时,它失败了:
CRITICAL ] [Camera ] Unable to find any valuable Camera provider at all!
avfoundation - ImportError: No module named camera_avfoundation
File "/private/var/mobile/Containers/Bundle/Application/3A4C2631-1EF2-4414-A7FA-0F1744B50376/simpliedhome.app/lib/python2.7/site-packages/kivy/core/__init__.py", line 57, in core_select_lib
fromlist=[modulename], level=0)
opencv - ImportError: No module named cv
File "/private/var/mobile/Containers/Bundle/Application/3A4C2631-1EF2-4414-A7FA-0F1744B50376/simpliedhome.app/lib/python2.7/site-packages/kivy/core/__init__.py", line 57, in core_select_lib
fromlist=[modulename], level=0)
File "/private/var/mobile/Containers/Bundle/Application/3A4C2631-1EF2-4414-A7FA-0F1744B50376/simpliedhome.app/lib/python2.7/site-packages/kivy/core/camera/camera_opencv.py", line 20, in <module>
import cv
一些基础研究表明kivy可能不支持ios相机。除了Kivy的原生相机支持外,我还研究了另外两条路径。我检查了pyobjus,它似乎很有希望,但需要更多的本地ios知识,而不是我目前所拥有的。我还看了pyler,它缺乏对iOS的支持。是否有人使用kivy应用程序使用iOS相机?