solutions.drawing_utils.draw_landmarks does not work on RGBA images #5266
Labels
gpu
MediaPipe GPU related issues
os:macOS
Issues on MacOS
platform:python
MediaPipe Python issues
task:pose landmarker
Issues related to Pose Landmarker: Find people and body positions
type:bug
Bug in the Source Code of MediaPipe Solution
Have I written custom code (as opposed to using a stock example script provided in MediaPipe)
None
OS Platform and Distribution
MacOS
Mobile device if the issue happens on mobile device
No response
Browser and version if the issue happens on browser
No response
Programming Language and version
Python
MediaPipe version
0.10.9
Bazel version
No response
Solution
Pose Landmarker
Android Studio, NDK, SDK versions (if issue is related to building in Android environment)
No response
Xcode & Tulsi version (if issue is related to building for iOS)
No response
Describe the actual behavior
If an RGBA image is passed to
solutions.drawing_utils.draw_landmarks
(such as when using GPU mode, where the image must be RGBA), thensolutions.drawing_utils.draw_landmarks
fails. As a workaround, the image can be converted back to RGB prior to passing to this function.Describe the expected behaviour
solutions.drawing_utils.draw_landmarks
should work on RGBA images.Standalone code/steps you may have used to try to get what you need
Other info / Complete Logs
No response
The text was updated successfully, but these errors were encountered: