41 lines
2.0 KiB
Python
41 lines
2.0 KiB
Python
# This contains the MediaPipe Gesture Recognizer Task.
|
|
#
|
|
# This task takes video frames and outputs synchronized frames along with
|
|
# the detection results for one or more gesture categories, using Gesture Recognizer.
|
|
|
|
load("//mediapipe/framework/port:build_config.bzl", "mediapipe_ts_library")
|
|
|
|
package(default_visibility = ["//mediapipe/tasks:internal"])
|
|
|
|
licenses(["notice"])
|
|
|
|
mediapipe_ts_library(
|
|
name = "gesture_recognizer",
|
|
srcs = [
|
|
"gesture_recognizer.ts",
|
|
"gesture_recognizer_options.d.ts",
|
|
"gesture_recognizer_result.d.ts",
|
|
],
|
|
deps = [
|
|
"//mediapipe/framework:calculator_jspb_proto",
|
|
"//mediapipe/framework:calculator_options_jspb_proto",
|
|
"//mediapipe/framework/formats:classification_jspb_proto",
|
|
"//mediapipe/framework/formats:landmark_jspb_proto",
|
|
"//mediapipe/framework/formats:rect_jspb_proto",
|
|
"//mediapipe/tasks/cc/vision/gesture_recognizer/proto:gesture_classifier_graph_options_jspb_proto",
|
|
"//mediapipe/tasks/cc/vision/gesture_recognizer/proto:gesture_recognizer_graph_options_jspb_proto",
|
|
"//mediapipe/tasks/cc/vision/gesture_recognizer/proto:hand_gesture_recognizer_graph_options_jspb_proto",
|
|
"//mediapipe/tasks/cc/vision/hand_detector/proto:hand_detector_graph_options_jspb_proto",
|
|
"//mediapipe/tasks/cc/vision/hand_landmarker/proto:hand_landmarker_graph_options_jspb_proto",
|
|
"//mediapipe/tasks/cc/vision/hand_landmarker/proto:hand_landmarks_detector_graph_options_jspb_proto",
|
|
"//mediapipe/tasks/web/components/containers:category",
|
|
"//mediapipe/tasks/web/components/containers:landmark",
|
|
"//mediapipe/tasks/web/components/processors:base_options",
|
|
"//mediapipe/tasks/web/components/processors:classifier_options",
|
|
"//mediapipe/tasks/web/core",
|
|
"//mediapipe/tasks/web/core:classifier_options",
|
|
"//mediapipe/tasks/web/core:task_runner",
|
|
"//mediapipe/web/graph_runner:wasm_mediapipe_lib_ts",
|
|
],
|
|
)
|