Skip to content

Commit 9437483

Browse files
MediaPipe Teamjqtang
MediaPipe Team
authored and
jqtang
committed
Project import generated by Copybara.
GitOrigin-RevId: 5aca6b3f07b67e09988a901f50f595ca5f566e67
1 parent d030c13 commit 9437483

File tree

116 files changed

+6284
-391
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+6284
-391
lines changed

Diff for: .bazelrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Basic build settings
44
build --jobs 128
55
build --define='absl=1'
6-
build --cxxopt='-std=c++11'
6+
build --cxxopt='-std=c++14'
77
build --copt='-Wno-sign-compare'
88
build --copt='-Wno-unused-function'
99
build --copt='-Wno-uninitialized'

Diff for: README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ A web-based visualizer is hosted on [viz.mediapipe.dev](https://viz.mediapipe.de
4141
* [MediaPipe: A Framework for Building Perception Pipelines](https://arxiv.org/abs/1906.08172)
4242

4343
## Events
44-
* [ML Conference, Berlin 9-11 Dec 2019](https://mlconference.ai/machine-learning-advanced-development/mediapipe-building-real-time-cross-platform-mobile-web-edge-desktop-video-audio-ml-pipelines/)
44+
* [MediaPipe Madrid Meetup, 16 Dec 2019](https://www.meetup.com/Madrid-AI-Developers-Group/events/266329088/)
45+
* [MediaPipe London Meetup, Google 123 Building, 12 Dec 2019](https://www.meetup.com/London-AI-Tech-Talk/events/266329038)
46+
* [ML Conference, Berlin, 11 Dec 2019](https://mlconference.ai/machine-learning-advanced-development/mediapipe-building-real-time-cross-platform-mobile-web-edge-desktop-video-audio-ml-pipelines/)
47+
* [MediaPipe Berlin Meetup, Google Berlin, 11 Dec 2019](https://www.meetup.com/Berlin-AI-Tech-Talk/events/266328794/)
4548
* [The 3rd Workshop on YouTube-8M Large Scale Video Understanding Workshop](https://research.google.com/youtube8m/workshop2019/index.html) Seoul, Korea ICCV 2019
4649
* [AI DevWorld 2019](https://aidevworld.com) on Oct 10 in San Jose, California
4750
* [Google Industry Workshop at ICIP 2019](http://2019.ieeeicip.org/?action=page4&id=14#Google) [Presentation](https://docs.google.com/presentation/d/e/2PACX-1vRIBBbO_LO9v2YmvbHHEt1cwyqH6EjDxiILjuT0foXy1E7g6uyh4CesB2DkkEwlRDO9_lWfuKMZx98T/pub?start=false&loop=false&delayms=3000&slide=id.g556cc1a659_0_5) on Sept 24 in Taipei, Taiwan

Diff for: WORKSPACE

+8-23
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ http_archive(
1010
sha256 = "2ef429f5d7ce7111263289644d233707dba35e39696377ebab8b0bc701f7818e",
1111
)
1212
load("@bazel_skylib//lib:versions.bzl", "versions")
13-
versions.check(minimum_bazel_version = "0.24.1",
14-
maximum_bazel_version = "0.29.1")
13+
versions.check(minimum_bazel_version = "0.24.1")
1514

1615
# ABSL cpp library.
1716
http_archive(
@@ -104,9 +103,9 @@ http_archive(
104103
],
105104
)
106105

107-
# 2019-08-15
108-
_TENSORFLOW_GIT_COMMIT = "67def62936e28f97c16182dfcc467d8d1cae02b4"
109-
_TENSORFLOW_SHA256= "ddd4e3c056e7c0ff2ef29133b30fa62781dfbf8a903e99efb91a02d292fa9562"
106+
# 2019-11-12
107+
_TENSORFLOW_GIT_COMMIT = "a5f9bcd64453ff3d1f64cb4da4786db3d2da7f82"
108+
_TENSORFLOW_SHA256= "f2b6f2ab2ffe63e86eccd3ce4bea6b7197383d726638dfeeebcdc1e7de73f075"
110109
http_archive(
111110
name = "org_tensorflow",
112111
urls = [
@@ -115,13 +114,6 @@ http_archive(
115114
],
116115
strip_prefix = "tensorflow-%s" % _TENSORFLOW_GIT_COMMIT,
117116
sha256 = _TENSORFLOW_SHA256,
118-
patches = [
119-
"@//third_party:tensorflow_065c20bf79253257c87bd4614bb9a7fdef015cbb.diff",
120-
"@//third_party:tensorflow_f67fcbefce906cd419e4657f0d41e21019b71abd.diff",
121-
],
122-
patch_args = [
123-
"-p1",
124-
],
125117
)
126118

127119
load("@org_tensorflow//tensorflow:workspace.bzl", "tf_workspace")
@@ -255,18 +247,11 @@ android_sdk_repository(
255247

256248
# iOS basic build deps.
257249

258-
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
259-
260-
git_repository(
250+
http_archive(
261251
name = "build_bazel_rules_apple",
262-
remote = "https://github.com/bazelbuild/rules_apple.git",
263-
tag = "0.18.0",
264-
patches = [
265-
"@//third_party:rules_apple_c0863d0596ae6b769a29fa3fb72ff036444fd249.diff",
266-
],
267-
patch_args = [
268-
"-p1",
269-
],
252+
sha256 = "bdc8e66e70b8a75da23b79f1f8c6207356df07d041d96d2189add7ee0780cf4e",
253+
strip_prefix = "rules_apple-b869b0d3868d78a1d4ffd866ccb304fb68aa12c3",
254+
url = "https://github.com/bazelbuild/rules_apple/archive/b869b0d3868d78a1d4ffd866ccb304fb68aa12c3.tar.gz",
270255
)
271256

272257
load(

Diff for: mediapipe/calculators/core/BUILD

+122-3
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
# limitations under the License.
1414
#
1515

16+
load("//mediapipe/framework/port:build_config.bzl", "mediapipe_cc_proto_library")
17+
1618
licenses(["notice"]) # Apache 2.0
1719

1820
package(default_visibility = ["//visibility:private"])
1921

20-
load("//mediapipe/framework/port:build_config.bzl", "mediapipe_cc_proto_library")
21-
2222
proto_library(
2323
name = "concatenate_vector_calculator_proto",
2424
srcs = ["concatenate_vector_calculator.proto"],
@@ -79,6 +79,13 @@ proto_library(
7979
],
8080
)
8181

82+
proto_library(
83+
name = "clip_vector_size_calculator_proto",
84+
srcs = ["clip_vector_size_calculator.proto"],
85+
visibility = ["//visibility:public"],
86+
deps = ["//mediapipe/framework:calculator_proto"],
87+
)
88+
8289
mediapipe_cc_proto_library(
8390
name = "packet_cloner_calculator_cc_proto",
8491
srcs = ["packet_cloner_calculator.proto"],
@@ -111,6 +118,14 @@ mediapipe_cc_proto_library(
111118
deps = [":concatenate_vector_calculator_proto"],
112119
)
113120

121+
mediapipe_cc_proto_library(
122+
name = "clip_vector_size_calculator_cc_proto",
123+
srcs = ["clip_vector_size_calculator.proto"],
124+
cc_deps = ["//mediapipe/framework:calculator_cc_proto"],
125+
visibility = ["//visibility:public"],
126+
deps = [":clip_vector_size_calculator_proto"],
127+
)
128+
114129
mediapipe_cc_proto_library(
115130
name = "dequantize_byte_array_calculator_cc_proto",
116131
srcs = ["dequantize_byte_array_calculator.proto"],
@@ -169,6 +184,66 @@ cc_test(
169184
],
170185
)
171186

187+
cc_library(
188+
name = "begin_loop_calculator",
189+
srcs = ["begin_loop_calculator.cc"],
190+
hdrs = ["begin_loop_calculator.h"],
191+
visibility = ["//visibility:public"],
192+
deps = [
193+
"//mediapipe/framework:calculator_context",
194+
"//mediapipe/framework:calculator_contract",
195+
"//mediapipe/framework:calculator_framework",
196+
"//mediapipe/framework:collection_item_id",
197+
"//mediapipe/framework:packet",
198+
"//mediapipe/framework/formats:landmark_cc_proto",
199+
"//mediapipe/framework/formats:rect_cc_proto",
200+
"//mediapipe/framework/port:integral_types",
201+
"//mediapipe/framework/port:ret_check",
202+
"//mediapipe/framework/port:status",
203+
"@com_google_absl//absl/memory",
204+
],
205+
alwayslink = 1,
206+
)
207+
208+
cc_library(
209+
name = "end_loop_calculator",
210+
srcs = ["end_loop_calculator.cc"],
211+
hdrs = ["end_loop_calculator.h"],
212+
visibility = ["//visibility:public"],
213+
deps = [
214+
"//mediapipe/framework:calculator_context",
215+
"//mediapipe/framework:calculator_contract",
216+
"//mediapipe/framework:calculator_framework",
217+
"//mediapipe/framework:collection_item_id",
218+
"//mediapipe/framework:packet",
219+
"//mediapipe/framework/formats:landmark_cc_proto",
220+
"//mediapipe/framework/formats:rect_cc_proto",
221+
"//mediapipe/framework/port:integral_types",
222+
"//mediapipe/framework/port:ret_check",
223+
"//mediapipe/framework/port:status",
224+
"//mediapipe/util:render_data_cc_proto",
225+
],
226+
alwayslink = 1,
227+
)
228+
229+
cc_test(
230+
name = "begin_end_loop_calculator_graph_test",
231+
srcs = ["begin_end_loop_calculator_graph_test.cc"],
232+
deps = [
233+
":begin_loop_calculator",
234+
":end_loop_calculator",
235+
"//mediapipe/calculators/core:packet_cloner_calculator",
236+
"//mediapipe/framework:calculator_context",
237+
"//mediapipe/framework:calculator_contract",
238+
"//mediapipe/framework:calculator_framework",
239+
"//mediapipe/framework/port:gtest_main",
240+
"//mediapipe/framework/port:integral_types",
241+
"//mediapipe/framework/port:parse_text_proto",
242+
"//mediapipe/framework/port:status",
243+
"@com_google_absl//absl/memory",
244+
],
245+
)
246+
172247
cc_library(
173248
name = "concatenate_vector_calculator",
174249
srcs = ["concatenate_vector_calculator.cc"],
@@ -219,6 +294,50 @@ cc_test(
219294
],
220295
)
221296

297+
cc_library(
298+
name = "clip_vector_size_calculator",
299+
srcs = ["clip_vector_size_calculator.cc"],
300+
hdrs = ["clip_vector_size_calculator.h"],
301+
visibility = ["//visibility:public"],
302+
deps = [
303+
":clip_vector_size_calculator_cc_proto",
304+
"//mediapipe/framework:calculator_framework",
305+
"//mediapipe/framework/formats:rect_cc_proto",
306+
"//mediapipe/framework/port:ret_check",
307+
"//mediapipe/framework/port:status",
308+
"@org_tensorflow//tensorflow/lite:framework",
309+
],
310+
alwayslink = 1,
311+
)
312+
313+
cc_library(
314+
name = "clip_detection_vector_size_calculator",
315+
srcs = ["clip_detection_vector_size_calculator.cc"],
316+
visibility = ["//visibility:public"],
317+
deps = [
318+
":clip_vector_size_calculator",
319+
"//mediapipe/framework:calculator_framework",
320+
"//mediapipe/framework/formats:detection_cc_proto",
321+
],
322+
alwayslink = 1,
323+
)
324+
325+
cc_test(
326+
name = "clip_vector_size_calculator_test",
327+
srcs = ["clip_vector_size_calculator_test.cc"],
328+
deps = [
329+
":clip_vector_size_calculator",
330+
"//mediapipe/calculators/core:packet_resampler_calculator_cc_proto",
331+
"//mediapipe/framework:calculator_framework",
332+
"//mediapipe/framework:calculator_runner",
333+
"//mediapipe/framework:timestamp",
334+
"//mediapipe/framework/port:gtest_main",
335+
"//mediapipe/framework/port:parse_text_proto",
336+
"//mediapipe/framework/port:status",
337+
"@com_google_absl//absl/strings",
338+
],
339+
)
340+
222341
cc_library(
223342
name = "counting_source_calculator",
224343
srcs = ["counting_source_calculator.cc"],
@@ -300,7 +419,7 @@ cc_library(
300419
"//visibility:public",
301420
],
302421
deps = [
303-
"//mediapipe/calculators/core:packet_cloner_calculator_cc_proto",
422+
":packet_cloner_calculator_cc_proto",
304423
"//mediapipe/framework:calculator_framework",
305424
"@com_google_absl//absl/strings",
306425
],

0 commit comments

Comments
 (0)