概要
Pillowをインストール(pip install Pillow)すると、ImageGrab.grab()を使って画面全体をキャプチャし、crop((左上x, 左上y, 右下x, 右下y))を使って一部を切り出すことができる。
コード
from PIL import ImageGrab
image = ImageGrab.grab()
image.crop((20, 60, 280, 210))
結果

Pillowをインストール(pip install Pillow)すると、ImageGrab.grab()を使って画面全体をキャプチャし、crop((左上x, 左上y, 右下x, 右下y))を使って一部を切り出すことができる。
from PIL import ImageGrab
image = ImageGrab.grab()
image.crop((20, 60, 280, 210))