take screenshot pyautogui a region code example
Example: screenshot region pyautogui
>>> import pyautogui
>>> im = pyautogui.screenshot(region=(0,0, 300, 400))
>>> import pyautogui
>>> im = pyautogui.screenshot(region=(0,0, 300, 400))