我尝试实现了这个代码,但是在按照此教程确定轮廓的最极点时遇到了问题。
# 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])
有人能帮我解决这个问题吗?