Put text to image using pillow.
You can put text to an image including non-ASCII characters.
Parameters
==========
img : numpy.ndarray
cv2 image. bgr order.
text : str
text information.
pos : tuple(float)
xy position of text.
font_path : str
path to font.
font_size : int
font size
color : tuple(int)
text color
background_color : tuple(int) or None
background color in text area. If this value is None, do nothing.
offset_x : float
x position offset.
offset_y : float
y position offset.
loc : str
location.
Definition at line 9 of file put_text.py.