diff --git a/mediapipe/render/module/beauty/BUILD b/mediapipe/render/module/beauty/BUILD index e69de29bb..515b24cde 100644 --- a/mediapipe/render/module/beauty/BUILD +++ b/mediapipe/render/module/beauty/BUILD @@ -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", + ], + }), +) \ No newline at end of file diff --git a/mediapipe/render/module/beauty/face_mesh_beauty_render.cpp b/mediapipe/render/module/beauty/face_mesh_beauty_render.cpp new file mode 100644 index 000000000..e69de29bb diff --git a/mediapipe/render/module/beauty/face_mesh_beauty_render.hpp b/mediapipe/render/module/beauty/face_mesh_beauty_render.hpp new file mode 100644 index 000000000..e69de29bb diff --git a/mediapipe/render/module/beauty/face_mesh_beauty_render_imp.cpp b/mediapipe/render/module/beauty/face_mesh_beauty_render_imp.cpp new file mode 100644 index 000000000..e69de29bb diff --git a/mediapipe/render/module/beauty/face_mesh_beauty_render_imp.hpp b/mediapipe/render/module/beauty/face_mesh_beauty_render_imp.hpp new file mode 100644 index 000000000..e69de29bb diff --git a/mediapipe/render/module/beauty/face_mesh_module.cpp b/mediapipe/render/module/beauty/face_mesh_module.cpp new file mode 100644 index 000000000..5b6c262fd --- /dev/null +++ b/mediapipe/render/module/beauty/face_mesh_module.cpp @@ -0,0 +1,12 @@ +#include "face_mesh_module.hpp" +#include "mediapipe/render/core/Filter.hpp" + +namespace OlaPipe { + FaceMeshModule::FaceMeshModule() { + + } + + FaceMeshModule::~FaceMeshModule() { + + } +} \ No newline at end of file diff --git a/mediapipe/render/module/beauty/face_mesh_module.hpp b/mediapipe/render/module/beauty/face_mesh_module.hpp new file mode 100644 index 000000000..8e6a186e5 --- /dev/null +++ b/mediapipe/render/module/beauty/face_mesh_module.hpp @@ -0,0 +1,9 @@ +#include "mediapipe/render/module/common/OlaGraph.hpp" + +namespace OlaPipe { + class FaceMeshModule { + public: + FaceMeshModule(); + ~FaceMeshModule(); + }; +} \ No newline at end of file diff --git a/mediapipe/render/module/beauty/ios/BUILD b/mediapipe/render/module/beauty/ios/BUILD new file mode 100644 index 000000000..e69de29bb diff --git a/mediapipe/render/module/beauty/ios/OlaFaceUnity.h b/mediapipe/render/module/beauty/ios/OlaFaceUnity.h new file mode 100644 index 000000000..e69de29bb diff --git a/mediapipe/render/module/beauty/ios/OlaFaceUnity.mm b/mediapipe/render/module/beauty/ios/OlaFaceUnity.mm new file mode 100644 index 000000000..e69de29bb diff --git a/mediapipe/render/module/common/BUILD b/mediapipe/render/module/common/BUILD new file mode 100644 index 000000000..6e1cb4a9a --- /dev/null +++ b/mediapipe/render/module/common/BUILD @@ -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", + ], + }), +) \ No newline at end of file diff --git a/mediapipe/render/module/common/OlaGraph.cpp b/mediapipe/render/module/common/OlaGraph.cpp new file mode 100644 index 000000000..85c3d5140 --- /dev/null +++ b/mediapipe/render/module/common/OlaGraph.cpp @@ -0,0 +1,20 @@ +#include +#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() { + + } +} \ No newline at end of file diff --git a/mediapipe/render/module/common/OlaGraph.hpp b/mediapipe/render/module/common/OlaGraph.hpp new file mode 100644 index 000000000..0c45e594d --- /dev/null +++ b/mediapipe/render/module/common/OlaGraph.hpp @@ -0,0 +1,9 @@ +#include "mediapipe/framework/calculator_framework.h" + +namespace OlaPipe { + class OlaGraph { + public: + OlaGraph(); + ~OlaGraph(); + }; +} \ No newline at end of file