Skip to content

TypeScript SDK Reference / VitalSignCameraCreationProps

Interface: VitalSignCameraCreationProps

Defines the properties for creating the vital sign camera component.

Properties

checkBrightness?

checkBrightness?: boolean

False to disable brightness check.


config

config: VitalSignEngineConfig

The config of the vital sign engine.


customConditionRange?

customConditionRange?: CustomConditionRange

The customized range of scanning conditions.


device?

device?: string

The device ID of the camera.


disableAgeEstimation?

disableAgeEstimation?: boolean

True if age estimation is disabled.


enableBeautyAnalysis?

enableBeautyAnalysis?: boolean

True if beauty analysis is enabled, default is false. Note: Age estimation will also be enabled if beauty analysis is enabled.


faceApiModelPath?

faceApiModelPath?: string

The path of the Face API models.


faceDetectionModelLocation?

faceDetectionModelLocation?: FaceDetectionModelLocation

The location of the face detection model.


faceDetectionRegion?

faceDetectionRegion?: FaceDetectionRegion

The region of the face detection.


faceDetectionSamplingInterval?

faceDetectionSamplingInterval?: number

The time interval in milliseconds of sampling face detection result. Default is 2000ms. If it is undefined, the face detection result will be sampled at the same rate as the face detection rate.


faceDetectorType?

faceDetectorType?: FaceDetectorType

The type of the face detector.


isActive

isActive: boolean

True if the camera is activated.


maxFaceDetectionFps?

maxFaceDetectionFps?: number

Maximum face detection rate.


maxFps?

maxFps?: number

Maximum camera capturing rate.


onCameraDevicesUpdated?

onCameraDevicesUpdated?: (event) => void

The call back function that observes the camera devices updated event.

Parameters

event: CameraDevicesUpdatedEvent

Returns

void


onError?

onError?: (error) => void

The call back function that observes errors.

Parameters

error: unknown

Returns

void


onInitialized?

onInitialized?: () => void

The call back function that observes the initialized event.

Returns

void


onTransformUpdated?

onTransformUpdated?: (transform) => void

The call back function that observes the transform updated event.

Parameters

transform: TransformXStyle

Returns

void


onVideoFrameProcessed?

onVideoFrameProcessed?: (event) => void

The call back function that observes the video frame processed event.

Parameters

event: VideoFrameProcessedEvent

Returns

void


onVideoSettingsUpdated?

onVideoSettingsUpdated?: (event) => void

The call back function that observes the video settings updated event.

Parameters

event: VideoSettingsUpdatedEvent

Returns

void


preferredCamera?

preferredCamera?: string

The device id of the preferred camera.


presetFormat?

presetFormat?: PresetFormat

The preset camera resolution.


userInfo

userInfo: UserInfo

The info of the user doing the scan.


visualizationOptions?

visualizationOptions?: VisualizationOptions

The options for enabling visualization such as bounding box or face mesh.