예제 #1
0
 private void Awake()
 {
     // Enable openpose log to unity
     OPAPI.OPEnableDebug(true);
     // Configure openpose with default value
     OPAPI.OPConfigure();
     // Enable receiving output and send the callback function
     OPAPI.OPSetOutputCallback(true, OPOutput);
     // Start openpose
     OPAPI.OPRun();
 }
예제 #2
0
 private void OnDestroy()
 {
     // Stop openpose
     OPAPI.OPShutdown();
 }