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