How to insert text to image by cv2.warpPerspective in python opencv?

Question:

enter image description here

Like this in python opencv:

i = 0
for line in wrapped_text:

    cv2.putText(img, line, (x, y), font,
                font_size, 
                (255,255,255), 
                font_thickness, 
                lineType = cv2.LINE_AA)
    i +=1

cv2.imshow("Result Image", img)
cv2.waitKey(0)
cv2.destroyAllWindows()`
Asked By: Marina Parshina

||

Answers:

Good question!
I think this way will work for your question.
First you will make a image from the text.
And then you can resize the image according to your mind. I think it’s easy to resize the image.
And then you will compose the text image to the target image.

Answered By: Venus
Categories: questions Tags: , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.