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
-1
votes
1 answer

The output window doesnot open whenever I try to run the program

I was working on a hand-tracking module from a course offered by free code camp.where I encountered with a issue. The Output window does not open whenever I run my code. When I run The code this is what I get: The code for the program is : import…
Manas17_
  • 1
  • 1
-1
votes
1 answer

Mediapipe cant be installed on raspberry pi zero 2w

I am building a project, and I need to use mediapipe, Im using Ubuntu Server on it, but when I install the mediapipe library I got this error: Traceback (most recent call last): File "/home/project/core.py", line 4, in import…
Axry
  • 1
  • 1
-1
votes
2 answers

hand tracking system using opencv error:TypeError: handDetector.findHands() missing 1 required positional argument: 'img'

I'm following an online advanced CV course but the code wouldn't run properly for me. These are the error messages I've gotten: #Traceback (most recent call last): #File…
lliu56
  • 21
  • 2
-1
votes
1 answer

How to label eyes detected using mediapipe

How to label the person eye for a face detected via mp_face.process() of the mediapipe ? I expect the output to be as below Image taken from this link One of alternate suggestion is given below. I save this as my and other future reference
mpx
  • 3,081
  • 2
  • 26
  • 56
-1
votes
1 answer

Mask a part of the face using MediaPipe - python

I want to mask the cheek, but this mask should have curved edges and not be sharp. I drew the mask using the landmark keys: right_cheek = [330, 350, 411, 376, 352, 345, 264] left_cheek = [101, 129, 187, 147, 123, 116, 34] but it did not work good…
Maryam Boneh
  • 59
  • 1
  • 6
-1
votes
1 answer

when using mediapipe and opencv , multi_hand_landmarks doesn't work

i'm following a youtube tutorial https://www.youtube.com/watch?v=01sAkU_NvOY and i copied the code line by line but it seems like python cannot find multi_hand_landmarks im using VScode here is my code: import cv2 from cv2 import…
quhtani
  • 1
  • 2
-1
votes
2 answers

Python mediapipe handdetector error: create_int(): incompatible function arguments

HandTracking.py (Main Python File) this is my main Python File where I run the code using VSCODE I'm just following the Youtube Video from Murtaza's Workshop - Robotics and AI import cv2 import numpy as np import HandTrackingModule as htm import…
ROM -
  • 1
  • 1
-1
votes
1 answer

ImportError: DLL load failed: mediapipe

Traceback (most recent call last): File "D:/pythonProject2/name.py", line 2, in import mediapipe as mp File "D:\pythonProject2\app_d\lib\site-packages\mediapipe\__init__.py", line 16, in from mediapipe.python import * …
-2
votes
0 answers

MediaPipe Hands throws RuntimeError

I'm working with MediaPipe trying to figure out how to use Hands. But it's been really frustrating because I keep getting an error and it doesn't work. This is my current code. const input = document.getElementById("input"); function…
YEET
  • 1
-2
votes
0 answers

opencv video capture window closes after a second

Here's my code with opencv-python. I'm trying to write a python script using mediapipe to detect a person in a video. It doesn't show any error but the video capture/playback window disappears as soon as it opens. import cv2 import numpy as…
-2
votes
1 answer

How to detect red spots (pimples) on skin using OpenCV

I have just started out into exploring OpenCV and MediaPipe and I have to detect and mark pimples on faces for a task (P.S. I have no background into image processing). However, I cannot yet differentiate between pimples and spots, especially so for…
vmin
  • 11
  • 2
-2
votes
2 answers

Build mediapipe on Linux (Ubuntu 22.04)

I'm trying to build MediaPipe from source with Bazel on Linux ubuntu 22.04. here are the full steps ive done so far: git clone https://github.com/google/mediapipe.git cd mediapipe bazel build -c opt --define MEDIAPIPE_DISABLE_GPU=1 …
-2
votes
1 answer

I am trying to use mediapipe for hands detection and it is not working. Plus I am new to Python

INFO : Created TensorFlow Lite XNNPACK delegate for CPU It is not detecting the hands or doing anything, only the camera is opening. Code : import cv2 import mediapipe as mp cap = cv2.VideoCapture(0) mp_hands = mp.solutions.hands mp_drawing =…
-2
votes
1 answer

Trying to create a module for HandDetection uisng mediapipe and openCV but getting an error

import cv2 import mediapipe as mp import time class handDetector(): def __init__(self, mode=False, model_complexity=1, maxHands=2, detectionCon=0.5, trackingCon=0.5): self.mode = mode self.maxHands = maxHands …
-2
votes
2 answers

Decode Json String in Unity C# Script

I am trying to decode the JSON string into a single element. Below is my code. It is returning null as a result. var topOfHead = landmarks.Landmark[10]; string jsonString = topOfHead.ToString(); //Json in String - tophead:{ "x": 0.8063538, "y":…
Neeraj Mehta
  • 1,675
  • 2
  • 22
  • 45
1 2 3
38
39