Created
April 19, 2023 17:23
-
-
Save prateekjoshi565/2f533eb41cf6760ca590b69837b4e94a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Draw the text on the image | |
text_draw.text(text_position, text_message, fill=text_color, font= text_font) | |
# Combine the background image and text image | |
combined_image = Image.alpha_composite(background_image.convert("RGBA"), text_image) | |
# display combined image | |
plt.imshow(combined_image); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment