我試圖實現這個code,但是當我想要確定輪廓的最極端點時,請按照本教程進行操作。使用OpenCV C++查找輪廓線上的極端點
# determine the most extreme points along the contour
extLeft = tuple(c[c[:, :, 0].argmin()][0])
extRight = tuple(c[c[:, :, 0].argmax()][0])
extTop = tuple(c[c[:, :, 1].argmin()][0])
extBot = tuple(c[c[:, :, 1].argmax()][0])
任何人都可以幫助我解決這個問題嗎?
看看http://answers.opencv.org/question/64433 – sturkmen