Kivy Opencv Android

前端 未结 1 1095
傲寒
傲寒 2021-02-04 17:01

I\'m trying to build an example Android app based on Kivy and OpenCv:

import kivy
from kivy.uix.button import Button
import cv2
kivy.require(\'1.0.6\') 


from k         


        
1条回答
  •  伪装坚强ぢ
    2021-02-04 18:04

    To solve the immediate crash when running the apk on the phone, the buildozer.spec file must be setup as follows:

    [app]
    
    title = MyTest
    
    package.name = kivycrash2
    
    package.domain = org.test
    
    source.dir = .
    
    source.include_exts = py,png,jpg,kv,atlas
    
    version = 0.1
    
    requirements =  kivy, numpy, opencv
    
    orientation = landscape
    

    as suggested by @Fins

    Thank you.

    0 讨论(0)
提交回复
热议问题