如何截取Python像素范围内的屏幕截图?
How to take screenshots in Python with certain pixel range?
有谁知道 Python 中的任何模块或任何方式可以截取屏幕上特定像素范围的屏幕截图?我一直在寻找,但在网上找不到任何东西。
试试这个
import pyscreenshot as ImageGrab
img=ImageGrab.grab()
img=ImageGrab.grab(bbox=(10,10,500,500))
ImageGrab.grab_to_file('img.jpg')
有谁知道 Python 中的任何模块或任何方式可以截取屏幕上特定像素范围的屏幕截图?我一直在寻找,但在网上找不到任何东西。
试试这个
import pyscreenshot as ImageGrab
img=ImageGrab.grab()
img=ImageGrab.grab(bbox=(10,10,500,500))
ImageGrab.grab_to_file('img.jpg')