fix ios builds
This commit is contained in:
parent
e075792437
commit
b362a482e9
|
@ -161,6 +161,8 @@ objc_library(
|
||||||
hdrs = MPP_HEADERS + MP_GEN_IOS_HEADERS,
|
hdrs = MPP_HEADERS + MP_GEN_IOS_HEADERS,
|
||||||
copts = [
|
copts = [
|
||||||
"-Wno-shorten-64-to-32",
|
"-Wno-shorten-64-to-32",
|
||||||
|
"--std=c++17",
|
||||||
|
|
||||||
# "-all_load",
|
# "-all_load",
|
||||||
],
|
],
|
||||||
data = [
|
data = [
|
||||||
|
|
|
@ -5,21 +5,7 @@
|
||||||
#include "mediapipe/framework/packet.h"
|
#include "mediapipe/framework/packet.h"
|
||||||
#include "registry/calculator_registry.h"
|
#include "registry/calculator_registry.h"
|
||||||
|
|
||||||
//#include "mediapipe/calculators/core/flow_limiter_calculator.h"
|
|
||||||
//#include "mediapipe/calculators/core/constant_side_packet_calculator.h"
|
|
||||||
//#include "mediapipe/modules/pose_landmark/pose_landmark_gpu_linked.h"
|
|
||||||
//#include "mediapipe/graphs/pose_tracking/subgraphs/pose_renderer_gpu_linked.h"
|
|
||||||
//#include "mediapipe/modules/pose_detection/pose_detection_gpu_linked.h"
|
|
||||||
|
|
||||||
void registerCalculators(){
|
|
||||||
// typeid(::mediapipe::FlowLimiterCalculator);
|
|
||||||
// typeid(::mediapipe::ConstantSidePacketCalculator);
|
|
||||||
// typeid(::mediapipe::PoseLandmarkGpu);
|
|
||||||
// typeid(::mediapipe::PoseRendererGpu);
|
|
||||||
// typeid(::mediapipe::PoseDetectionGpu);
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
static const char* kVideoQueueLabel = "com.google.mediapipe.example.videoQueue";
|
static const char* kVideoQueueLabel = "com.google.mediapipe.example.videoQueue";
|
||||||
static const char* kLandmarksOutputStream = "pose_landmarks";
|
static const char* kLandmarksOutputStream = "pose_landmarks";
|
||||||
|
@ -145,7 +131,6 @@ static const char* kLandmarksOutputStream = "pose_landmarks";
|
||||||
|
|
||||||
- (instancetype) initWithPoseTrackingOptions: (PoseTrackingOptions*) poseTrackingOptions{
|
- (instancetype) initWithPoseTrackingOptions: (PoseTrackingOptions*) poseTrackingOptions{
|
||||||
|
|
||||||
registerCalculators();
|
|
||||||
MPPCalculator();
|
MPPCalculator();
|
||||||
self.renderer = [[MPPLayerRenderer alloc] init];
|
self.renderer = [[MPPLayerRenderer alloc] init];
|
||||||
self.renderer.frameScaleMode = MPPFrameScaleModeFillAndCrop;
|
self.renderer.frameScaleMode = MPPFrameScaleModeFillAndCrop;
|
||||||
|
|
|
@ -1,10 +1,20 @@
|
||||||
//
|
//
|
||||||
// Created by Mautisim Munir on 05/11/2022.
|
// Created by Mautisim Munir on 05/11/2022.
|
||||||
//
|
//
|
||||||
|
#include <string>
|
||||||
|
|
||||||
|
#include "mediapipe/calculators/core/constant_side_packet_calculator.pb.h"
|
||||||
|
#include "mediapipe/framework/calculator_framework.h"
|
||||||
|
#include "mediapipe/framework/collection_item_id.h"
|
||||||
|
#include "mediapipe/framework/formats/classification.pb.h"
|
||||||
|
#include "mediapipe/framework/formats/landmark.pb.h"
|
||||||
|
#include "mediapipe/framework/port/canonical_errors.h"
|
||||||
|
#include "mediapipe/framework/port/integral_types.h"
|
||||||
|
#include "mediapipe/framework/port/ret_check.h"
|
||||||
|
#include "mediapipe/framework/port/status.h"
|
||||||
|
#include <functional>
|
||||||
#include "calculator_registry.h"
|
#include "calculator_registry.h"
|
||||||
#include "mediapipe/calculators/core/flow_limiter_calculator.h"
|
#include <typeinfo>
|
||||||
#include "mediapipe/calculators/core/constant_side_packet_calculator.h"
|
|
||||||
|
|
||||||
// We need namespaces for subgraphs because of the static variables inside the files
|
// We need namespaces for subgraphs because of the static variables inside the files
|
||||||
namespace PLG {
|
namespace PLG {
|
||||||
|
@ -52,8 +62,6 @@ namespace TPLS{
|
||||||
|
|
||||||
MPPCalculator::MPPCalculator() {
|
MPPCalculator::MPPCalculator() {
|
||||||
typeid(TPLS::mediapipe::TensorsToPoseLandmarksAndSegmentation);
|
typeid(TPLS::mediapipe::TensorsToPoseLandmarksAndSegmentation);
|
||||||
typeid(::mediapipe::FlowLimiterCalculator);
|
|
||||||
typeid(::mediapipe::ConstantSidePacketCalculator);
|
|
||||||
typeid(PLG::mediapipe::PoseLandmarkGpu);
|
typeid(PLG::mediapipe::PoseLandmarkGpu);
|
||||||
typeid(PRG::mediapipe::PoseRendererGpu);
|
typeid(PRG::mediapipe::PoseRendererGpu);
|
||||||
typeid(PDG::mediapipe::PoseDetectionGpu);
|
typeid(PDG::mediapipe::PoseDetectionGpu);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user