Skip to content

Commit

Permalink
Manage error with fixed font
Browse files Browse the repository at this point in the history
  • Loading branch information
emidan19 committed Dec 27, 2023
1 parent 79bda1f commit d614022
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion text_generation/generate_random_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
string.digits, k=NUM_CHARACTERS))

text_color = random.choices(["black","white"], weights=(70, 30), k=1)[0]
background_color = random.choices(["black","white"], weights=(30, 70), k=1)[0]
background_color = "black"*(text_color=="white") + "white"*(text_color=="black")

generate_random_txt_img(text,
IMG_SHAPE,
Expand Down

0 comments on commit d614022

Please sign in to comment.