- Mastering OpenCV 4 with Python
- Alberto Fernández Villán
- 195字
- 2021-07-02 12:07:19
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
- Boost程序庫完全開發(fā)指南:深入C++”準”標準庫(第5版)
- FFmpeg入門詳解:音視頻流媒體播放器原理及應(yīng)用
- Java程序設(shè)計與計算思維
- INSTANT MinGW Starter
- oreilly精品圖書:軟件開發(fā)者路線圖叢書(共8冊)
- Node.js全程實例
- R數(shù)據(jù)科學(xué)實戰(zhàn):工具詳解與案例分析
- Practical Microservices
- 深入解析Java編譯器:源碼剖析與實例詳解
- Android Game Programming by Example
- 算法秘籍
- Python硬件編程實戰(zhàn)
- Java從入門到精通(視頻實戰(zhàn)版)
- Mastering PostgreSQL 11(Second Edition)
- Continuous Integration,Delivery,and Deployment