PixelLib is a library created for performing image and video segmentation using few lines of code. It is a flexible library created to allow easy integration of image and video segmentation into software solutions. Pixellib is a library for performing segmentation of objects in images and videos. It supports the two major types of image segmentation:
1.Semantic segmentation
2.Instance segmentation
Step:1
Download the model file with predefined coco.h5
Step:2 Install the requirements.txt in local
Step:3
Step:3
import pixellib
from pixellib.instance import instance_segmentation
segment_image = instance_segmentation()
segment_image.load_model("mask_rcnn_coco.h5")
segment_image.segmentImage("input.jpg", show_bboxes = True, output_image_name = "output.jpg")
Piyush Pathak