Home > @magiclane/maps-sdk > Camera

Camera class

Camera frame sensor data.

Provides camera frame data, including configuration metadata and raw/processed image buffers. Typically used for computer vision or video recording features.

Sensor Data Source

Signature:

export declare class Camera extends GemAutoreleaseObject implements SenseData 

Extends: GemAutoreleaseObject

Implements: SenseData

Remarks

The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the Camera class.

Properties

Property

Modifiers

Type

Description

acquisitionTime

readonly

Date

Acquisition time

cameraConfiguration

readonly

CameraConfiguration

The camera configuration for this frame.

rawCameraBuffer

readonly

Uint8Array | null

The raw camera buffer in YUV420 NV12 format.

This format is guaranteed only when using the live data source provided by this SDK. If an external or unsupported data source is used, the format is not guaranteed.

rgba8888

readonly

Uint8Array | null

The processed RGBA8888 image data, ready for direct use.

RGBA output is only valid if the original rawCameraBuffer was in YUV420 NV12 format, as guaranteed when using the live data source from this SDK.

type

readonly

DataType

Get data type

Methods

Method

Modifiers

Description

toJson()

Serialize to JSON