Reddit 用户用 Claude 构建人体感应灯光
AI 总结
一名 Reddit 用户称,他们利用 MediaPipe 识别人手和身体位置,创建了会实时响应动作的 WebGL 灯光效果。用户表示,Claude 编写了着色器、贴纸检测、运动追踪代码,并将项目部署到 GitHub Pages;由于无法访问摄像头,模型使用合成视频和无头浏览器测试改动。透明灯泡仍难以追踪,因此项目暂时在灯泡上贴了绿色贴纸。
深度见解
该项目展示了 Claude 协助创意编程、计算机视觉集成、测试和部署的实例,但相关说法仅来自一名用户,且透明灯泡追踪问题尚未解决。
| The bulb is off. The light is pure code. A WebGL shader paints it in real time, while MediaPipe finds your hands and body so the glow lands where it should. I built the whole thing in conversation with Claude. It wrote the shader, the sticker detection and the motion tracking, and deployed it to GitHub Pages. Since it couldn’t see my webcam, it generated fake camera videos (moving, blurred, far-away stickers, plus decoys) and tested each change against them in a headless browser before shipping. I first tried training a model on the bulb, but clear glass is really hard to track, so I stuck a green sticker on it instead. Any ideas for detecting a clear bulb in the dark? submitted by /u/ramramlab [link] [comments] |