void Update()
    {
        CaptureAndPrepareTexture(camTexture, ref displayingTex);

        var boxes = yolo.Run(displayingTex);

        DrawResults(boxes, displayingTex);
        imageRenderer.texture = displayingTex;
    }
    void Update()
    {
        fpsCounter.Update();

        CaptureAndPrepareTexture(camTexture, ref displayingTex);

        var boxes = yolo.Run(displayingTex);

        DrawBoundingBox(boxes);
        imageRenderer.texture = displayingTex;

        string resultText = "";

        resultText = "FPS:" + fpsCounter.FPS.ToString("F2");
        text.text  = resultText;
    }