MCPcopy Create free account
hub / github.com/Roy3838/Observer / captureCameraImage

Function captureCameraImage

app/src/utils/cameraCapture.ts:12–18  ·  view source on GitHub ↗
(_stream: MediaStream, agentId?: string)

Source from the content-addressed store, hash-verified

10 * @returns The raw Base64 string (without the data URI prefix) or null on failure.
11 */
12export async function captureCameraImage(_stream: MediaStream, agentId?: string): Promise<string | null> {
13 const base64 = await StreamManager.captureFrame('camera', agentId);
14 if (base64) {
15 Logger.debug(agentId || 'camera', `Camera frame captured (${base64.length} bytes)`);
16 }
17 return base64;
18}

Callers 1

pre-processor.tsFile · 0.90

Calls 2

captureFrameMethod · 0.80
debugMethod · 0.45

Tested by

no test coverage detected