void Update() { poseNet.Invoke(webcamTexture); results = poseNet.GetResults(); debugText.text = poseNet.GetInfo(); cameraView.material = poseNet.transformMat; }
void Update() { poseNet.Invoke(webcamTexture); results = poseNet.GetResults(); cameraView.material = poseNet.transformMat; // cameraView.texture = poseNet.inputTex; }
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); }
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(); } }
private void Invoke(Texture texture) { poseNet.Invoke(texture); results = poseNet.GetResults(); cameraView.material = poseNet.transformMat; }