I\'m having similar problem to this post here but while I understand the posters code, the solution code is a bit complex for me to understand, I also use contours but only