所以我需要每秒得到一堆截图,比如 5。我用它来为游戏编写一个机器人程序。但是 imagegrab 方法需要 0.3 秒,这对我来说太慢了。即使在指定 bbox 值之后,它仍然需要 0.3 秒。我想应该提到我在 mac 上。有没有更好的方法适合我
我什至尝试了os.system("screencapture filename.png")0.15-0.2 秒的运行时间,这很好,但我想更快。
os.system("screencapture filename.png")
python performance screenshot python-imaging-library
performance ×1
python ×1
python-imaging-library ×1
screenshot ×1