liyuanrui / kivy-for-android-opencv-demo

kivy for android opencv demo
49 stars 14 forks source link

Buildozer requirements with opencv issue #4

Open JSVJ opened 1 year ago

JSVJ commented 1 year ago

I am having a python code which includes CV2 and aruco markers. I installed the OpenCV in python using the command "pip install OpenCV-contrib-python".

The app works perfectly on the desktop. It also generates the apk file too. However, when I try to open the app it always crashes with the error "ModuleNotFoundError: No module named 'cv2'".

I tried changing the name of OpenCV in the requirements into OpenCV-python or OpenCV-contrib-python. It's not working for any of them. It returns the error "ImportError: OpenCV loader: missing configuration file: ['config.py']. Check OpenCV installation"

I have attached my bulldozer spec file. buildozer.txt

dxwss commented 4 months ago

I have the same problem. Have you solved it?

JSVJ commented 4 months ago

@dxwss Nope. After repeated failures, I was experimenting with different android versions. I was able to achieve in an older android version.