react-native-vision-cameraHybridObjects
FrameConverter
interface FrameConverter extends HybridObjectThe FrameConverter can convert Frames
and Depth to Images, and back.
Methods
convertDepthToImage()
Converts the Depth frame to an Image.
The resulting Image will be a grey-scale RGB image,
where black pixels are far away, and white pixels are close by.
convertDepthToImageAsync()
convertFrameToImage()
Converts the given Frame to an Image.
This performs a CPU copy.
Throws
If the Frame is invalid (Frame.isValid).
convertFrameToImageAsync()
Asynchronously converts this Frame to an
Image.
This performs a CPU copy.
Throws
If the Frame is invalid (Frame.isValid).