MCPcopy Create free account
hub / github.com/AI-FanGe/OpenAIglasses_for_Navigation / drawFrame

Method drawFrame

static/vision.js:204–213  ·  view source on GitHub ↗
(frameData)

Source from the content-addressed store, hash-verified

202 }
203
204 drawFrame(frameData) {
205 // 绘制基础图像
206 const img = new Image();
207 img.onload = () => {
208 this.canvas.width = img.width;
209 this.canvas.height = img.height;
210 this.ctx.drawImage(img, 0, 0);
211 };
212 img.src = 'data:image/jpeg;base64,' + frameData;
213 }
214
215 drawHand(handData) {
216 // 使用SVG绘制手部骨骼

Callers 1

updateVisualizationMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected