# get coords based on boundary textX = (img.shape - textsize) / 2 textY = (img.shape + textsize) / 2
Here is what the above code is Doing:
1. We get the size of the text we’re going to write.
2. We get the coords of the text based on the boundary.