grabFrame

inline suspend fun ImageCapture.grabFrame(): ImageBitmap(source)

The grabFrame() method of the ImageCapture interface takes a snapshot of the live video in a MediaStreamTrack and returns a Promise that resolves with a ImageBitmap containing the snapshot.

MDN Reference