-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does the opencv recipe for buildozer not include the extra face class? #2166
Comments
Do I have to edit the opencv recipe? |
Look, listen. I really need to know how difficult it would be to import a few extra contrib modules through Python-For-Android.. would I need to try to make a new recipe for them? (This is important), I have an app that mostly uses PIP and other Libraries, but only 10 lines of code are dedicated to actually extracting the facial landmarks through opencv. I have put a lot of work into this app and I don't want to waste all my effort |
This is how to make a local copy of an existing recipe in order to modify it. Replace RECIPE_NAME with whatever recipe you are changing:
|
Thankyou for your help, |
Ok, I have made the changes but it seems to crash when applying the patch. I have created the following directories .p4a-recipes/opencv_contrib which contains the subdirectory containing the patch(p4a_build.patch) I just cut and pasted the whole tree from GitHub (using develop). Here is my buildozer spec (only including relevant areas): =============================================================== (list) Application requirementscomma separated e.g. requirements = sqlite3,kivyrequirements = python3, kivy, numpy, scipy, Pillow, selenium, urllib3, appium-python-client, jnius, kivmob, android, hostpython3, xcamera, plyer, opencv_contrib (str) The directory in which python-for-android should look for your own build recipes (if any)p4a.local_recipes = ./p4a-recipes =============================================================== [INFO]: Applying patches for opencv_contrib[armeabi-v7a] RAN: /usr/bin/patch -t -d /mnt/c/users/nicholas/documents/f_con2/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/opencv_contrib/armeabi-v7a__ndk_target_21/opencv_contrib -p1 -i /mnt/c/users/nicholas/documents/f_con2/p4a-recipes/opencv_contrib/patches/p4a_build.patch STDOUT:
|
oh its ok, I renamed the recipe /opencv and its ok, but it still doesn't build libopencv_face.so |
@SonofPoseidon1982 are you able to solve the issue? |
I need more information; what are you trying to do? If you are trying to use the face class you need import more than just the opencv recipe, but the extra classes which there now exists a recipe. Include opencv_extras in your list of buildozer recipes. The opencv extra classes were added to this recipe only last year. |
I requested this last year and I had a part to play in testing it (at least superficially). https://github.com/kivy/python-for-android/tree/master/pythonforandroid/recipes/opencv_extras |
If the face class (which is now part of the opencv-contrib-python module) is not included in the opencv recipe (which it doesn't seem to be), would it be too problematic to import it?
Thanks,
Nicholas
The text was updated successfully, but these errors were encountered: