-
Notifications
You must be signed in to change notification settings - Fork 132
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
Mediapipe package #479
Comments
Thanks for the report. This package isn't currently a priority, but you can subscribe to this issue for any future updates. And if anyone else wants it too, please click the thumbs-up button above. |
I am also using mediapipe library in one of my project. I wanted to run android app with python code and mediapipe is the only library which didn't get download. When can we expect support for this or what is the alternative for this? |
Chaquopy supports several other image processing and machine learning libraries including OpenCV, TensorFlow and PyTorch. Alternatively, you could use the Chaquopy Python API to access the MediaPipe Java API from Python. Unfortunately it looks like they don't release a pre-built AAR, and the process for building one yourself is quite complex. |
So what is the procedure to support mediapipe in chaquopy library. Is it something we can do in few days because my entire project is dependant on it and changing it will be very difficult as we want to launch the product asap. |
Do you mean your project depends on the MediaPipe Python API? If the options I mentioned above aren't acceptable for you, then you could try using our package build tool, which was used to build everything in our native package repository. For more details, see #175 (comment). However, I've had a quick look at the MediaPipe Python build process, and it looks fairly complex, so getting it working with our build tool may not be easy. I can provide an example of how to use the tool with a Bazel-based project, but I have no specific knowledge of MediaPipe itself, so if you choose to go this way I could only provide general support. Also, I should warn you that even if you do manage to make a Python build of MediaPipe, it probably wouldn't be able to work directly with the Android camera system in the same way as the Java builds apparently do, and an indirect workaround would probably give much worse performance. |
Is there any updates on this? |
It still isn't available, but if you'd like to try building it yourself, the package build tool is now open-source. Follow the instructions here, and if you're successful, please make a pull request so we can add the package to the public repository. |
I still can't install mediapipe via .whl method. in my app level gradle under default config I have ; python { } but when I run the project I get this error. could not find a version that satisfies the requirement mediapipe=0.9.0.1 |
Linux wheels cannot be installed on Android. If you want to use this package, you'll have to try one of the suggestions mentioned above. |
Understood. So , how do i install/build mediapipe for android use. ?
…On Tue, Jan 10, 2023, 17:02 Malcolm Smith ***@***.***> wrote:
Linux wheels cannot be installed on Android. The only options are the ones
already mentioned above.
—
Reply to this email directly, view it on GitHub
<#479 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A3MZUNI7IJFO3VSUOFRG2BDWRVTYPANCNFSM42YSN4KQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Sorry, I don't know anything more about this package except what's written above. But if you want to try one of those approaches, I'll be happy to help you with any issues that come up. |
Hello there , |
What part didn't you understand? |
Please don't post "+1" comments with no useful content. They won't make us work on the issue any sooner, and they'll spam everyone who's subscribed to it. Click the thumbs up button at the top of the page instead. |
I am also trying to install mediapipe on my android project using chaquo library but I get the same error message that there's no version found for mediapipe, is there a way that the team can see how best they can include this so it would be easier for developers using your library to install mediapipe? |
I am trying to build mediapipe following the instruction that was given in the README file in the repository https://github.com/chaquo/build-wheel. I am faced with the following error
I downloaded the maven target using the command that was stated and the .zip files are all available in the required folder Can I please get help as to where I am going wrong? We really need Chaquopy to support media pipe. Thank you |
The download command in the README assumes your working directory is the root of the repository. If you run it from a different directory, you'll have to modify the path to |
I guess that was exactly what I did but now I am getting a different error when I run the build code
Can you please provide a clear explanation as to how to go about this and if the README file needs to be updated then please see how best we can be provided with the updated version. |
Please run
Please also let me know :
|
I download my |
OK, it appears that Debian-based distributions install the pip wheels in /usr/share/python-wheels rather than /usr/lib/python3.8/ensurepip/_bundled. build-wheel will have to be updated to handle this (#930). Meanwhile, you can work around the problem by using a version of Python from miniconda, as described in the README. |
But why are you trying to build SciPy? As mentioned at #648, that isn't currently possible, because we don't have a working Fortran compiler. But if all you need is a copy of SciPy to build another package against, that can be "downloaded manually from the public repository" as mentioned in the README. |
I am not actually trying to build SciPy I was just using it to test out the build-wheel. I intend on building Mediapipe , as it is needed by the project that we are currently working on. Also, if you can help me understand a little better when I used chaquopy in my Lastly, I downloaded the |
OK, then I suggest you start with the "examples of existing recipes" in the README.
PyPI is enabled by default, so you don't have to add it as an extra URL. But the only wheels that will work on Android are those built for the platforms |
Okay now I understand, but is there a way I can use your I also encountered an error while executing the
|
Yes, that's what the tool is for. But some packages require a lot of patching to build for Android. As mentioned above, Mediapipe uses the Bazel build system, and I've only encountered that before when building TensorFlow, which was extremely difficult. MediaPipe is probably not so difficult, but I wouldn't expect it to be easy. So instead of building it yourself, it's worth looking into whether you could install MediaPipe for Android using their official instructions, and then access its Java API from Python using Chaquopy.
Please create a new issue and post the full build log. |
This has now been fixed. |
Issue has still not been fixed. Tried building the mediapipe module but I still can't get it to work on the application chaquopy still throw a Module Not Found Error, and I even try to download it from pip since it is available on pip but still to no avail. It would be really helpful if the chaquopy team can help resolve this issue so we can be able to install Mediapipe |
I never said the availability of Mediapipe had been fixed, only that specific issue with the build-wheel tool. |
it's December 2023, yet no update |
I have read all the comments in this thread [March 27 2024], It is difficult to manage all the pacages in Chaquopy, @mhsmith.
Most ML/Python developers want direct integration of the ML pipeline in Android, and MediaPipe is one of them because the developer wants to apply MediaPipe to images and video 😅. So, can you help me guide the process, I know everyone's time is valuable; if you guys have any solutions, please share. |
Sorry, I don't have time to look into this any further at the moment. Everything I know is in the comments above. |
Will the Mediapipe python package be added in the repository of Chaquopy?
If yes, Thanks in advance
If no, Is there anybody working on using python script in android studio?
The text was updated successfully, but these errors were encountered: