I am using opencv-python for my face detection experiment. I am also to do a cv.drawRect function. I tried with cv.putText but it is not supported in python. Is there other functions other than cv.putText which can write text to an image frame
Got it. In the older version of python-opencv use PutText instead of putText
font = cv.InitFont(cv.CV_FONT_HERSHEY_SIMPLEX, 1, 1, 0, 3, 8) #Creates a font
x = 10 #position of text
y = 20 #position of text
cv.PutText(image,"Hello World!!!", (x,y),font, 255) #Draw the text
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With