Home > Java > javaTutorial > How to add text to image using Java OpenCV library?

How to add text to image using Java OpenCV library?

WBOY
Release: 2023-09-15 20:21:05
forward
980 people have browsed it

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

Example

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!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template