Home >Java >javaTutorial >How to add text to image using Java OpenCV library?
You can add text to an image using the putText() method of the org.opencv.imgproc.Imgproc class . This method renders the specified text within the given image. It accepts -
An empty pad object used to store the source image.
A string object to specify the required text.
Point object that specifies the text position.
Integer constant specifying the text font.
The scale factor multiplied by the base size specific to the font.
Scalar object text specifying the color.
Integer value that specifies text color
The above is the detailed content of How to add text to image using Java OpenCV library?. For more information, please follow other related articles on the PHP Chinese website!