Exemplo n.º 1
0
 void Update()
 {
     poseNet.Invoke(webcamTexture);
     results             = poseNet.GetResults();
     debugText.text      = poseNet.GetInfo();
     cameraView.material = poseNet.transformMat;
 }
Exemplo n.º 2
0
    void Update()
    {
        poseNet.Invoke(webcamTexture);
        results = poseNet.GetResults();

        cameraView.material = poseNet.transformMat;
        // cameraView.texture = poseNet.inputTex;
    }
Exemplo n.º 3
0
    void Update()
    {
        poseNet.Invoke(webcamTexture);
        results = poseNet.GetResults();

        // set uv
        cameraView.material = poseNet.transformMat;
        // cameraView.uvRect = TextureToTensor.GetUVRect(
        //     (float)webcamTexture.width / webcamTexture.height,
        //     1,
        //     TextureToTensor.AspectMode.Fill);
    }
Exemplo n.º 4
0
    void Update()
    {
        if (runBackground)
        {
            if (task.Status.IsCompleted())
            {
                task = InvokeAsync();
            }
        }
        else
        {
            poseNet.Invoke(webcamTexture);
            results             = poseNet.GetResults();
            cameraView.material = poseNet.transformMat;
        }

        if (results != null)
        {
            DrawResult();
        }
    }
Exemplo n.º 5
0
 private void Invoke(Texture texture)
 {
     poseNet.Invoke(texture);
     results             = poseNet.GetResults();
     cameraView.material = poseNet.transformMat;
 }