React SDK Reference / VitalSignCameraInterface
Interface: VitalSignCameraInterface
Defines the Vital Sign Camera, the main component for doing vital sign scanning. This component is created by the function createVitalSignCamera.
Properties
boundingBoxElement?
readonlyoptionalboundingBoxElement:HTMLElement
The bounding box element.
config
config:
VitalSignEngineConfig
The config of the vital sign engine.
customConditionRange?
optionalcustomConditionRange:CustomConditionRange
The customized condition checking range.
device?
optionaldevice:string
The device ID of the camera.
faceDetectionRegion?
optionalfaceDetectionRegion:FaceDetectionRegion
The specific region of captured video for face detection.
faceDetectionSamplingInterval?
readonlyoptionalfaceDetectionSamplingInterval:number
The sampling interval of sampling the face detection result
faceDetectorType
readonlyfaceDetectorType:FaceDetectorType
The face detector type
faceMeshElement?
readonlyoptionalfaceMeshElement:HTMLElement
The face mesh element.
grabbedFrames?
readonlyoptionalgrabbedFrames:GrabbedFrame[]
The grabbed frames from the frame grabber.
isActive
isActive:
boolean
True if the camera is activated.
maxFaceDetectionFps
readonlymaxFaceDetectionFps:number
The maximum frame rate of the face detection. Default is 5.
maxFps
maxFps:
number
The maximum frame rate of the frame processing rate. Default is 30.
onCameraDevicesUpdated()?
optionalonCameraDevicesUpdated: (event) =>void
The call back function that observes the camera devices updated event.
Parameters
event
Returns
void
onError()?
optionalonError: (error) =>void
The call back function that observers error.
Parameters
error
unknown
Returns
void
onInitialized()?
optionalonInitialized: () =>void
The call back function that observes the initialized event.
Returns
void
onPrecisionModeUpdated()?
optionalonPrecisionModeUpdated: (event) =>void
The call back function that observes the precision mode updated event.
Parameters
event
Returns
void
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
onVideoFrameProcessed()?
optionalonVideoFrameProcessed: (event) =>void
The call back function that observes the video frame processed event.
Parameters
event
Returns
void
onVideoSettingsUpdated()?
optionalonVideoSettingsUpdated: (event) =>void
The call back function that observes the video settings updated event.
Parameters
event
Returns
void
precisionMode?
optionalprecisionMode:PrecisionMode
The precision mode of the camera.
presetFormat
presetFormat:
PresetFormat
The camera resolution
sdkCredentials?
optionalsdkCredentials:SdkCredentials
The SDK credentials for accessing the API.
transform
readonlytransform:TransformXStyle
The x-transform style of the camera.
userInfo
userInfo:
UserInfo
The info of the user doing the scan.
version
readonlyversion:string
The version of the component.
videoSettings?
readonlyoptionalvideoSettings:VideoSettings
The video settings of the camera.
visualizationOptions?
optionalvisualizationOptions:VisualizationOptions
The visualization options of the camera.
Methods
bind()
bind(
video):void
Call this method to bind the video html element to the vital sign camera comoponent.
Parameters
video
HTMLVideoElement
Returns
void
startScanning()
startScanning():
void
Call this method to start scanning.
Returns
void
stopScanning()
stopScanning():
void
Call this method to abort scanning.
Returns
void
waitCameraToStop()
waitCameraToStop(
timeoutMS?):Promise<boolean>
Call this method to wait until the camera is stopped completely.
Parameters
timeoutMS?
number
Returns
Promise<boolean>