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
-2
votes
3 answers

How to loop through a folder of subfolders and read the images inside each subfolder?

Currently, I have a python program that is able to run without error. However, it is only able to run through a subfolder of images and extract the x, y, z coordinates of the 468 facial landmarks in each image. I want to edit it as such that the…
Mohamed
  • 1
  • 5
-2
votes
1 answer

How can I blur a mask and smooth its edges?

I want to change the color of the cheeks of this photo. I got a mask with sharp edges How can I blur a mask and smooth its edges? image mask
-2
votes
1 answer

Issue regarding heroku and flask

I have made face recognisation using OpenCv, mediapipe and python. I created backend using flask and this is working completely fine on my PC but on deploying it on heroku is creating a error(code=H10). Can anyone please fix this…
-2
votes
2 answers

Python Error Traceback (most recent call last):

I am trying the build a hand tracker in python. there is my code import cv2 from cvzone.HandTrackingModule import HandDetector cap = cv2.VideoCapture(0) detector = HandDetector(detectionCon=0.8, maxHands=1) while True: success, img =…
-2
votes
6 answers

TypeError: create_bool(): incompatible function arguments

I made a code detector that can detect hand, face, pose, etc. But when I run this in Visual Studio, I get the following error message: TypeError: create_bool(): incompatible function arguments. The following argument types are supported: 1.…
이승환
  • 11
  • 1
  • 2
-3
votes
1 answer

i = i[0] leads to IndexError: invalid index to scalar variable

Im getting an error every time i run this script in my environment Traceback (most recent call last): File "FaceMark.py", line 55, in i = i[0] IndexError: invalid index to scalar variable. The camera does turns on but as soon it…
-3
votes
1 answer

How to convert a UIImage to a CVPixelBuffer 32BGRA for mediapipe?

I am using mediapipe to develop a iOS application, now I need input an image data to the mediapipe, but mediapipe only accepted 32BGRA CVPixelBuffer. how can I convert UIImage to 32BGRA CVPixelBuffer? I am using this code: let frameSize =…
normidar
  • 445
  • 5
  • 11
-3
votes
1 answer

TypeError: findFaces() missing 1 required positional argument: 'vid'

I have been watching this tutorial https://www.youtube.com/watch?v=01sAkU_NvOY&ab_channel=freeCodeCamp.org For the hand module it went fine but for the pose and face module I have been getting error at the same position I have gone through the code…
Franklyn
  • 1
  • 1
-3
votes
1 answer

Saving Mediapipe Face Mesh Landmarks frame by frame from a video

I want to know how to save the output of facial landmarks frame by frame from a video using Mediapipe.
-4
votes
1 answer

'numpy.ndarray' object has no attribute 'multi_hand_landmarks'

i write a script for search a hand and draw it on screen, but i have an error AttributeError: 'numpy.ndarray' object has no attribute 'multi_hand_landmarks' idk how to solve it. FULL CODE import cv2 import mediapipe as mp cap = cv2.VideoCapture(2)…
-4
votes
2 answers

Error finding the mediapipe lib but it is present in the folder

Traceback (most recent call last): File "c:\Users\shash\Desktop\Extras\Traning_Placement\Projects_python\hand_tracking\Hand_Tracking_Min.py", line 2, in import mediapipe as mp File…
1 2 3
38
39