takePhoto

inline suspend fun ImageCapture.takePhoto(photoSettings: PhotoSettings): Blob(source)
inline suspend fun ImageCapture.takePhoto(): Blob(source)

The takePhoto() method of the ImageCapture interface takes a single exposure using the video capture device sourcing a MediaStreamTrack and returns a Promise that resolves with a Blob containing the data.

MDN Reference