I have an image & over that image, I want to write some text. Look at the following code,
cv2.putText(image,"Hello World!!!", (x,y), cv2.CV_FONT_HERSHEY_SIMPLEX, 2, 255)
When I write code like this, It gives an ERROR, saying
'module' object has no attribute 'CV_FONT_HERSHEY_SIMPLEX'
My Doubt was, Is it possible to use font type as above? When I surfed on the internet, I could able to find only the syntax that is related to OpenCV C++ for initFont. Later, I thought of using putText for passing the font type as a parameter. But still, it's not working for me? Any suggestions?