特别是使用了 union_adjacent_contours_xld 之后注意一定要 使用 segment_contours_xld 进行打断,然后才能使用 get_contour_global_attrib_xld。