void Invoke(Texture texture) { ssd.Invoke(texture); var results = ssd.GetResults(); var size = cameraView.rectTransform.rect.size; for (int i = 0; i < 10; i++) { SetFrame(frames[i], results[i], size); } cameraView.material = ssd.transformMat; }
void Update() { ssd.Invoke(webcamTexture); var results = ssd.GetResults(); var size = cameraView.rectTransform.rect.size; for (int i = 0; i < 10; i++) { SetFrame(frames[i], results[i], size); } cameraView.material = ssd.transformMat; // cameraView.texture = ssd.inputTex; }
void Update() { var resizeOptions = ssd.ResizeOptions; resizeOptions.rotationDegree = webcamTexture.videoRotationAngle; ssd.ResizeOptions = resizeOptions; ssd.Invoke(webcamTexture); var results = ssd.GetResults(); var size = ((RectTransform)cameraView.transform).rect.size; for (int i = 0; i < 10; i++) { SetFrame(frames[i], results[i], size); } cameraView.material = ssd.transformMat; }