
Contours Hierarchy
Learn about the hierarchy of contours, i.e. the parent-child relationship in Contours. We cover RETR_LIST, RETR_EXTERNAL, RETR_CCOMP and RETR_TREE flags with examples.
OpenCV / Advanced Topics
11 posts

Learn about the hierarchy of contours, i.e. the parent-child relationship in Contours. We cover RETR_LIST, RETR_EXTERNAL, RETR_CCOMP and RETR_TREE flags with examples.

Learn about convexity defects, finding shortest distance from a point to a polygon, and matching different shapes. We cover cv2.convexityDefects(), cv2.pointPolygonTest() and cv2.matchShapes().

Learn to extract frequently used properties of objects like Solidity, Equivalent Diameter, Mask image, Mean Intensity. Also covers extreme points, aspect ratio, and more.

Learn to find different features of contours like area, perimeter, centroid, bounding box. We cover cv2.moments(), cv2.contourArea(), cv2.minAreaRect() and many more functions.

Learn about histogram backprojection for image segmentation and object finding. We cover cv2.calcBackProject() with both NumPy and OpenCV implementations.

Learn to find and plot 2D histograms. We will use Hue and Saturation values for color histograms with cv2.calcHist() and np.histogram2d().

Learn the concepts of histogram equalization and use it to improve the contrast of images. We cover cv2.equalizeHist() and CLAHE.

We will learn how to bind a Trackbar to OpenCV windows. We will learn these functions: cv2.getTrackbarPos(), cv2.createTrackbar(), etc.

We will understand what contours are. We will learn to find and draw contours. We will learn these functions: cv2.findContours(), cv2.drawContours()