1. RGB로 변환하기
image = Image.open("./image0.png").convert('RGB')
2. Gray로 변환하기
image = Image.open("./image0.png").convert('L')
'개인공부 > Python' 카테고리의 다른 글
ImportError: numpy.core.multiarray failed to import (0) | 2022.02.07 |
---|---|
아나콘다 가상환경 설정 (0) | 2022.02.07 |
[ImportError] DLL load failed: 지정된 모듈을 찾을 수 없습니다. (0) | 2022.01.20 |
[vscode] Github 연동 (git clone) (0) | 2022.01.20 |
im2col 함수 (0) | 2022.01.18 |