write on image cv2 code example
Example 1: cv2 write image python
# Filename
filename = 'savedImage.jpg'
# Using cv2.imwrite() method
# Saving the image
cv2.imwrite(filename, img)
Example 2: adding text cv2
cv2.putText (image, "text",coordinates)