private void Start() { deepLab = new DeepLab(fileName, compute); var webCamInput = GetComponent <WebCamInput>(); webCamInput.OnTextureUpdate.AddListener(OnTextureUpdate); }
void Start() { string path = Path.Combine(Application.streamingAssetsPath, fileName); deepLab = new DeepLab(path, compute); // Init camera string cameraName = WebCamUtil.FindName(); webcamTexture = new WebCamTexture(cameraName, 640, 480, 30); webcamTexture.Play(); cameraView.texture = webcamTexture; }
void Start() { string path = Path.Combine(Application.streamingAssetsPath, fileName); deepLab = new DeepLab(path, compute); // Init camera string cameraName = WebCamUtil.FindName(); webcamTexture = new WebCamTexture(cameraName, 640, 480, 30); webcamTexture.Play(); var resizeOptions = deepLab.ResizeOptions; resizeOptions.rotationDegree = webcamTexture.videoRotationAngle; deepLab.ResizeOptions = resizeOptions; }
void Start() { // Init camera string cameraName = WebCamUtil.FindName(); webcamTexture = new WebCamTexture(cameraName, 640, 480, 30); webcamTexture.Play(); camTexture = WebCamTexture2D(webcamTexture); // ML string path = Path.Combine(Application.streamingAssetsPath, fileName); deepLab = new DeepLab(path, compute); deeplabTexture = new Texture2D(webcamTexture.width, webcamTexture.height, TextureFormat.ARGB32, false); var resizeOptions = deepLab.ResizeOptions; resizeOptions.rotationDegree = webcamTexture.videoRotationAngle; deepLab.ResizeOptions = resizeOptions; //startThred(); }