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.
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.
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.
Error handling and exceptions
This represents an error thrown by the VIVE AI Glasses SDK.