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

This Bazel build file has only deps no srcs

I was trying to use google's media pipe but this Bazel build has no srcs only deps. What is supposed to be the main program in this build? package(default_visibility = ["//mediapipe/examples:__subpackages__"]) cc_binary( name =…
0
votes
1 answer

Why does the Dequantize node fail to prepare?

Background I'm playing around with MediaPipe for hand tracking and found this useful wrapper for loading MediaPipe's hand_landmark.tflite model. It works without any problems for me on Ubuntu 18.04 with Tensorflow 1.14.0. However, when I try use a…
hlzl
  • 479
  • 2
  • 5
  • 17
0
votes
1 answer

Mediapipe: How to implement real time gesture recognition in multi hand tracking module

How can we modify mediapipe code to get real time gesture recognition of a basic set of gestures. I ran multi hand tracking apk but it could not recognise basic gestures as promised in…
Apoorv Pandey
  • 11
  • 1
  • 3
-1
votes
0 answers

Finding distance from camera using SolvePnp

I am trying to find distance of a person from the camera in a video using landmarks and cv2.solvePnp function. Ideally I want to get distance in some real world unit like metres/cm/mm I have used Mediapipe pose detector to find 2d and 3d landmarks…
-1
votes
1 answer

Cannot import .task file in Next.js + Typescript

I tried to import model.task file in App.tsx file, but it shows some errors. I trained hand gesture recognition model and exported it to model.task file using Python. And I'm going to import it in App.tsx which is Next.js + Typescript…
-1
votes
1 answer

How to Implement Multi-hand Gesture Recognition with Mediapipe Model Maker

I am working on Hand Gesture Classification. I came across Google's Hand Gesture Recognizer which uses Mediapipe Model Maker (e.g: "from mediapipe_model_maker import gesture_recognizer") to train the model and generates .task file which I use on…
-1
votes
1 answer

got a value error while working with opencv

this is my code import cv2 from cvzone.HandTrackingModule import HandDetector import keyboard import time from pynput.keyboard import Controller import datetime import pyautogui wcam ,hcam = 640,480 framer = 150 cap =…
-1
votes
3 answers

How to achieve realistic lip color change using OpenCV and Mediapipe?

I need help with changing the lip color of a person in a video using Mediapipe. I've used Mediapipe for facial landmark detection and tracking, but I'm not sure how to proceed with changing the lip color. I couldn't find any resources on how to…
-1
votes
1 answer

How to solve the Index error: tuple index out of range

I have this code for taking measurements of a human body using a web camera. But I'm keep having the following error. Traceback (most recent call last): File "c:/Users/user/Desktop/Body detect/measurements4.py", line 23, in results =…
Anji_Ishu
  • 1
  • 1
-1
votes
1 answer

Mediapipe holistic model detection

AttributeError: module 'mediapipe.python.solutions.holistic' has no attribute 'LEFT_HAND_LANDMARKS' I am trying to use left hand landmarks in mediapipe holistic model but it gives error that it has no attribute of LEFT_HAND_LANDMARKS I were…
-1
votes
2 answers

zsh: illegal hardware instruction mediapipe and openCV error

I keep running into this error and can't fix it. I spoke with many people and they are not sure what to do. My code is below. This is very simple code that should open my webcam and display the live video. I am using python 3.8.0 on a M1 Mac 64 bit…
Skrilzz
  • 1
  • 1
-1
votes
1 answer

No file or directory found at mp_hand_gesture

import cv2 import numpy as np import mediapipe as mp import tensorflow as tf from tensorflow.keras.models import load_model I have these imports in my code, i installed mediapipe and tensorflow and when I run my code I get this message "OSError: No…
-1
votes
1 answer

Bazel framework throws “could not inspect application package” when added to Xcode App

I'm building MediaPipe based face recognition lib using Bazel, I'm using apple_xcframework bazel rule. This creates a dynamic xcframework, which I then share to other devs who add it to their XCode projects (Apps). They do this by adding my…
ImShrey
  • 380
  • 4
  • 12
-1
votes
1 answer

How to convert Normalized Device Coordinates to pixel coordinates for canvas on Android?

I'm using Mediapipe framework to detect hands and i want to display own image on finger's landmark. The library provides landmarks in form of "Normalized Device Coordinate"(0...1). So i need to convert these coordinates to device(phone) coordinates…
kulvinder
  • 529
  • 5
  • 17
-1
votes
2 answers

Combining two scripts [ Mirroring the webcam ]

Dear friends in Stack overflow, I have problems in combining these two scripts in my virtual Keyboard project. The project is based on Python 3 and OpenCV. Please help. Details of import CVZone 1.41 Mediapipe 0.88 Script 1: import cv2 from time…
ngkenx98
  • 3
  • 2