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 |
|---|---|---|---|
|
|
Date |
Acquisition time | |
|
|
The camera configuration for this frame. | ||
|
|
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. | |
|
|
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. | |
|
|
Get data type |
Methods
|
Method |
Modifiers |
Description |
|---|---|---|
|
Serialize to JSON |