Tutorial
Working in progress
Alex
2023:11
Assets > Import Package > Custom Package
and select the OpenPose SDK folder that you extracted earlier.Import
to import the OpenPose SDK into your Unity project.Additionally in the ZIP there is a demo project, such that you can better understand how open pose works with unity
Edit > Project Settings > Player
and select the XR Settings
tab.Virtual Reality Supported
option and add “OpenPose” to the Virtual Reality SDKs
list.Publishing Settings
, add “OpenPose” to the list of target platforms and “Windows” to the list of target SDKs.OpenPose > OpenPose Manager
) and add it to the scene.OpenPose > OpenPose Receiver
) and add it to the scene.Calibrate
button in the Inspector
window.Assets > Create > C# Script
) and name it “OpenPoseExample”.csharp using UnityEngine; using OpenPose; public class OpenPoseExample : MonoBehaviour { private OpenPoseReceiver receiver; void Start() { receiver = GetComponent<OpenPoseReceiver>(); } void Update() { // Get the current pose data from OpenPose var poseData = receiver.GetPoseData(); // Print the pose data to the console Debug.Log("Pose Data:"); Debug.Log($"Body Index: {poseData.BodyIndex}"); Debug.Log($"Hand Index: {poseData.HandIndex}"); Debug.Log($"Finger Index: {poseData.FingerIndex}"); Debug.Log($"Pose Confidence: {poseData.PoseConfidence}"); } }
Follow the on-screen instructions to test the OpenPose camera.