March 2019
Intermediate to advanced
532 pages
13h 2m
English
The cv2.putText() function has the following signature:
img = cv.putText( img, text, org, fontFace, fontScale, color, thickness=1, lineType= 8, bottomLeftOrigin=False)
This function draws the provided text string starting at the org coordinate (upper-left corner if bottomLeftOrigin = False and lower-left corner otherwise) using the font type provided by fontFace and the fontScale factor. In connection with this example, you can see that the last provided parameter, which is lineType, takes the three different values available in OpenCV (cv2.LINE_4, cv2.LINE_8, and cv2.LINE_AA). In this way, you can see the difference better when plotting these types. Remember that cv2.LINE_AA gives much better quality (an anti-aliased line type), ...