The detection of shapes with the Hough transform is limited to circles; however, we already implicitly explored detecting shapes of any kind, specifically when we talked about approxPolyDP
. This function allows the approximation of polygons, so if your image contains polygons, they will be quite accurately detected, combining the usage of cv2.findContours
and cv2.approxPolyDP
.
Learning OpenCV 3 Computer Vision with Python
Learning OpenCV 3 Computer Vision with Python
Overview of this book
Table of Contents (16 chapters)
Learning OpenCV 3 Computer Vision with Python Second Edition
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
Setting Up OpenCV
Handling Files, Cameras, and GUIs
Processing Images with OpenCV 3
Depth Estimation and Segmentation
Detecting and Recognizing Faces
Retrieving Images and Searching Using Image Descriptors
Detecting and Recognizing Objects
Tracking Objects
Neural Networks with OpenCV – an Introduction
Index
Customer Reviews