SegmentationProcessor

class SegmentationProcessor(val context: Context)

SegmentationProcessor predicts foreground mask for an image.

Constructors

Link copied to clipboard
constructor(context: Context)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
lateinit var modelState: ModelState

Functions

Link copied to clipboard

Retrieve input image on which segmentation can be applied.

Link copied to clipboard

Retrieve segmented image mask.

Link copied to clipboard
fun initialize(width: Int, height: Int, modelShape: ModelShape)

Initialize and load the tensorflow model.

Link copied to clipboard
fun predict(): PredictResult

Predicts the foreground on the input image.