Make a text image curved or adding convexity/concavity or shadow in a particular position in python

I want to make a curve or add convex/concave or shadow in a text image. Similar or approximate to the below images from a plane image. I need help.
enter image description here

enter image description here

Thanks in advance.

Source: Python Questions

LEAVE A COMMENT