기본 콘텐츠로 건너뛰기

라벨이 PIL인 게시물 표시

Python3.5 Screen Capture

alexnet jin: # _*_ encoding: cp949 _*_ import pyscreenshot as ImageGrab #Library PIL #fullscreen def capture_full():     im = ImageGrab.grab()     im.show() def capture_part():     im = ImageGrab.grab(bbox=(0,24,1920,1120))       #x1, y1, x2, y2     im.show() if name == '__main__':     capture_part()