FrameConverter
interface FrameConverter
Converts Frames and Depth frames to Images (port of V5's FrameConverter). Use the HybridFrameConverter instance:
frameOutput.setOnFrameCallback { frame ->
val image = frame.use { HybridFrameConverter.convertFrameToImage(it) }
// ... display or process the image
}Content copied to clipboard
The resulting Image is a copy: it stays valid after the Frame or Depth is disposed.
Inheritors
Functions
Link copied to clipboard
Link copied to clipboard
Same as convertDepthToImage, but runs on a background dispatcher. The depth must not be disposed before this returns.
Link copied to clipboard
Link copied to clipboard
Same as convertFrameToImage, but runs on a background dispatcher. The frame must not be disposed before this returns.