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

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
主站蜘蛛池模板: 行唐县| 苍南县| 潼南县| 万载县| 大竹县| 钦州市| 涡阳县| 洪泽县| 嘉峪关市| 洞口县| 石嘴山市| 濮阳市| 大安市| 大理市| 温州市| 西乌| 三明市| 营山县| 马公市| 宁武县| 诸城市| 简阳市| 察哈| 高平市| 高青县| 岐山县| 车险| 麻阳| 历史| 翁牛特旗| 泰和县| 兴山县| 衡东县| 乐陵市| 永城市| 辽阳市| 太白县| 东明县| 长治市| 香港| 图木舒克市|