예제 #1
0
 private void Start()
 {
     // Configure openpose with default value
     OPWrapper.OPConfigureAllInDefault();
     // Enable openpose log to unity
     OPWrapper.OPEnableDebug(true);
     // Enable openpose output to unity
     OPWrapper.OPEnableOutput(true);
     // Start openpose
     OPWrapper.OPRun();
 }
예제 #2
0
 private void Start()
 {
     // Configure OpenPose with default value,
     //OPWrapper.OPConfigureAllInDefault();
     // or using specific configuration for each
     UserConfigureOpenPose();
     // Enable OpenPose run multi-thread (default true)
     OPWrapper.OPEnableMultiThread(true);
     // Enable OpenPose log to unity (default true)
     OPWrapper.OPEnableDebug(true);
     // Enable OpenPose output to unity (default true)
     OPWrapper.OPEnableOutput(true);
     // Enable receiving image (default false)
     OPWrapper.OPEnableImageOutput(renderBgImg);
     // Start OpenPose
     OPWrapper.OPRun();
 }
예제 #3
0
        private IEnumerator UserRebootOpenPoseCoroutine()
        {
            if (OPWrapper.state == OPState.None)
            {
                yield break;
            }
            // Shutdown if running
            if (OPWrapper.state == OPState.Running)
            {
                OPWrapper.OPShutdown();
            }
            // Wait until fully stopped
            yield return(new WaitUntil(() => { return OPWrapper.state == OPState.Ready; }));

            // Configure and start
            UserConfigureOpenPose();
            OPWrapper.OPRun();
        }
예제 #4
0
        private void Start()
        {
            // Register callbacks
            OPWrapper.OPRegisterCallbacks();
            // Enable OpenPose log to unity (default true)
            OPWrapper.OPEnableDebug(true);
            // Enable OpenPose output to unity (default true)
            OPWrapper.OPEnableOutput(true);
            // Enable receiving image (default false)
            OPWrapper.OPEnableImageOutput(renderBgImg);

            // Configure OpenPose with default value, or using specific configuration for each
            /* OPWrapper.OPConfigureAllInDefault(); */
            UserConfigureOpenPose();

            // Start OpenPose
            OPWrapper.OPRun();
        }
예제 #5
0
        private void Start()
        {
            // Register callbacks
            OPWrapper.OPRegisterCallbacks();
            // Enable OpenPose log to unity (default true)
            OPWrapper.OPEnableDebug(true);
            // Enable OpenPose output to unity (default true)
            OPWrapper.OPEnableOutput(true);
            // Enable receiving image (default false)
            OPWrapper.OPEnableImageOutput(true);

            // Configure OpenPose with default value, or using specific configuration for each
            /* OPWrapper.OPConfigureAllInDefault(); */
            UserConfigureOpenPose();

            // Start OpenPose
            OPWrapper.OPRun();

            patientInfo   = GameObject.Find("Text");
            patientLabels = GameObject.Find("Label");
            redScene      = GameObject.Find("RedScene");
            labelBG       = GameObject.Find("Labelbg");
            labelBG.SetActive(false);
        }