mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-30 19:50:08 -07:00
fix imagelib\text.py
This commit is contained in:
parent
41601f50b8
commit
1bd864cc15
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ def draw_text( image, rect, text, color=(1,1,1), border=0.2, font=None):
|
|||
t = np.clip (t, 0, h-1)
|
||||
b = np.clip (b, 0, h-1)
|
||||
|
||||
image[t:b, l:r] += get_text_image ( (r-l,b-t,c) , text, color, border, font )
|
||||
image[t:b, l:r] += get_text_image ( (b-t,r-l,c) , text, color, border, font )
|
||||
|
||||
|
||||
def draw_text_lines (image, rect, text_lines, color=(1,1,1), border=0.2, font=None):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue