반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- hive
- Github
- array
- matplotlib
- GIT
- Java
- gas
- Kotlin
- Google Spreadsheet
- dataframe
- Excel
- Redshift
- numpy
- PANDAS
- django
- Python
- c#
- Apache
- Mac
- Google Excel
- 파이썬
- list
- google apps script
- SQL
- math
- Tkinter
- string
- PostgreSQL
- PySpark
Archives
- Today
- Total
목록screen capture (1)
달나라 노트
Python PIL : 화면 캡쳐하기 (screen capture with python)
Python에서는 PIL module을 이용하여 화면을 캡쳐할 수 있습니다. from PIL import ImageGrab# capture entire screenimg = ImageGrab.grab()img.show() 위처럼 하면 화면 전체를 캡쳐할 수 있습니다. from PIL import ImageGrab# capture top-left rectangle with size 638px wide by 312px tallimg = ImageGrab.grab(bbox=(0, 0, 538, 312))img.show() 위처럼 화면 캡쳐 영역의 크기를 조절할 수도 있습니다. 캡쳐는 직사각형으로 할 수 있으며, bbox에 담겨진 4개의 인자는 각각 직사각형의 꼭지점 좌표를 의미합니다.bbox=(x1, ..
Python/Python ETC
2024. 11. 5. 19:43