What is the OpenCV font base size for cv::HersheyFonts?

Viewed 8247
2 Answers

When I use Python getTextSize, it returned tuple data structure.

For example,

textSize = cv2.getTextSize(text=str(act_class_info[0]), fontFace=cv2.FONT_HERSHEY_DUPLEX, fontScale=1, thickness=1)
print(textSize)  # ((61, 22), 10)

It looks like (61, 22) is width of three letters and height of one letter in pixel unit. I don't know what the number 10 is meaning.

Related