cv2 puttext parameters

Solutions on MaxInterview for cv2 puttext parameters by the best coders in the world

showing results for - "cv2 puttext parameters"
Paola
10 May 2016
1Syntax: cv2.putText(image, text, org, font, fontScale, color[, thickness[, lineType[, bottomLeftOrigin]]])
2
3Parameters:
4image: It is the image on which text is to be drawn.
5text: Text string to be drawn.
6org: It is the coordinates of the bottom-left corner of the text string in the image. The coordinates are represented as tuples of two values i.e. (X coordinate value, Y coordinate value).
7font: It denotes the font type. Some of font types are FONT_HERSHEY_SIMPLEX, FONT_HERSHEY_PLAIN, , etc.
8fontScale: Font scale factor that is multiplied by the font-specific base size.
9color: It is the color of text string to be drawn. For BGR, we pass a tuple. eg: (255, 0, 0) for blue color.
10thickness: It is the thickness of the line in px.
11lineType: This is an optional parameter.It gives the type of the line to be used.
12bottomLeftOrigin: This is an optional parameter. When it is true, the image data origin is at the bottom-left corner. Otherwise, it is at the top-left corner.
13
14Return Value: It returns an image.
15
16https://www.geeksforgeeks.org/python-opencv-cv2-puttext-method/