Log in or register to post comments

How to set Camera fields (Exposure,WhiteBalance) using Vuforia 6 sdk

September 13, 2016 - 9:41pm #1

Hello,

According to Advance Camera API in vuforia 6 sdk ,We can set camera parametetrs like Exposure,AWB etc using CameraFields using  following methods given in doucumentation under Advance Camera API section.

https://library.vuforia.com/articles/Solution/What-s-New-in-Vuforia-6

virtual bool setField(const char* key, const char* value) = 0;

    virtual bool setField(const char* key, Vuforia::Int64 value) = 0;

    virtual bool setField(const char* key, float value) = 0;

    virtual bool setField(const char* key, bool value) = 0;

    virtual bool setField(const char* key, Vuforia::Int64 intRange[2]) = 0;

.But I am not able to understand that where and with what values we can set AR camera parameters using above methods .

Thanks in advance.

Ambika

 

 

How to set Camera fields (Exposure,WhiteBalance) using Vuforia 6 sdk

January 6, 2017 - 1:42am #7

Hi

I just want to use advanced camera api for control exposure. I've seen some post and tutorial and just try below code for get camera parameter fields.

IEnumerable<CameraDevice.CameraField> fields = CameraDevice.Instance.GetCameraFields();
foreach (CameraDevice.CameraField f in fields)
{
     Debug.Log("key; " + f.Key + ", type :" + f.Type);
}

Unfortunately. I can get any key in Unity. so I try to Android native code. It works fine.

How to make use advanced camera api? My system like below that.

  • Unity 5.3.5f1
  • Vuforia 6.2.6
  • Android 5.1.1

Please let me know any idea.

Thanks,

How to set Camera fields (Exposure,WhiteBalance) using Vuforia 6 sdk

January 5, 2017 - 7:47pm #6

I have same issue.

What is key for set field?? I've read Android Camera 1 API also. There are many parameters. But I don't understand which is key value.

Is there anyone solved problem????

How to set Camera fields (Exposure,WhiteBalance) using Vuforia 6 sdk

December 19, 2016 - 12:31am #5

Because the fieds can change depending on the device. you should use CameraDevice.Instance.GetCameraFields() to see what fields are available and what type of value each field requires (string, int, float).

Then you will know what fields are availble and change their values using CameraDevice.instance.SetField(fieldname, value).

For example CameraField.Instance.SetField("iso", "1600").

How to set Camera fields (Exposure,WhiteBalance) using Vuforia 6 sdk

December 6, 2016 - 6:13am #4

So anyone knows what key and value to fill in?

How to set Camera fields (Exposure,WhiteBalance) using Vuforia 6 sdk

September 16, 2016 - 12:33am #3

Thank you for response to my query , but I am not able to understand that how and where to use  this method (virtual bool setField(const char* key, const char* value) = 0 ,as given in provided link ) in Vuforia classes in order to set AR Camera Parameters(exposure,AWB etc) and What kind of "key" and "value"  is to given in this method ?

How to set Camera fields (Exposure,WhiteBalance) using Vuforia 6 sdk

September 15, 2016 - 3:29pm #2

Hello,

Here is some more information: https://library.vuforia.com/articles/Solution/Advanced-Camera-API

Thanks.

Log in or register to post comments