By jobigoud
on Mon, 01/23/2017 - 21:05
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
Thanks for pointing this out,
Thanks for pointing this out, yes you are correct that this is not functional as it is. We will be looking into it.
Is this still an open issue
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