captureImage()
Captures a single image with the specified quality settings.
int captureImage(ImageQuality quality)
Parameters
quality
This specifies the resolution and compression for images taken using the VIVE AI Glasses camera.
Return value
0 if function calling is successful; otherwise, -1 .
Exception
The following exceptions may be thrown:: UnregisteredAppException, GlassesPermissionDeniedException.
Permissions
Camera permission is required before calling captureImage().
See also
Responding from VIVE AI Glasses event
void onImageCaptured (CaptureEvent event, ImagePayload payload)
Tells the callback function that the raw image data captured from the VIVE AI Glasses camera has been received.
Permissions
void requestPermission()
Requests permission to access VIVE AI Glasses resources.
PermissionResult checkPermission()
Checks if the app has been granted the required permissions.
Enumerations
enum CaptureEvent
This indicates whether the image capture process succeeded or failed.
enum ImageQuality
This defines the resolution and compression for images taken using the VIVE AI Glasses camera.
enum Permission
This defines the permission that the app is requesting.
enum PermissionResult
This indicates the result of the permission request.
Error handling and exceptions
This represents an error thrown by the VIVE AI Glasses SDK.