I check it every time I use it I will leave it as a memorandum.
python
image = cv2.puttext(image,"Hello World", (0, 0), '<Font path>', 10, (0, 0, 0),2,False)
argument Image, character string, coordinates to draw, font path, character size, character color, character thickness, position of origin of image (True is lower left False is upper left)
The reason why Japanese cannot be displayed as it is is CV2 does not support multibyte characters by default.
In other words, you can draw Japanese on the image by specifying the Japanese font.
Recommended Posts