예제 #1
0
    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;
    }
예제 #2
0
    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;
    }
예제 #3
0
    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;
    }