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

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
主站蜘蛛池模板: 理塘县| 长汀县| 仪征市| 介休市| 喜德县| 资阳市| 务川| 高碑店市| 兴文县| 沾化县| 甘肃省| 二手房| 托克逊县| 石狮市| 兴海县| 福州市| 独山县| 安新县| 肇源县| 岐山县| 常熟市| 鄂伦春自治旗| 杭锦后旗| 南部县| 集安市| 广丰县| 龙门县| 襄汾县| 贵州省| 佳木斯市| 广东省| 松溪县| 云南省| 仙桃市| 澄城县| 霍林郭勒市| 平原县| 靖宇县| 康定县| 塔河县| 彭州市|