Skip to content

GestureRecognizer occasionally has extreme delays (10s–2min) instead of normal ms-level inference #6135

@jlu-D97

Description

@jlu-D97

Have I written custom code (as opposed to using a stock example script provided in MediaPipe)

None

OS Platform and Distribution

Windows11

MediaPipe Tasks SDK version

0.10.21

Task name (e.g. Image classification, Gesture recognition etc.)

Gesture recognition

Programming Language and version (e.g. C++, Python, Java)

Python

Describe the actual behavior

Reading video frames from the webcam and do the gesture recognition, it usually works properly in "real-time", but sometimes it stuck for more than 10 seconds before continuing without any error message.

Describe the expected behaviour

The GestureRecognizer should consistently process each frame in the millisecond range (e.g., under 100ms) as it does in most cases, without sporadic extreme delays (tens of seconds to minutes) during inference.

Standalone code/steps you may have used to try to get what you need

recognizer.recognize(image)

Other info / Complete Logs

Metadata

Metadata

Assignees

Labels

os:windowsMediaPipe issues on Windowsplatform:pythonMediaPipe Python issuestask:gesture recognitionIssues related to hand gesture recognition: Identify and recognize hand gestures

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions