讨论

基于手部追踪的Python空中鼠标脚本

来自 Wikiprompt,自由的提示词百科全书

Coin Shot ☁️

2026年5月28日

基于手部追踪的Python空中鼠标脚本 一个用于生成Python脚本的提示,该脚本利用手部追踪将网络摄像头变为空中鼠标,并支持光标控制与点击手势。

提示词内容收藏

🌐
Write me a Python script for an air mouse. Use OpenCV to read my webcam, MediaPipe to track my hand, and PyAutoGUI to move the cursor. Rules: - Index finger position controls the cursor on screen - Pinch index finger and thumb together to left-click - Pinch middle finger and thumb to right-click - Open palm pauses tracking - Smooth the movement so the cursor does not jitter Output one complete script I can run with python. Add comments so I can adjust the sensitivity.

登录以查看完整提示词

继续使用:

登录即表示你同意我们的 使用条款 和 隐私政策

用法

此提示词专为 coding 设计。复制上方内容并粘贴到你常用的 AI 工具中。

为获得最佳效果,可将占位符(方括号或大写字母标示)替换为你的具体需求。

参考资料

分类:coding| twitter| python| air-mouse

讨论