-
Notifications
You must be signed in to change notification settings - Fork 8
/
BUILD
80 lines (71 loc) · 2.62 KB
/
BUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
licenses(["notice"]) # Apache 2.0
#package(default_visibility = ["//mediapipe/examples:__subpackages__"])
package(default_visibility = ["//visibility:public"])
# Linux only
cc_binary(
name = "hand_tracking_gpu",
deps = [
"//gestop:hand_tracking_landmarks",
"//mediapipe/graphs/hand_tracking:mobile_calculators",
],
)
cc_binary(
name = "hand_tracking_cpu",
deps = [
"//gestop:hand_tracking_landmarks_cpu",
"//mediapipe/graphs/hand_tracking:desktop_tflite_calculators",
],
)
cc_proto_library(
name = "landmarkList_cc_proto",
deps = [":landmarkList_proto"],
)
proto_library(
name = "landmarkList_proto",
srcs = ["gestop/proto/landmarkList.proto"],
)
# Linux only.
# Must have a GPU with EGL support:
# ex: sudo apt-get install mesa-common-dev libegl1-mesa-dev libgles2-mesa-dev
# (or similar nvidia/amd equivalent)
cc_library(
name = "hand_tracking_landmarks",
srcs = ["gestop/keypoint_gen/hand_tracking_landmarks.cc"],
deps = [
":landmarkList_cc_proto",
"//mediapipe/framework/formats:landmark_cc_proto",
"//mediapipe/framework/formats:classification_cc_proto",
"//mediapipe/framework:calculator_framework",
"//mediapipe/framework/formats:image_frame",
"//mediapipe/framework/formats:image_frame_opencv",
"//mediapipe/framework/port:commandlineflags",
"//mediapipe/framework/port:file_helpers",
"//mediapipe/framework/port:opencv_highgui",
"//mediapipe/framework/port:opencv_imgproc",
"//mediapipe/framework/port:opencv_video",
"//mediapipe/framework/port:parse_text_proto",
"//mediapipe/framework/port:status",
"//mediapipe/gpu:gl_calculator_helper",
"//mediapipe/gpu:gpu_buffer",
"//mediapipe/gpu:gpu_shared_data_internal",
],
)
cc_library(
name = "hand_tracking_landmarks_cpu",
srcs = ["gestop/keypoint_gen/hand_tracking_landmarks_cpu.cc"],
deps = [
":landmarkList_cc_proto",
"//mediapipe/framework/formats:landmark_cc_proto",
"//mediapipe/framework/formats:classification_cc_proto",
"//mediapipe/framework:calculator_framework",
"//mediapipe/framework/formats:image_frame",
"//mediapipe/framework/formats:image_frame_opencv",
"//mediapipe/framework/port:commandlineflags",
"//mediapipe/framework/port:file_helpers",
"//mediapipe/framework/port:opencv_highgui",
"//mediapipe/framework/port:opencv_imgproc",
"//mediapipe/framework/port:opencv_video",
"//mediapipe/framework/port:parse_text_proto",
"//mediapipe/framework/port:status",
],
)