コード例 #1
0
    private void Start()
    {
        segmentation = new MeetSegmentation(fileName, compute);

        var webCamInput = GetComponent <WebCamInput>();

        webCamInput.OnTextureUpdate.AddListener(OnTextureUpdate);
    }
コード例 #2
0
    void Start()
    {
        string path = Path.Combine(Application.streamingAssetsPath, fileName);

        segmentation = new MeetSegmentation(path, compute);

        // Init camera
        string cameraName = WebCamUtil.FindName();

        webcamTexture = new WebCamTexture(cameraName, 1280, 720, 30);
        webcamTexture.Play();
        cameraView.texture = webcamTexture;
    }