Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to turn off the automatic pop-up gesture in gesture recognition #5350

Open
327635328 opened this issue Apr 26, 2024 · 2 comments
Open

How to turn off the automatic pop-up gesture in gesture recognition #5350

327635328 opened this issue Apr 26, 2024 · 2 comments
Assignees
Labels
os:linux-non-arm Issues on linux distributions which run on x86-64 architecture. DOES NOT include ARM devices. platform:python MediaPipe Python issues task:gesture recognition Issues related to hand gesture recognition: Identify and recognize hand gestures type:support General questions

Comments

@327635328
Copy link

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

None

OS Platform and Distribution

linux

MediaPipe Tasks SDK version

0.10.11

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

A pattern automatically appears when I bizzan

Describe the expected behaviour

All I want is a spot on my hand

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

I just want the coordinate points on the hand, how to turn off the automatic pop-up gesture pattern in the model

base_options = python.BaseOptions(model_asset_path='hand_landmarker.task',delegate=mp.tasks.BaseOptions.Delegate.GPU)

...

mp_image = mp.Image(image_format=mp.ImageFormat.SRGB, data=img_rgb)
    detection_result = detector.detect(mp_image)
annotated_image = draw_landmarks_on_image(mp_image.numpy_view(), detection_result)
    
def draw_landmarks_on_image(rgb_image, detection_result):
  hand_landmarks_list = detection_result.hand_landmarks
  handedness_list = detection_result.handedness

  print(hand_landmarks_list)
  annotated_image = np.copy(rgb_image)
  return annotated_image

Other info / Complete Logs

No response

@327635328
Copy link
Author

image

@327635328
Copy link
Author

Seems to be using gesture_recognizer.task, Am I right?.but i do not how to use canned_gesture_classifier_options
options = vision.GestureRecognizerOptions(base_options=base_options,
num_hands=1,
canned_gesture_classifier_options=???)

@kuaashish kuaashish assigned kuaashish and unassigned ayushgdev Apr 30, 2024
@kuaashish kuaashish added os:linux-non-arm Issues on linux distributions which run on x86-64 architecture. DOES NOT include ARM devices. task:gesture recognition Issues related to hand gesture recognition: Identify and recognize hand gestures platform:python MediaPipe Python issues type:support General questions labels Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
os:linux-non-arm Issues on linux distributions which run on x86-64 architecture. DOES NOT include ARM devices. platform:python MediaPipe Python issues task:gesture recognition Issues related to hand gesture recognition: Identify and recognize hand gestures type:support General questions
Projects
None yet
Development

No branches or pull requests

3 participants