👨‍💻
MYTY
MYTY SDK
MYTY SDK
  • MYTY SDK
  • How to use MYTY SDK?
    • Create Unity Project
    • Import MYTY Kit
    • Import MYTY SDK
    • Build MYTY SDK
    • Create Scene
  • MYTY SDK Interface
    • Load Avatar
    • Select Avatar
    • Choose View Mode
    • Control Avatar (Mediapipe)
    • Control Avatar (ARKit)
  • For Web Application
    • Interacting with browser scripting
    • Integrate with React Project
  • React Example
    • Handle WebGL view & interaction
    • Choose Video Device for input
    • Handle Mediapipe Holistic
    • Capture & Record
  • For iOS Application
    • Interact with native iOS application
    • Integrate with Flutter Project
    • Trouble Shooting (Flutter Integration)
  • Flutter Example
    • Handle UnityWidget & interaction
    • Use ARKit Plugin
  • Avatar Registry(API)
    • Overview
    • Getting Started
    • Auth & Rate Limit
    • Legacy - v0
  • Resources
    • License Agreement
    • Version Note (SDK vs Kit)
    • Display Logo
Powered by GitBook
On this page
  • Background
  • Input parameters
  • Face
  • Pose
  • Width
  • Height
  • Example Usage
  1. MYTY SDK Interface

Control Avatar (Mediapipe)

Describe how to control MYTY Avatar movement with Mediapipe

Background

We should provide motion captured results to MYTY Avatars to make them mimic us. This interface shows how to deliver the Mediapipe results.

Input parameters

Face

Motion captured result of face

Pose

Motion captured result of pose

Width

Width of camera reference

Height

Height of camera reference

Example Usage

function OnHolisticResult(result: Results)
{
  const motionData = {
    face: result.faceLandmarks,
    pose: result.poseLandmarks,
    width: cameraRef.current?.videoWidth,
    height: cameraRef.current?.videoHeight
  }
  sendMessage("MessageHandler", "ProcessCapturedResult", JSON.stringify(motionData));
}
PreviousChoose View ModeNextControl Avatar (ARKit)

Last updated 2 years ago