美颜 module 目录结构

This commit is contained in:
Wang.Renzhu 2022-07-13 17:39:23 +08:00
parent 6a8b3e3cc6
commit a3493e691b
13 changed files with 108 additions and 0 deletions

View File

@ -0,0 +1,21 @@
cc_library(
name = "FaceMeshGPULibrary",
copts = ["-std=c++17"],
srcs = ["face_mesh_module.hpp"],
hdrs = ["face_mesh_module.cpp"],
data = [
"//mediapipe/graphs/face_mesh:face_mesh_mobile_gpu.binarypb",
"//mediapipe/modules/face_detection:face_detection_short_range.tflite",
"//mediapipe/modules/face_landmark:face_landmark_with_attention.tflite",
],
deps = [
"//mediapipe/render/module/common:olamodule_common_library",
] + select({
"//mediapipe:ios_i386": [],
"//mediapipe:ios_x86_64": [],
"//conditions:default": [
"//mediapipe/graphs/face_mesh:mobile_calculators",
"//mediapipe/framework/formats:landmark_cc_proto",
],
}),
)

View File

@ -0,0 +1,12 @@
#include "face_mesh_module.hpp"
#include "mediapipe/render/core/Filter.hpp"
namespace OlaPipe {
FaceMeshModule::FaceMeshModule() {
}
FaceMeshModule::~FaceMeshModule() {
}
}

View File

@ -0,0 +1,9 @@
#include "mediapipe/render/module/common/OlaGraph.hpp"
namespace OlaPipe {
class FaceMeshModule {
public:
FaceMeshModule();
~FaceMeshModule();
};
}

View File

View File

@ -0,0 +1,37 @@
load("//mediapipe/framework/tool:mediapipe_graph.bzl", "mediapipe_binary_graph")
package(default_visibility = ["//visibility:private"])
cc_library(
name = "olamodule_common_library",
srcs = ["OlaGraph.cpp"],
hdrs = ["OlaGraph.hpp"],
visibility = ["//mediapipe/framework:mediapipe_internal"],
deps = [
"//mediapipe/framework:calculator_framework",
"//mediapipe/framework:mediapipe_profiling",
"//mediapipe/framework/formats:image",
"//mediapipe/framework/port:map_util",
"//mediapipe/framework/port:ret_check",
"//mediapipe/framework/port:source_location",
"//mediapipe/framework/port:status",
"//mediapipe/framework/port:statusor",
"//mediapipe/framework/port:threadpool",
"//mediapipe/gpu:gl_base",
"//mediapipe/gpu:gpu_buffer",
"//mediapipe/gpu:gpu_shared_data_internal",
"//mediapipe/gpu:graph_support",
"//mediapipe/gpu:pixel_buffer_pool_util",
"//mediapipe/util:cpu_util",
"//mediapipe/render/core:core",
"@com_google_absl//absl/base:core_headers",
"@com_google_absl//absl/memory",
"@com_google_absl//absl/strings",
"@com_google_absl//absl/synchronization",
"@google_toolbox_for_mac//:GTM_Defines",
] + select({
"//mediapipe:ios": [
"//mediapipe/objc:CFHolder",
"//mediapipe/objc:Weakify",
"//mediapipe/objc:util",
],
}),
)

View File

@ -0,0 +1,20 @@
#include <atomic>
#include "OlaGraph.hpp"
#include "absl/memory/memory.h"
#include "mediapipe/framework/calculator_framework.h"
#include "mediapipe/framework/formats/image.h"
#include "mediapipe/framework/formats/image_frame.h"
#include "mediapipe/framework/graph_service.h"
#include "mediapipe/gpu/gl_base.h"
#include "mediapipe/gpu/gpu_shared_data_internal.h"
namespace OlaPipe {
OlaGraph::OlaGraph() {
}
OlaGraph::~OlaGraph() {
}
}

View File

@ -0,0 +1,9 @@
#include "mediapipe/framework/calculator_framework.h"
namespace OlaPipe {
class OlaGraph {
public:
OlaGraph();
~OlaGraph();
};
}