Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

cv2.puttext parameters

Syntax: cv2.putText(image, text, org, font, fontScale, color[, thickness[, lineType[, bottomLeftOrigin]]])

Parameters:
image: It is the image on which text is to be drawn.
text: Text string to be drawn.
org: 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).
font: It denotes the font type. Some of font types are FONT_HERSHEY_SIMPLEX, FONT_HERSHEY_PLAIN, , etc.
fontScale: Font scale factor that is multiplied by the font-specific base size.
color: It is the color of text string to be drawn. For BGR, we pass a tuple. eg: (255, 0, 0) for blue color.
thickness: It is the thickness of the line in px.
lineType: This is an optional parameter.It gives the type of the line to be used.
bottomLeftOrigin: 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.

Return Value: It returns an image.

https://www.geeksforgeeks.org/python-opencv-cv2-puttext-method/
Comment

PREVIOUS NEXT
Code Example
Python :: python != 
Python :: use colabs gpu locally 
Python :: python hangman 
Python :: jouer à Snake 
Python :: jupyter notebook fancy print cross tab 
Python :: change the size of a button tkinter 
Python :: python numpy + opencv + overlay image 
Python :: rfe = RFE(lr, n_features_to_select=9) rfe.fit(X,Y) 
Python :: columnspan vs column tkinter 
Python :: why video is not writing opencv 
Python :: Cloud Build Quickstart 
Python :: download pyautogui 
Python :: how to change the jupyter navigator 
Python :: detail view use slug or anything else pk 
Python :: kloppy, public datasets, Standardized models, football tracking, data science 
Python :: xkcd remove feature matplotlib 
Python :: python von konsoleeinlesen 
Python :: print nested dictionary values in python 
Python :: get window coordinates selenium 
Python :: ** (ArgumentError) lists in Phoenix.HTML and templates may only contain integers representing bytes, binaries or other lists, got invalid entry: 
Python :: python convert a dict to list or a list to dict or a slice a dict or sort a dict by key or value without import 
Python :: PEP 428: The pathlib module – object-oriented filesystem paths. 
Python :: function of this cod in django in django performance = serializers.SerializerMethodField() # def get_performance(self, instance): # return PerformanceSerializer(instance.performance).data 
Python :: how to go sown a line in pyton 
Python :: list into string python 
Python :: python sns save plot lable axes 
Python :: Find All Occurrences of start indices of the substrings in a String in Python 
Python :: convertir code python en java 
Python :: bouon arrondi tkinter 
Python :: pandas apply return dataframe 
ADD CONTENT
Topic
Content
Source link
Name
1+7 =