지정된 경로 및 파일에서 .jpg 확장자 파일만 읽어오기
실행 코드
import os
file_list = os.listdir('./test/')
file_list.sort()
for i in file_list:
if ".jpg" in i:
print(i)실행 결과
'IT > 영상 처리' 카테고리의 다른 글
| [Python_OpenCV] 모폴로지 연산 (morphology) (0) | 2018.09.08 |
|---|---|
| [Python_OpenCV] Gaussian, Bilateral, Median flter (0) | 2018.09.06 |
| [Python_OpenCV] Templete Matching(템플릿 매칭) (0) | 2018.07.22 |
| [Python_OpenCV] Feature Matching (이미지 특성 매칭) (0) | 2018.07.22 |
| [Python_OpenCV] K-Clustering (0) | 2018.07.21 |