利用pixellib库的instance_segmentation函数实现图像的实例分割
输出结果
代码实现
#2、实例分割
from pixellib.instance import instance_segmentation
segment_image = instance_segmentation()
segment_image.load_model('F:/File_Python/Resources/weights_files/mask_rcnn_coco.h5')
segment_image.segmentImage('F:/File_Python/Resources/image/detection12.jpg', output_image_name = 'F:/File_Python/Resources/image/detection12_image_new.jpg')