This question has already been answered:

Good day. You need to make a screenshot of a specific rectangle on the screen, most likely, will be on the coordinates, and save this particular picture. The whole screen is not needed. The coordinates of the four points and the entire area between them, I guess. Further work will only need this small rectangle. Tell me please.

Reported as a duplicate by jfs python Jan 18 '17 at 1:29 pm

A similar question was asked earlier and an answer has already been received. If the answers provided are not exhaustive, please ask a new question .

1 answer 1

import pyscreenshot as ImageGrab if __name__ == "__main__": im=ImageGrab.grab(bbox=(10,10,300,300)) # X1,Y1,X2,Y2 im.show()