Questions tagged [mediapipe]

When you are facing any implementation issue for mediapipe in your android, iOS or desktop application, When you want any clarification on concept , methods on mediapipe etc ask question with this tag.

MediaPipe is a framework for building multimodal (eg. video, audio, any time series data), cross platform (i.e Android, iOS, web, edge devices) applied ML pipelines. With MediaPipe, a perception pipeline can be built as a graph of modular components, including, for instance, inference models (e.g., TensorFlow, TFLite) and media processing functions.

585 questions
0
votes
1 answer

'DetectionResult' has no attribute 'detections'

I am new to the mediapipe library. I was following the code from here. Everything works fine without trying to use the visualize function; that means that I get the following detection results correctly, with the camera on. I get this following…
0
votes
0 answers

(Used PyCharm, Python, OpenCV, Mediapipe) When using Mediapipe what does process() function return?

Here is the code. import cv2 import mediapipe as mp webcam=cv2.VideoCapture(0) mp_face=mp.solutions.face_mesh mp_drawing=mp.solutions.drawing_utils with mp_face.FaceMesh(min_detection_confidence=0.5,min_tracking_confidence=0.5) as face_mesh: …
0
votes
1 answer

How can I fix this error? ValueError: too many values to unpack (expected 2)

import cv2 as cv import csv from cvzone.HandTrackingModule import HandDetector import cvzone as cvz # Declaring the cap variable to start Camera activity cap = cv.VideoCapture(0) cap.set(3, 1280) cap.set(4, 720) detector =…
Roshan
  • 11
  • 4
0
votes
0 answers

Hand tracking script using MediaPipe on GPU not utilizing GPU acceleration

I'm working on a hand tracking script that utilizes MediaPipe for hand landmark detection and gesture recognition. I want to optimize the script to run on my GPU for faster performance. However, I'm encountering a couple of issues. Checking GPU…
DuNeemo
  • 23
  • 4
0
votes
0 answers

Macos bundle app with Opencv and Mediapipe

I want to bundle my python code into a application (.app file) on MacOS. pyinstaller --noconsole --add-data="../v-env/lib/python3.10/site-packages/mediapipe/modules:mediapipe/modules" main.py I have no errors in pyinstaller. The dist/main/main…
0
votes
0 answers

Mediapipe deadlock resolver

I have primary input (reader) and secondary (generator), both of them are source nodes. When I don't have the primary input (from reader), I want to output data from generator. My primary input goes into some calculation part, where it can require…
naufumi
  • 65
  • 4
0
votes
0 answers

How can I update a variable that should change over iterations?

I´m working with a code that imports photos from a folder, makes a landmark, and gets a value over the distance in the landmark. The problem is, I get to succesfully open the photo, make the landmark, and obtain the distances, but whenever I trie to…
0
votes
0 answers

Applying a 4x4 3D transformation matrix to a PNG image

I'm working on a project where I need to apply a 3D transformation represented by a 4x4 transformation matrix to a PNG image using Python. However, I'm having difficulties finding a solution that works correctly. The transformation matrix I have is…
0
votes
0 answers

Mediapipe `max_num_hands` not working properly

I am trying to extract hand pose using Mediapipe. Even though max_num_hands is set to be 2, sometimes results.multi_hand_landmarks still returns an array of length 3, which indicates 3 hands. I checked this by…
K.XGai
  • 3
  • 3
0
votes
1 answer

Bazel is failing while building mediapipe for Android in Windows

I am trying to build a pose landmark detection program in android. For that reason, I am trying to create MediaPipe framework. I am working in Windows 11 and Bazel version 6.2.1. I followed every steps as described in…
Mr Learner
  • 63
  • 9
0
votes
0 answers

(arg0: int) -> mediapipe.python._framework_bindings.packet.Packet

TypeError: create_int(): incompatible function arguments. The following argument types are supported: 1. (arg0: int) -> mediapipe.python._framework_bindings.packet.Packet I'm getting this error when I try and run a virtual keyboard code Traceback…
0
votes
0 answers

How to get the orientation of hand with the help of Mediapipe?

I have a finger counting that can count 0-5. However, the result become inaccurate once the orientation of the hand is different - like when the hand is turned at 180-degree angle. To avoid this problem, I want to add to my program a function that…
aaagge
  • 13
  • 3
0
votes
0 answers

hide points in mediapipe pose 3d plot

I started work with media pipe pose and i have some problems. I am trying to highlight only legs point, but on 3d scatter also shows face's and other body's points. first of all i have the original image with the original points as an…
user19381782
  • 15
  • 1
  • 3
0
votes
0 answers

Bazel recompiles everything every time I restart my machine

I have started creating a program with the Mediapipe library in C++ on Windows and build all my source code and their source code using Bazel. As I couldn't get anything else to work, I have put my own source code inside the Mediapipe source tree…
0
votes
0 answers

when running Mediapipe in an extra thread the video is slow in python

to get better performance, i try to get frames with opencv from webcam and store them in a queue, then i want to run mediapipe in an extra thread to get the frames from the buffer and process them and show the image with the drawed landmarks. the…