React SDK Reference / VitalSignCameraProps
Interface: VitalSignCameraProps
Props for the VitalSignCamera React component. Extends VitalSignCameraCreationProps with React-specific callback props.
Extends
Properties
ageEstimationConfig?
optionalageEstimationConfig:AgeEstimationConfig
The configuration for age estimation.
Inherited from
VitalSignCameraCreationProps.ageEstimationConfig
checkBrightness?
optionalcheckBrightness:boolean
False to disable brightness check.
Inherited from
VitalSignCameraCreationProps.checkBrightness
conditionCheckerConfig?
optionalconditionCheckerConfig:ConditionCheckerConfig
The configuration for condition checking.
Inherited from
VitalSignCameraCreationProps.conditionCheckerConfig
config?
optionalconfig:VitalSignEngineConfig
The config of the vital sign engine.
Inherited from
VitalSignCameraCreationProps.config
customConditionRange?
optionalcustomConditionRange:CustomConditionRange
The customized range of scanning conditions.
Deprecated
This property is deprecated and will be removed in a future version. Use ConditionCheckerConfig instead.
Inherited from
VitalSignCameraCreationProps.customConditionRange
device?
optionaldevice:string
The device ID of the camera.
Inherited from
VitalSignCameraCreationProps.device
disableAgeEstimation?
optionaldisableAgeEstimation:boolean
True if age estimation is disabled.
Inherited from
VitalSignCameraCreationProps.disableAgeEstimation
enableBeautyAnalysis?
optionalenableBeautyAnalysis:boolean
True if beauty analysis is enabled, default is false. Note: Age estimation will also be enabled if beauty analysis is enabled.
Inherited from
VitalSignCameraCreationProps.enableBeautyAnalysis
faceApiModelPath?
optionalfaceApiModelPath:string
The path of the Face API models.
Inherited from
VitalSignCameraCreationProps.faceApiModelPath
faceDetectionModelLocation?
optionalfaceDetectionModelLocation:FaceDetectionModelLocation
The location of the face detection model.
Inherited from
VitalSignCameraCreationProps.faceDetectionModelLocation
faceDetectionRegion?
optionalfaceDetectionRegion:FaceDetectionRegion
The region of the face detection.
Inherited from
VitalSignCameraCreationProps.faceDetectionRegion
faceDetectionSamplingInterval?
optionalfaceDetectionSamplingInterval: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.
Inherited from
VitalSignCameraCreationProps.faceDetectionSamplingInterval
faceDetectorType?
optionalfaceDetectorType:FaceDetectorType
The type of the face detector.
Inherited from
VitalSignCameraCreationProps.faceDetectorType
frameGrabberConfig?
optionalframeGrabberConfig:FrameGrabberConfig
The configuration for frame grabbing.
Inherited from
VitalSignCameraCreationProps.frameGrabberConfig
isActive
isActive:
boolean
True if the camera is activated.
Inherited from
VitalSignCameraCreationProps.isActive
maxFaceDetectionFps?
optionalmaxFaceDetectionFps:number
Maximum face detection rate.
Inherited from
VitalSignCameraCreationProps.maxFaceDetectionFps
maxFps?
optionalmaxFps:number
Maximum camera capturing rate.
Inherited from
VitalSignCameraCreationProps.maxFps
onCameraDevicesUpdated()?
optionalonCameraDevicesUpdated: (event) =>void
The call back function that observes the camera devices updated event.
Parameters
event
Returns
void
Inherited from
VitalSignCameraCreationProps.onCameraDevicesUpdated
onCreated()?
optionalonCreated: (instance) =>void
Callback fired when the VitalSignCamera instance is created. Provides access to the camera instance for programmatic control.
Parameters
instance
The created VitalSignCamera instance
Returns
void
onError()?
optionalonError: (error) =>void
The call back function that observes errors.
Parameters
error
unknown
Returns
void
Inherited from
VitalSignCameraCreationProps.onError
onInitialized()?
optionalonInitialized: () =>void
The call back function that observes the initialized event.
Returns
void
Inherited from
VitalSignCameraCreationProps.onInitialized
onPrecisionModeUpdated()?
optionalonPrecisionModeUpdated: (event) =>void
The call back function that observes the precision mode updated event.
Parameters
event
Returns
void
Inherited from
VitalSignCameraCreationProps.onPrecisionModeUpdated
onPrecisionModeWillUpdate()?
optionalonPrecisionModeWillUpdate: (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
Returns
void
Inherited from
VitalSignCameraCreationProps.onPrecisionModeWillUpdate
onTransformUpdated()?
optionalonTransformUpdated: (transform) =>void
The call back function that observes the transform updated event.
Parameters
transform
Returns
void
Inherited from
VitalSignCameraCreationProps.onTransformUpdated
onVideoFrameProcessed()?
optionalonVideoFrameProcessed: (event) =>void
The call back function that observes the video frame processed event.
Parameters
event
Returns
void
Inherited from
VitalSignCameraCreationProps.onVideoFrameProcessed
onVideoSettingsUpdated()?
optionalonVideoSettingsUpdated: (event) =>void
The call back function that observes the video settings updated event.
Parameters
event
Returns
void
Inherited from
VitalSignCameraCreationProps.onVideoSettingsUpdated
precisionMode?
optionalprecisionMode:PrecisionMode
Precision mode
Inherited from
VitalSignCameraCreationProps.precisionMode
preferredCamera?
optionalpreferredCamera:string
The device id of the preferred camera.
Inherited from
VitalSignCameraCreationProps.preferredCamera
presetFormat?
optionalpresetFormat:PresetFormat
The preset camera resolution.
Inherited from
VitalSignCameraCreationProps.presetFormat
sdkCredentials?
optionalsdkCredentials:SdkCredentials
The SDK credentials for accessing the API.
Inherited from
VitalSignCameraCreationProps.sdkCredentials
userInfo
userInfo:
UserInfo
The info of the user doing the scan.
Inherited from
VitalSignCameraCreationProps.userInfo
visualizationOptions?
optionalvisualizationOptions:VisualizationOptions
The options for enabling visualization such as bounding box or face mesh.