我试图实现这个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