From 659fb3616f4fe772ad66f251b0d307f3878fa7c8 Mon Sep 17 00:00:00 2001 From: wongfei Date: Sat, 9 Oct 2021 14:53:12 +0300 Subject: [PATCH] add cpp example --- Content/MediaPipe/Maps/CppExample.umap | Bin 0 -> 37641 bytes Source/MediaPipeDemo/MediaPipeCppExample.cpp | 67 +++++++++++++++++++ Source/MediaPipeDemo/MediaPipeCppExample.h | 27 ++++++++ Source/MediaPipeDemo/MediaPipeDemo.Build.cs | 28 ++++---- 4 files changed, 106 insertions(+), 16 deletions(-) create mode 100644 Content/MediaPipe/Maps/CppExample.umap create mode 100644 Source/MediaPipeDemo/MediaPipeCppExample.cpp create mode 100644 Source/MediaPipeDemo/MediaPipeCppExample.h diff --git a/Content/MediaPipe/Maps/CppExample.umap b/Content/MediaPipe/Maps/CppExample.umap new file mode 100644 index 0000000000000000000000000000000000000000..782ced483fd505a7dbc9b942bd0b0bde240bb1e9 GIT binary patch literal 37641 zcmeHw349bq(|1QeLoPLh?)ZrI%bQ4|yv z6ckZBP(VQiyipWHP!K#o@jxF>1TWA>6z_`w^3}hmYj(1m*+d@n_5EJj-=ur0YPzbc zs;jGehV}U=edh1pzkmPe7D60(n2_ZN`g`~E-;dintajSbA52`-``Ogwz69G^yQBB% zS@(W2?yY0y?fj^3k7EheDeq`|O-}Jx_g(I(JC@$`aeIPYds5fYR}XhRyzT81AAI-a zoo&w~Soe2|=RP;Q*OIK(-Dbae)sxO%1bcV&{&^!~hUZ*$T({4rExGyZBMFuk-2294 z$5Q*pC(ODf5ZkrmX$0FcjYjwpCgE&mh=?8A7z8I^XBjs5)Ha#0asP zu5NT^OH3G)6z|AL%t~}PG82;%?1K{r#b*r6Od4n(WVa6zL?>o+7os=SJNi>ERPX8` z#0_ae;vTmNv68Nhbj`eafoIN{eQb9RER1=x(3zTZ?yjf1>>QPO*W#&d+D#pK3;IGo z5TK>#EDjU(&-^5gC&-y+j>t?rvrzMB&Vbf0v46rKNg%|?b3d~ppvPpn@2;t@ps|xA zX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W74e(E^bqer51!UnD7SG=&R~%Mi}+EmY89d zm{FFP{+5`03rvjh%f^wib+>qivJy+oa0^U~7+`_Xf8z+qNC^@xpJAtZLs76-E>uhL zW(AL^&Qy-psO7&>&6IQ zBp?b~*Jr0P(81UA`T@~N)e&zP(l^bg=`_N(DlC{p_=^uXesgkrG#ps9C0JR zz<~wkc*}K;ko-C)e4V>V^(bbk#z0kvFU>Kcp9O|~XU-CnW{IKi>t%`L6K8=D;!I17 z(*hGCMq6O$f5mHoi4j9AF&A54=*Jc;Ffmb5Cr)WDSI;(*)z&+%utpBecvm4KavL}V zcb}z*_@s$*)6W!K{?sD3o2rjd1iaAm{Q|28>pOfn`-fRaWnA@5&o|%6xj6e+Mab{C ac$Xo6II+S1ld$2BbMa{K`14cx%>RGBE8GeI literal 0 HcmV?d00001 diff --git a/Source/MediaPipeDemo/MediaPipeCppExample.cpp b/Source/MediaPipeDemo/MediaPipeCppExample.cpp new file mode 100644 index 0000000..9ae7508 --- /dev/null +++ b/Source/MediaPipeDemo/MediaPipeCppExample.cpp @@ -0,0 +1,67 @@ +#include "MediaPipeCppExample.h" +#include "DrawDebugHelpers.h" + +AMediaPipeCppExample::AMediaPipeCppExample() +{ + PrimaryActorTick.bCanEverTick = true; + + Root = CreateDefaultSubobject(TEXT("RootComponent")); + Pipeline = CreateDefaultSubobject(TEXT("Pipeline")); + Observer = CreateDefaultSubobject(TEXT("Observer")); + + Pipeline->PipelineName = TEXT("pipe0"); + Pipeline->GraphNodes.Add(TEXT("pose_landmarks")); + + Observer->PipelineName = TEXT("pipe0"); + Observer->StreamName = TEXT("pose_world_landmarks"); + Observer->LandmarkListType = EMediaPipeLandmarkListType::LandmarkList; + Observer->AxisX = EMediaPipeLandmarkAxisMapping::Z; + Observer->AxisY = EMediaPipeLandmarkAxisMapping::X; + Observer->AxisZ = EMediaPipeLandmarkAxisMapping::NegY; + Observer->WorldScale = FVector(100, 100, 100); + Observer->MinVisibility = 0.5; + Observer->MinPresence = 0.5; + + Pipeline->AddObserver(Observer); +} + +void AMediaPipeCppExample::OnConstruction(const FTransform& Transform) +{ + Super::OnConstruction(Transform); + RegisterAllComponents(); +} + +void AMediaPipeCppExample::BeginPlay() +{ + Super::BeginPlay(); + Pipeline->Start(); +} + +void AMediaPipeCppExample::EndPlay(const EEndPlayReason::Type EndPlayReason) +{ + Pipeline->Stop(); + Super::EndPlay(EndPlayReason); +} + +void AMediaPipeCppExample::Tick(float DeltaSeconds) +{ + if (Observer && Observer->HaveDetections()) + { + int ObjectId = 0; + const auto& Landmarks = Observer->GetLandmarkList(ObjectId); + const int Count = Landmarks.Num(); + + auto* World = GetWorld(); + auto Transform = GetActorTransform(); + + for (int i = 0; i < Count; i++) + { + const auto& L = Landmarks[i]; + if ((L.Visibility > Observer->MinVisibility) && (L.Presence > Observer->MinPresence)) + { + auto Pos = Transform.TransformPosition(L.Pos); + DrawDebugPoint(World, Pos, 10.0f, FColor(255, 0, 0)); + } + } + } +} diff --git a/Source/MediaPipeDemo/MediaPipeCppExample.h b/Source/MediaPipeDemo/MediaPipeCppExample.h new file mode 100644 index 0000000..30d0e21 --- /dev/null +++ b/Source/MediaPipeDemo/MediaPipeCppExample.h @@ -0,0 +1,27 @@ +#pragma once + +#include "MediaPipePipelineComponent.h" +#include "MediaPipeLandmarkObserverComponent.h" +#include "MediaPipeCppExample.generated.h" + +UCLASS(ClassGroup="MediaPipe") +class AMediaPipeCppExample : public AActor +{ + GENERATED_BODY() + +public: + AMediaPipeCppExample(); + void OnConstruction(const FTransform& Transform) override; + void BeginPlay() override; + void EndPlay(const EEndPlayReason::Type EndPlayReason) override; + void Tick(float DeltaSeconds) override; + + UPROPERTY() + USceneComponent* Root = nullptr; + + UPROPERTY() + UMediaPipePipelineComponent* Pipeline = nullptr; + + UPROPERTY() + UMediaPipeLandmarkObserverComponent* Observer = nullptr; +}; diff --git a/Source/MediaPipeDemo/MediaPipeDemo.Build.cs b/Source/MediaPipeDemo/MediaPipeDemo.Build.cs index b546ca5..1fa70a3 100644 --- a/Source/MediaPipeDemo/MediaPipeDemo.Build.cs +++ b/Source/MediaPipeDemo/MediaPipeDemo.Build.cs @@ -1,23 +1,19 @@ -// Fill out your copyright notice in the Description page of Project Settings. - using UnrealBuildTool; public class MediaPipeDemo : ModuleRules { - public MediaPipeDemo(ReadOnlyTargetRules Target) : base(Target) - { - PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs; - - PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore" }); - - PrivateDependencyModuleNames.AddRange(new string[] { }); + public MediaPipeDemo(ReadOnlyTargetRules Target) : base(Target) + { + PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs; - // Uncomment if you are using Slate UI - // PrivateDependencyModuleNames.AddRange(new string[] { "Slate", "SlateCore" }); - - // Uncomment if you are using online features - // PrivateDependencyModuleNames.Add("OnlineSubsystem"); + PublicDependencyModuleNames.AddRange(new string[] { + "Core", + "CoreUObject", + "Engine", + "InputCore", + "MediaPipe" + }); - // To include OnlineSubsystemSteam, add it to the plugins section in your uproject file with the Enabled attribute set to true - } + PrivateDependencyModuleNames.AddRange(new string[] { }); + } }