Lets use the below image to write a “Good Morning” message using OpenCV putText() method. Performs text detection using OpenCV’s EAST text detector, a highly accurate deep learning text detector used to detect text in natural scene images. The default value is False.Īdding text on an image using OpenCV – cv2.putText() method bottomLeftOrigin (Optional): When true, the image data origin is at the bottom-left corner.lineType (Optional): It denotes the type of line you want to use.thickness (Optional): It represents the thickness of the lines used to draw a text.It takes the value in BGR format, i.e., first blue color value, then green color value, and the red color value all in range 0 to 255. color: It represents the color of the text that you want to give.The font scale factor is multiplied by the font-specific base size. Were going to discuss how to put text on. fontScale: It is used to increase/decrease the size of your text. We will also discuss the basic of image processing and provide the detail explanation related to the OpenCV functions.The second argument is the image that you want to display. Here’s the syntax: imshow (windowname, image) This function also takes two arguments: The first argument is the window name that will be displayed on the window. OpenCV supports only a subset of Hershey Fonts. In OpenCV, you display an image using the imshow () function.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |