In this tutorial, I’ll walk you through how one can scale and rotate a contour based on OpenCV Python API
Follow along, if you want to understand what’s the simple idea behind the implementation.
Why would one want to scale or rotate a contour of objects in an image? For me, I had a very similar problem as this StackOverflow question.
I had to scale down the output of an Image Segmentation deep learning model for a specific class, to tightly fit the object of that class. Basically a post processing step for my deep learning model.
I am not…
I work as a Data Scientist at Genpact. I am a deep learning enthusiast and always looking for opportunities to work on exciting projects and learn from others.