48 lines
1.4 KiB
Python
48 lines
1.4 KiB
Python
|
# Copyright 2020 The MediaPipe Authors.
|
||
|
#
|
||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||
|
# you may not use this file except in compliance with the License.
|
||
|
# You may obtain a copy of the License at
|
||
|
#
|
||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||
|
#
|
||
|
# Unless required by applicable law or agreed to in writing, software
|
||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
|
# See the License for the specific language governing permissions and
|
||
|
# limitations under the License.
|
||
|
|
||
|
load("//mediapipe/framework:encode_binary_proto.bzl", "encode_binary_proto")
|
||
|
|
||
|
licenses(["notice"])
|
||
|
|
||
|
package(default_visibility = ["//visibility:public"])
|
||
|
|
||
|
encode_binary_proto(
|
||
|
name = "axis",
|
||
|
input = "axis.pbtxt",
|
||
|
message_type = "mediapipe.face_geometry.Mesh3d",
|
||
|
output = "axis.binarypb",
|
||
|
deps = [
|
||
|
"//mediapipe/modules/face_geometry/protos:mesh_3d_proto",
|
||
|
],
|
||
|
)
|
||
|
|
||
|
encode_binary_proto(
|
||
|
name = "glasses",
|
||
|
input = "glasses.pbtxt",
|
||
|
message_type = "mediapipe.face_geometry.Mesh3d",
|
||
|
output = "glasses.binarypb",
|
||
|
deps = [
|
||
|
"//mediapipe/modules/face_geometry/protos:mesh_3d_proto",
|
||
|
],
|
||
|
)
|
||
|
|
||
|
# `.pngblob` is used instead of `.png` to prevent iOS build from preprocessing the image.
|
||
|
# OpenCV is unable to read a PNG file preprocessed by the iOS build.
|
||
|
exports_files([
|
||
|
"axis.pngblob",
|
||
|
"facepaint.pngblob",
|
||
|
"glasses.pngblob",
|
||
|
])
|