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

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
主站蜘蛛池模板: 北安市| 莒南县| 泉州市| 石门县| 兰西县| 井陉县| 甘泉县| 伊金霍洛旗| 南汇区| 扎赉特旗| 南开区| 华池县| 什邡市| 岑溪市| 西丰县| 盐边县| 武安市| 信丰县| 淳化县| 莱西市| 株洲县| 陕西省| 黔江区| 锡林浩特市| 无棣县| 平利县| 徐水县| 嘉祥县| 奎屯市| 偏关县| 诏安县| 鱼台县| 信阳市| 新乡县| 南通市| 绍兴县| 无为县| 斗六市| 古浪县| 武夷山市| 汶川县|