sksurgerysurfacematch.interfaces.video_segmentor module

Base class (pure virtual interface) for classes to do video segmentation

class sksurgerysurfacematch.interfaces.video_segmentor.VideoSegmentor[source]

Bases: object

Base class for classes that can segment a video image into a binary mask. For example, a deep network that can produce a mask of background=0, foreground=255.

segment(image: numpy.ndarray)[source]

A derived class must implement this.

Parameters:image – image, BGR
Returns:image, same size as input, 1 channel, uchar, [0-255].