diff --git a/mediapipe/tasks/cc/vision/face_detector/BUILD b/mediapipe/tasks/cc/vision/face_detector/BUILD index 8fd171dab..fbfd94628 100644 --- a/mediapipe/tasks/cc/vision/face_detector/BUILD +++ b/mediapipe/tasks/cc/vision/face_detector/BUILD @@ -13,8 +13,7 @@ # limitations under the License. package(default_visibility = [ - # "//mediapipe/tasks:internal", - "//visibility:public", + "//mediapipe/tasks:internal", ]) licenses(["notice"]) @@ -63,6 +62,7 @@ cc_library( name = "face_detector", srcs = ["face_detector.cc"], hdrs = ["face_detector.h"], + visibility = ["//visibility:public"], deps = [ ":face_detector_graph", "//mediapipe/framework/api2:builder", diff --git a/mediapipe/tasks/cc/vision/face_landmarker/BUILD b/mediapipe/tasks/cc/vision/face_landmarker/BUILD index e4756aab1..16de2271a 100644 --- a/mediapipe/tasks/cc/vision/face_landmarker/BUILD +++ b/mediapipe/tasks/cc/vision/face_landmarker/BUILD @@ -123,6 +123,7 @@ cc_library( name = "face_landmarker_result", srcs = ["face_landmarker_result.cc"], hdrs = ["face_landmarker_result.h"], + visibility = ["//visibility:public"], deps = [ "//mediapipe/framework/formats:classification_cc_proto", "//mediapipe/framework/formats:landmark_cc_proto", @@ -137,6 +138,7 @@ cc_library( name = "face_landmarker", srcs = ["face_landmarker.cc"], hdrs = ["face_landmarker.h"], + visibility = ["//visibility:public"], deps = [ ":face_landmarker_graph", ":face_landmarker_result", @@ -164,20 +166,6 @@ cc_library( ], ) -cc_library( - name = "face_landmarker_result_cc", - srcs = ["face_landmarker_result.cc"], - hdrs = ["face_landmarker_result.h"], - deps = [ - "//mediapipe/framework/formats:classification_cc_proto", - "//mediapipe/framework/formats:landmark_cc_proto", - "//mediapipe/framework/formats:matrix", - "//mediapipe/framework/formats:matrix_data_cc_proto", - "//mediapipe/tasks/cc/components/containers:classification_result", - "//mediapipe/tasks/cc/components/containers:landmark", - ], -) - cc_library( name = "face_landmarker_graph", srcs = ["face_landmarker_graph.cc"], diff --git a/mediapipe/tasks/cc/vision/face_stylizer/BUILD b/mediapipe/tasks/cc/vision/face_stylizer/BUILD index afc348174..72182f0c5 100644 --- a/mediapipe/tasks/cc/vision/face_stylizer/BUILD +++ b/mediapipe/tasks/cc/vision/face_stylizer/BUILD @@ -61,6 +61,7 @@ cc_library( name = "face_stylizer", srcs = ["face_stylizer.cc"], hdrs = ["face_stylizer.h"], + visibility = ["//visibility:public"], deps = [ ":face_stylizer_graph", # buildcleaner:keep "//mediapipe/framework/api2:builder", diff --git a/mediapipe/tasks/cc/vision/interactive_segmenter/BUILD b/mediapipe/tasks/cc/vision/interactive_segmenter/BUILD index 0a91b97e6..d02b5db36 100644 --- a/mediapipe/tasks/cc/vision/interactive_segmenter/BUILD +++ b/mediapipe/tasks/cc/vision/interactive_segmenter/BUILD @@ -22,6 +22,7 @@ cc_library( name = "interactive_segmenter", srcs = ["interactive_segmenter.cc"], hdrs = ["interactive_segmenter.h"], + visibility = ["//visibility:public"], deps = [ ":interactive_segmenter_graph", "//mediapipe/framework:calculator_cc_proto", diff --git a/mediapipe/tasks/python/text/BUILD b/mediapipe/tasks/python/text/BUILD index fa5e70b63..27100b2b4 100644 --- a/mediapipe/tasks/python/text/BUILD +++ b/mediapipe/tasks/python/text/BUILD @@ -23,7 +23,6 @@ py_library( srcs = [ "text_classifier.py", ], - visibility = ["//mediapipe/tasks:users"], deps = [ "//mediapipe/python:packet_creator", "//mediapipe/python:packet_getter", diff --git a/mediapipe/tasks/python/vision/BUILD b/mediapipe/tasks/python/vision/BUILD index dcd28dcf5..958cf0e0d 100644 --- a/mediapipe/tasks/python/vision/BUILD +++ b/mediapipe/tasks/python/vision/BUILD @@ -158,10 +158,6 @@ py_library( srcs = [ "hand_landmarker.py", ], - visibility = [ - "//mediapipe/model_maker/python/vision/gesture_recognizer:__subpackages__", - "//mediapipe/tasks:internal", - ], deps = [ "//mediapipe/framework/formats:classification_py_pb2", "//mediapipe/framework/formats:landmark_py_pb2",