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

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
主站蜘蛛池模板: 淅川县| 怀安县| 临城县| 介休市| 承德市| 个旧市| 孟津县| 岢岚县| 囊谦县| 雷波县| 西林县| 喀喇沁旗| 都安| 三台县| 阳春市| 唐海县| 信阳市| 文山县| 临洮县| 涪陵区| 卓资县| 耒阳市| 台安县| 广丰县| 洛南县| 海安县| 许昌县| 大竹县| 洛扎县| 乳山市| 惠水县| 平谷区| 义乌市| 合川市| 比如县| 孟村| 湾仔区| 焉耆| 天长市| 南木林县| 襄汾县|