This repository talks about Classical Computer Vision
approach.
The task is to find out the set of the shortest distance rectangles-
Case- I: Overlapping rectangles
Case II: Reference: test.png
The steps involved are as follows-
Thresholding
method to convert input image to binary formatcv2.findContours()
andcv2.drawContours()
methods to find and detect contours- Calculate the centroids of each detected rectangle
- Calculate the euclidean distance between all possible centroids