mediapipe icon indicating copy to clipboard operation
mediapipe copied to clipboard

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

Open 327635328 opened this issue 1 year ago • 2 comments

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 avatar Apr 26 '24 01:04 327635328

image

327635328 avatar Apr 26 '24 01:04 327635328

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=???)

327635328 avatar Apr 26 '24 06:04 327635328

Hi @327635328,

Sorry for the delay in responding. Could you please let us know if this issue is still ongoing or if it has been resolved on your end?

Thank you!!

kuaashish avatar Jul 30 '24 09:07 kuaashish

This issue has been marked stale because it has no recent activity since 7 days. It will be closed if no further activity occurs. Thank you.

github-actions[bot] avatar Aug 07 '24 01:08 github-actions[bot]

This issue was closed due to lack of activity after being marked stale for past 7 days.

github-actions[bot] avatar Aug 14 '24 01:08 github-actions[bot]

Are you satisfied with the resolution of your issue? Yes No

google-ml-butler[bot] avatar Aug 14 '24 01:08 google-ml-butler[bot]