한글을 출력하려고 하면 아래 그림과 같이 깨져버리는 것을 확인할 수 있다. 이제부터 한글 깨짐을 해결해 보자. 해결법 Python의 이미지 처리 모듈 하면 PIL (Python Image Library) OpenCV (Computer Vision) 이 있다. 여기서 OpenCV를 이용하면서 한글이 깨지기 때문에 PIL을 이용해 한글을 출력하면 된다. 일단 PIL모듈을 설치하자. PIL모듈의 이름은 Pillow이다. import cv2 import numpy as np from PIL import ImageFont, ImageDraw, Image img = np.full(shape=(512,512,3),fill_value=255,dtype=np.uint8) img = Image.fromarray(img) ..