如题,最大的色块会处理了
max_blob = find_max(blobs)
blobs.remove(max_blob)
second_blob = find_max(blobs)
把原来最大的删掉,再找最大。
Python 就是这么骚。
可以直接用find_max吗,我这里报错了