-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
10 changed files
with
1,276 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
# This contains the MediaPipe Hand Landmarker Task. | ||
# | ||
# This task takes video frames and outputs synchronized frames along with | ||
# the detection results for one or more holistic categories, using Hand Landmarker. | ||
|
||
load("//mediapipe/framework/port:build_config.bzl", "mediapipe_ts_declaration", "mediapipe_ts_library") | ||
load("@npm//@bazel/jasmine:index.bzl", "jasmine_node_test") | ||
|
||
package(default_visibility = ["//mediapipe/tasks:internal"]) | ||
|
||
licenses(["notice"]) | ||
|
||
mediapipe_ts_library( | ||
name = "holistic_landmarker", | ||
srcs = ["holistic_landmarker.ts"], | ||
visibility = ["//visibility:public"], | ||
deps = [ | ||
":holistic_landmarker_types", | ||
"//mediapipe/framework:calculator_jspb_proto", | ||
"//mediapipe/framework:calculator_options_jspb_proto", | ||
"//mediapipe/framework/formats:classification_jspb_proto", | ||
"//mediapipe/framework/formats:landmark_jspb_proto", | ||
"//mediapipe/tasks/cc/core/proto:base_options_jspb_proto", | ||
"//mediapipe/tasks/cc/vision/face_detector/proto:face_detector_graph_options_jspb_proto", | ||
"//mediapipe/tasks/cc/vision/face_landmarker/proto:face_landmarks_detector_graph_options_jspb_proto", | ||
"//mediapipe/tasks/cc/vision/hand_landmarker/proto:hand_landmarks_detector_graph_options_jspb_proto", | ||
"//mediapipe/tasks/cc/vision/hand_landmarker/proto:hand_roi_refinement_graph_options_jspb_proto", | ||
"//mediapipe/tasks/cc/vision/holistic_landmarker/proto:holistic_landmarker_graph_options_jspb_proto", | ||
"//mediapipe/tasks/cc/vision/pose_detector/proto:pose_detector_graph_options_jspb_proto", | ||
"//mediapipe/tasks/cc/vision/pose_landmarker/proto:pose_landmarks_detector_graph_options_jspb_proto", | ||
"//mediapipe/tasks/web/components/containers:category", | ||
"//mediapipe/tasks/web/components/containers:classification_result", | ||
"//mediapipe/tasks/web/components/containers:landmark", | ||
"//mediapipe/tasks/web/components/processors:classifier_result", | ||
"//mediapipe/tasks/web/components/processors:landmark_result", | ||
"//mediapipe/tasks/web/core", | ||
"//mediapipe/tasks/web/vision/core:image_processing_options", | ||
"//mediapipe/tasks/web/vision/core:vision_task_runner", | ||
"//mediapipe/web/graph_runner:graph_runner_ts", | ||
], | ||
) | ||
|
||
mediapipe_ts_declaration( | ||
name = "holistic_landmarker_types", | ||
srcs = [ | ||
"holistic_landmarker_options.d.ts", | ||
"holistic_landmarker_result.d.ts", | ||
], | ||
visibility = ["//visibility:public"], | ||
deps = [ | ||
"//mediapipe/tasks/web/components/containers:category", | ||
"//mediapipe/tasks/web/components/containers:classification_result", | ||
"//mediapipe/tasks/web/components/containers:landmark", | ||
"//mediapipe/tasks/web/components/containers:matrix", | ||
"//mediapipe/tasks/web/core", | ||
"//mediapipe/tasks/web/vision/core:mask", | ||
"//mediapipe/tasks/web/vision/core:vision_task_options", | ||
], | ||
) | ||
|
||
mediapipe_ts_library( | ||
name = "holistic_landmarker_test_lib", | ||
testonly = True, | ||
srcs = [ | ||
"holistic_landmarker_test.ts", | ||
], | ||
deps = [ | ||
":holistic_landmarker", | ||
":holistic_landmarker_types", | ||
"//mediapipe/framework:calculator_jspb_proto", | ||
"//mediapipe/framework/formats:classification_jspb_proto", | ||
"//mediapipe/tasks/cc/vision/holistic_landmarker/proto:holistic_landmarker_graph_options_jspb_proto", | ||
"//mediapipe/tasks/web/components/processors:landmark_result", | ||
"//mediapipe/tasks/web/core", | ||
"//mediapipe/tasks/web/core:task_runner_test_utils", | ||
"//mediapipe/tasks/web/vision/core:vision_task_runner", | ||
], | ||
) | ||
|
||
jasmine_node_test( | ||
name = "holistic_landmarker_test", | ||
tags = ["nomsan"], | ||
deps = [":holistic_landmarker_test_lib"], | ||
) |
Oops, something went wrong.