Skip to main content

Camera

Camera frames and still images, depth, segmentation, and front/back camera events.

Commonly used

Guides

All APIs in this topic

Reference assets and other modules with a script input, require modules with require('LensStudio:<name>'), and create events with script.createEvent('<name>').

Components, assets, and modules

APIDescription
CameraModule SPECSProvides access to the SPECS cameras.
DepthModuleProvides access to a DepthFrameSession on Spectacles device.
SegmentationModelSegmentation model used for SegmentationTextureProvider.

Events

APIDescription
CameraBackEventTriggered when the device's back facing camera becomes active.
CameraFrontEventTriggered when the device's front facing camera becomes active.

Objects and data

APIDescription
CameraFrame SPECSMetadata about the current camera image of a CameraTextureProvider.
CameraTextureProvider SPECS
DepthFrameDataThe depth frame data as provided by the DepthFrameSession.onNewFrame.
DepthFrameSessionUsed for receiving DepthFrameData on Spectacles device.
DepthTextureProviderProvides depth information of the video feed that the Lens is being applied to when available.
DeviceCameraProvides information about the device's camera.
ReverseCameraTextureProviderTexture Provider giving the camera texture that is the opposite of CameraTextureProvider.
SegmentationTextureProviderControls a segmentation texture resource.
WorldDepthTextureProviderProvides depth information of the video feed that the Lens is being applied to when available.