Log in or register to post comments

Advanced Camera API from Java

January 23, 2017 - 12:48pm #1

Hi,

I'm trying to use the advanced camera API from the Java side. This is on Vuforia 6.2.6 on a Galaxy S6. Can you confirm that the Java wrapper of this API is functional?

I can enumerate the field keys and types but when trying to call CameraDevice.getFieldString() I always get back the String I pass in value.

I use the following test code:

CameraDevice cameraDevice = CameraDevice.getInstance();
int numFields = cameraDevice.getNumFields();
for (int i = 0; i < numFields; i++)
{
  CameraField field = new CameraField();
  boolean gotField = cameraDevice.getCameraField(i, field);
  if (!gotField)
    continue;

  String key = field.getKey();
  int type = field.getType();
  Log.i(LOGTAG, "key: " + key + ", type: " + type + ".");

  if (type != CameraField.DataType.TypeString)
    continue;

  String value = "";
  long maxLength = 64;
  boolean gotValue = cameraDevice.getFieldString(key, value, maxLength);
  if (gotValue)
    Log.i(LOGTAG, "- value: " + value);
}

I assume the value string is filled in and not re-assigned, as the caller still has the original reference.

Thanks

Advanced Camera API from Java

April 25, 2017 - 1:34pm #3

Is this still an open issue for Vuforia 6.2.10? All my attempts using the Java wrapper to access Advanced Camera API have failed, see Camera behaviour

Advanced Camera API from Java

February 22, 2017 - 11:35am #2

Thanks for pointing this out, yes you are correct that this is not functional as it is.  We will be looking into it.

Log in or register to post comments