MCPcopy Index your code
hub / github.com/tensorflow/tfjs / capture

Method capture

tfjs-data/src/iterators/webcam_iterator.ts:201–203  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

199 // Capture one frame from the video stream, and extract the value from
200 // iterator.next() result.
201 async capture(): Promise<Tensor3D> {
202 return (await this.next()).value;
203 }
204
205 // Stop the video stream and pause webcam iterator.
206 stop(): void {

Calls 1

nextMethod · 0.95

Tested by

no test coverage detected