<i id='hzYt3'><tr id='hzYt3'><dt id='hzYt3'><q id='hzYt3'><span id='hzYt3'><b id='hzYt3'><form id='hzYt3'><ins id='hzYt3'></ins><ul id='hzYt3'></ul><sub id='hzYt3'></sub></form><legend id='hzYt3'></legend><bdo id='hzYt3'><pre id='hzYt3'><center id='hzYt3'></center></pre></bdo></b><th id='hzYt3'></th></span></q></dt></tr></i><div id='hzYt3'><tfoot id='hzYt3'></tfoot><dl id='hzYt3'><fieldset id='hzYt3'></fieldset></dl></div>
    <bdo id='hzYt3'></bdo><ul id='hzYt3'></ul>
  • <legend id='hzYt3'><style id='hzYt3'><dir id='hzYt3'><q id='hzYt3'></q></dir></style></legend>

      1. <small id='hzYt3'></small><noframes id='hzYt3'>

      2. <tfoot id='hzYt3'></tfoot>

        如何在 Kivy Launcher 中运行 OpenCV?

        时间:2023-09-01

              <tfoot id='VVnbT'></tfoot>
              1. <legend id='VVnbT'><style id='VVnbT'><dir id='VVnbT'><q id='VVnbT'></q></dir></style></legend>
                  <tbody id='VVnbT'></tbody>
                <i id='VVnbT'><tr id='VVnbT'><dt id='VVnbT'><q id='VVnbT'><span id='VVnbT'><b id='VVnbT'><form id='VVnbT'><ins id='VVnbT'></ins><ul id='VVnbT'></ul><sub id='VVnbT'></sub></form><legend id='VVnbT'></legend><bdo id='VVnbT'><pre id='VVnbT'><center id='VVnbT'></center></pre></bdo></b><th id='VVnbT'></th></span></q></dt></tr></i><div id='VVnbT'><tfoot id='VVnbT'></tfoot><dl id='VVnbT'><fieldset id='VVnbT'></fieldset></dl></div>

                • <bdo id='VVnbT'></bdo><ul id='VVnbT'></ul>
                • <small id='VVnbT'></small><noframes id='VVnbT'>

                  本文介绍了如何在 Kivy Launcher 中运行 OpenCV?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我正在构建一个需要 OpenCV 模块的 Kivy 应用程序,但是 Kivy 启动器在我运行它时不断崩溃.

                  I am building a Kivy app that requires the OpenCV module, but the Kivy Launcher keeps crashing when I run it.

                  我已经从 PyPi (https://pypi.python.org/pypi/opencv-python#downloads) 并将其放入我的 kivy 项目目录中.我的项目目录目前包含main.py文件、android.txt文件和opencv下载.在 main.py 文件中,我在代码顶部写了import cv2".但是,我的应用程序在 Kivy 启动器中不断崩溃.

                  I have downloaded OpenCV from PyPi (https://pypi.python.org/pypi/opencv-python#downloads) and placed it into my kivy project directory. My project directory currently contains the main.py file, the android.txt file, and the opencv download. In the main.py file I write "import cv2" at the top of the code. However, my app keeps crashing in the Kivy launcher.

                  在 Kivy Launcher 中安装 python 扩展的正确方法是什么?

                  What is the correct way to install python extensions for use in Kivy Launcher?

                  顺便说一句-我是 Kivy 和 Android 应用程序开发的新手,非常感谢任何帮助

                  BTW- I am brand new to Kivy and Android app development, so any help is much appreciated

                  推荐答案

                  我已经从 PyPi 下载了 OpenCV(https://pypi.python.org/pypi/opencv-python#downloads) 并放置它进入我的 kivy 项目目录

                  I have downloaded OpenCV from PyPi (https://pypi.python.org/pypi/opencv-python#downloads) and placed it into my kivy project directory

                  事情不是这样运作的.OpenCV 应该专门为 Android 编译.我猜你使用 buildozer 来构建 apk?在这种情况下,您应该修改 buildozer.spec 文件中的 requirements 行以添加 opencv,例如:

                  This is not how things work. OpenCV should be compiled specifically for Android. I guess you use buildozer to build apk? In this case you should modify requirements line inside buildozer.spec file to add opencv, for example:

                  requirements =  kivy, opencv
                  

                  为Android编译python模块提供python-for-android 项目.

                  Compiling python modules for Android provided by python-for-android project.

                  这篇关于如何在 Kivy Launcher 中运行 OpenCV?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:在 Playstore 中发布现成的 Kivy 应用程序之前的流程 下一篇:仅使用 kv 文件在 kivy 中创建 DropDown

                  相关文章

                  最新文章

                  <i id='NCwiw'><tr id='NCwiw'><dt id='NCwiw'><q id='NCwiw'><span id='NCwiw'><b id='NCwiw'><form id='NCwiw'><ins id='NCwiw'></ins><ul id='NCwiw'></ul><sub id='NCwiw'></sub></form><legend id='NCwiw'></legend><bdo id='NCwiw'><pre id='NCwiw'><center id='NCwiw'></center></pre></bdo></b><th id='NCwiw'></th></span></q></dt></tr></i><div id='NCwiw'><tfoot id='NCwiw'></tfoot><dl id='NCwiw'><fieldset id='NCwiw'></fieldset></dl></div>
                • <tfoot id='NCwiw'></tfoot>

                    1. <legend id='NCwiw'><style id='NCwiw'><dir id='NCwiw'><q id='NCwiw'></q></dir></style></legend>
                        <bdo id='NCwiw'></bdo><ul id='NCwiw'></ul>

                      <small id='NCwiw'></small><noframes id='NCwiw'>