{"repo":"XuanChenStar/wgc_python","free":true,"listed":false,"github":"https://github.com/XuanChenStar/wgc_python","clone":"git clone https://github.com/XuanChenStar/wgc_python.git","description":"🚀 专为 Python 自动化打造的高性能截图库 | 180+ FPS | 支持后台/遮挡 | 可暂停 零功耗待机;🚀 High-performance capture library for Python automation | 180+ FPS | Background/Occluded Support | Pausable (Pause/Resume) Zero-Power Standby","language":"C++","stars":17,"topics":["computer-vision","d3d11","game-bot","python","screen-capture","wgc","windows-graphics-capture","computer-vision-opencv","computer-vision-tools","game-capture"],"license":"MIT","category":"machine-learning","readme_excerpt":"wgc python English 简体中文 🚀 为 Python 自动化而生的窗口捕获库 180+ FPS 极致性能 · 零资源待机 · 无视遮挡 · API 极简 --- 为什么选择 wgc python？ 🎯 专为自动化场景设计 你是否在为以下问题困扰？ - mss/BitBlt ：无法捕获被遮挡或后台窗口 - PrintWindow ：性能瓶颈，固定 26ms+ 延迟 - 其他 WGC 封装 ：持续运行占用资源，频繁启停开销巨大（50ms+） wgc python 通过独创的 Pause/Resume 机制，完美解决了这个矛盾： 📊 性能对比 方案 FPS 后台捕获 CPU 占用 频繁切换开销 暂停后 GPU 占用 ------ ----- --------- --------- ------------- ---------------- python-mss / BitBlt 60 ❌ 高 低 N/A (无暂停概念) PrintWindow 38 ✅ 中 低 N/A (每次调用即捕获) 其他 WGC 封装 180+ ✅ 高（持续空转） 极高 (50ms+) 高 (无法真正暂停) wgc python 180+ ✅ 极低（Pause时归零） = 1903 中文路径保存失败 使用 cv2.imencode + open().write() 代替 cv2.imwrite 依赖缺失 pip install numpy opencv-python --- 适用场景 - ✅ 游戏 AI / 自动化脚本 - ✅ RPA 流程自动化 - ✅ 屏幕录制 / 直播 - ✅ UI 自动化测试 - ✅ 计算机视觉应用 --- 鸣谢 本项目基于 robmikh/Win32CaptureSample 开发。 --- License MIT License","default_branch":null,"files":null,"tree":[],"storefront":"/r/XuanChenStar","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/XuanChenStar/wgc_python/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}