SetWhiteBalanceG() public method

public SetWhiteBalanceG ( int value ) : void
value int
return void
Exemplo n.º 1
0
    // ------ Function ------

    // Use this for initialization
    void Awake()
    {
        //Open camera
        if (OvrPro.Open(cameraMode, ARsize))
        {
            if (overlaySettings)
            {
                OvrPro.SetExposure(conf_exposure);
                OvrPro.SetGain(conf_gain);
                OvrPro.SetBLC(conf_blc);
                OvrPro.SetWhiteBalanceAutoMode(conf_wb_auto);
                if (!conf_wb_auto)
                {
                    OvrPro.SetWhiteBalanceR(conf_wb_r);
                    OvrPro.SetWhiteBalanceG(conf_wb_g);
                    OvrPro.SetWhiteBalanceB(conf_wb_b);
                }
                Thread.Sleep(100);
            }
        }
        else
        {
            Debug.LogError("Ovrvision open error!!");
        }
    }
Exemplo n.º 2
0
    public void UpdateOvrvisionSetting()
    {
        if (!ovrPro.camStatus)
        {
            return;
        }

        //set config
        {
            ovrPro.SetExposure(settings.conf_exposure);
            ovrPro.SetGain(settings.conf_gain);
            ovrPro.SetBLC(settings.conf_blc);
            ovrPro.SetWhiteBalanceR(settings.conf_wb_r);
            ovrPro.SetWhiteBalanceG(settings.conf_wb_g);
            ovrPro.SetWhiteBalanceB(settings.conf_wb_b);
            ovrPro.SetWhiteBalanceAutoMode(settings.conf_wb_auto);
        }
        Thread.Sleep(100);
    }