Skip to content

React SDK Reference / VitalSignCameraCreationProps

Interface: VitalSignCameraCreationProps

Defines the properties for creating the vital sign camera component.

Extended by

Properties

ageEstimationConfig?

optional ageEstimationConfig: AgeEstimationConfig

The configuration for age estimation.


checkBrightness?

optional checkBrightness: boolean

False to disable brightness check.


conditionCheckerConfig?

optional conditionCheckerConfig: ConditionCheckerConfig

The configuration for condition checking.


config?

optional config: VitalSignEngineConfig

The config of the vital sign engine.


customConditionRange?

optional customConditionRange: CustomConditionRange

The customized range of scanning conditions.

Deprecated

This property is deprecated and will be removed in a future version. Use ConditionCheckerConfig instead.


device?

optional device: string

The device ID of the camera.


disableAgeEstimation?

optional disableAgeEstimation: boolean

True if age estimation is disabled.


enableBeautyAnalysis?

optional enableBeautyAnalysis: boolean

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


faceApiModelPath?

optional faceApiModelPath: string

The path of the Face API models.


faceDetectionModelLocation?

optional faceDetectionModelLocation: FaceDetectionModelLocation

The location of the face detection model.


faceDetectionRegion?

optional faceDetectionRegion: FaceDetectionRegion

The region of the face detection.


faceDetectionSamplingInterval?

optional 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?

optional faceDetectorType: FaceDetectorType

The type of the face detector.


frameGrabberConfig?

optional frameGrabberConfig: FrameGrabberConfig

The configuration for frame grabbing.


isActive

isActive: boolean

True if the camera is activated.


maxFaceDetectionFps?

optional maxFaceDetectionFps: number

Maximum face detection rate.


maxFps?

optional maxFps: number

Maximum camera capturing rate.


onCameraDevicesUpdated()?

optional onCameraDevicesUpdated: (event) => void

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

Parameters

event

CameraDevicesUpdatedEvent

Returns

void


onError()?

optional onError: (error) => void

The call back function that observes errors.

Parameters

error

unknown

Returns

void


onInitialized()?

optional onInitialized: () => void

The call back function that observes the initialized event.

Returns

void


onPrecisionModeUpdated()?

optional onPrecisionModeUpdated: (event) => void

The call back function that observes the precision mode updated event.

Parameters

event

PrecisionModeUpdatedEvent

Returns

void


onPrecisionModeWillUpdate()?

optional onPrecisionModeWillUpdate: (event) => void

The call back function that observes the precision mode will update event. The function should call the response function with 'proceed' to proceed with the update, or 'wait' to wait.

Parameters

event

PrecisionModeWillUpdateEvent

Returns

void


onTransformUpdated()?

optional onTransformUpdated: (transform) => void

The call back function that observes the transform updated event.

Parameters

transform

TransformXStyle

Returns

void


onVideoFrameProcessed()?

optional onVideoFrameProcessed: (event) => void

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

Parameters

event

VideoFrameProcessedEvent

Returns

void


onVideoSettingsUpdated()?

optional onVideoSettingsUpdated: (event) => void

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

Parameters

event

VideoSettingsUpdatedEvent

Returns

void


precisionMode?

optional precisionMode: PrecisionMode

Precision mode


preferredCamera?

optional preferredCamera: string

The device id of the preferred camera.


presetFormat?

optional presetFormat: PresetFormat

The preset camera resolution.


sdkCredentials?

optional sdkCredentials: SdkCredentials

The SDK credentials for accessing the API.


userInfo

userInfo: UserInfo

The info of the user doing the scan.


visualizationOptions?

optional visualizationOptions: VisualizationOptions

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