MLImageSegmentationScene

class info
com.huawei.hms.mlsdk.imgseg.MLImageSegmentationScene
Image segmentation scenarios, from which you can choose one or more as needed.

Constant Summary

TypeNameDesc
intALLObtains all segmentation results by default.
intFOREGROUND_ONLYObtains the human body image with a transparent background.
intGRAYSCALE_ONLYObtains the gray-scale image with a white human body and black background.
intMASK_ONLYObtains the pixel-level label information.

Public Constructor Summary

Constructor name
MLImageSegmentationScene()

Constants

Constant
public static final int ALL

Obtains all segmentation results by default.

Constant value: 0

Constant
public static final int MASK_ONLY

Obtains the pixel-level label information.

Constant value: 1

Constant
public static final int FOREGROUND_ONLY

Obtains the human body image with a transparent background.

Constant value: 2

Constant
public static final int GRAYSCALE_ONLY

Obtains the gray-scale image with a white human body and black background.

Constant value: 3

Public Constructors

Method
public MLImageSegmentationScene()