Can You solve this contours problem in image processing.
During a past interview, I faced a question that I was unable to answer at that moment, and it continues to remain unsolved to this day. This blog present the same problem statement.
I will share the input image and problem statement. If anyone successfully solves this question, kindly upload the code on any platform and share the link in the comment box. Your contribution will not only help me but also be beneficial to others.
Problem statement : Find only 8 points diagonally opposite on any shape within image.
For example :
In image processing, we encounter various shapes represented by multiple points. However, our objective is to identify and extract only the eight diagonally opposite points for each shape. These eight points will be returned in list format for further analysis. Additionally, we aim to visualize these diagonal points by drawing them within the image.
Input image is from glad segmentation challenge organized in 2015.
Input image :
Note : Please convert image into grayscale first.
If you need any clarification for this problem please feel free to ask in comment.