enter image description hereI am trying to put text on image , i have the coordinates of the text but after adding text is overlapped on image , please see below image and code..
for i in range(n_boxes):
(x, y, w, h) = (d['left'][i], d['top'][i], d['width'][i], d['height'][i])
image=cv2.putText(image,d['text'][i],(x, y),cv2.FONT_HERSHEY_COMPLEX_SMALL,1,(128, 128, 128), 1)
source https://stackoverflow.com/questions/71001366/text-overlapping-on-image-using-cv2-puttext
Comments
Post a Comment