Skip to content

ReactNative SDK Reference / VitalSignFrameProcessor

Interface: VitalSignFrameProcessor ​

The frame processor interface for integrating with React Native Vision Camera

Methods ​

processFrame() ​

processFrame(frame, bounds, userInfo): GetHealthResult

Call this method to process the video frame given by Vision Camera.

Parameters ​

• frame: any

The video frame object from Vision Camera Frame Processor

• bounds: undefined | NormalizedFacebox

The coordinate of the face on the video frame. If no face detected on the video frame, pass in undefined.

• userInfo: UserInfo

The information of the user doing scanning.

Returns ​

GetHealthResult


processVideoFrame() ​

processVideoFrame(options): ProcessFrameResult

Call this method to process the video frame given by Vision Camera. Unlike the method processFrame, this method also do the face detection on the video frame. The face detection and the health result will be returned by the ProcessFrameResult object.

Parameters ​

• options: ProcessFrameOptions

The info needed for processing the video frame.

Returns ​

ProcessFrameResult