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
- Selenium
- pytorch
- Python
- ubuntu
- 핑거스타일
- 채보
- C++
- Numpy
- windows forms
- VS Code
- label
- pandas
- Docker
- C
- 프로그래머스
- C#
- OpenCV
- 컨테이너
- JSON
- Linux
- paramiko
- SSH
- YOLO
- 오류
- mysql
- error
- pip
- 기타 연주
- Visual Studio
- LIST
Archives
- Today
- Total
목록Read (1)
기계는 거짓말하지 않는다
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/dRaTrd/btrhTRy7kQT/Ja4GgWjnhAVryrY5tFWjG0/img.png)
XML ElementTree를 이용한 XML 파일 읽기 import os import glob import xml.etree.ElementTree as ET# import module # 모든 XML 파일 경로를 가져옴 ano_path = sorted(glob.glob(os.path.join("./", "*.xml"))) # XML 파일 하나씩 읽음 for annotation_path in ano_path: # XML 파일 읽기 doc = ET.parse(annotation_path) # 최상위 XML 태그 root = doc.getroot() # text 파일 이름 filename = annotation_path.split("\\")[-1].split(".")[0] + ".txt" # text 저장 경..
Python
2021. 10. 15. 21:43