Intelligent Assistant
Chat with our virtual assistant to get answers promptly.
| class info |
| com.huawei.hms.mlsdk.imgseg.MLImageSegmentationScene |
| Image segmentation scenarios, from which you can choose one or more as needed. |
| Type | Name | Desc |
| int | ALL | Obtains all segmentation results by default. |
| int | FOREGROUND_ONLY | Obtains the human body image with a transparent background. |
| int | GRAYSCALE_ONLY | Obtains the gray-scale image with a white human body and black background. |
| int | MASK_ONLY | Obtains the pixel-level label information. |
| Constructor name |
| MLImageSegmentationScene() |
| 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 |
| Method |
| public MLImageSegmentationScene() |