I want to put some text on an Image. I am writing the code as:
cv2.putText(image,"Hello World!!!", (x,y), cv2.CV_FONT_HERSHEY_SIMPLEX, 2, 255)
It gives ERROR, saying 'module' object has no attribute 'CV_FONT_HERSHEY_SIMPLEX'
Query
Can't I use the font type as above? I searched in internet, but found only the syntax related to to Opencv C++ for initFont.
Then I thought of using putText
to pass the font type as parameter.
But it is not working for me.
Any suggestions?