官术网_书友最值得收藏!

Constructing Basic Shapes in OpenCV

One basic functionality offered by OpenCV is drawing basic shapes. OpenCV provides functions to draw lines, circles, rectangles, ellipses, and so on. When building a computer vision project, you usually want to modify the image by drawing some shapes. For example, if you develop a face detection algorithm, you should draw a rectangle highlighting the detected faces in the computed image. Additionally, if you develop a face recognition algorithm, you should draw a rectangle highlighting the detected faces and also write some text showing the identity of the detected faces. And finally, it is a common approach to write some debugging information. You could show, for example, the number of detected faces (in order to see the performance of your face detection algorithm) or the processing time. In this chapter, you are going to see how to draw basic and more advanced shapes using the OpenCV library. 

The following topics will be covered:

  • A theoretical introduction to drawing in OpenCV
  • Basic shapes—lines, rectangles, and circles
  • Basic shapes (2)—clip and arrowed lines, ellipses, and polylines
  • Drawing text
  • Dynamic drawing with mouse events
  • Advanced drawing
主站蜘蛛池模板: 增城市| 法库县| 多伦县| 长葛市| 元氏县| 峡江县| 织金县| 广平县| 汉寿县| 吐鲁番市| 颍上县| 汕尾市| 德令哈市| 彭水| 库尔勒市| 冀州市| 军事| 巩留县| 信阳市| 广安市| 鹤山市| 绥阳县| 德庆县| 淮阳县| 农安县| 惠安县| 化隆| 白水县| 郸城县| 嘉义县| 东兴市| 南陵县| 日土县| 独山县| 鄱阳县| 额敏县| 辽中县| 韶山市| 屏东县| 松溪县| 迭部县|