Represents a label associated with a color for display purposes.
static ColoredLabel |
create(String label,
String
displayName, int argb)
Creates a
ColoredLabel object with an ARGB color int.
|
static ColoredLabel | |
abstract int |
getArgb()
Gets the ARGB int that represents the color.
|
Color | |
abstract String | |
abstract String |
getlabel()
|
Creates a ColoredLabel
object with an ARGB color int.
label | the label string, as provided in the label map packed in the TFLite Model Metadata. |
---|---|
displayName | the display name of label, as configured through
ImageSegmenter.ImageSegmenterOptions.Builder.setDisplayNamesLocale(String) |
argb | the color components for the label in ARGB. See Android Color ints. for more details. |
Creates a ColoredLabel
object with a Color
instance.
label | the label string, as provided in the label map packed in the TFLite Model Metadata. |
---|---|
displayName | the display name of label, as configured through
ImageSegmenter.ImageSegmenterOptions.Builder.setDisplayNamesLocale(String) |
color |
the color components for the label. The Color instatnce is supported on Android
API level 26 and above. For API level lower than 26, use
create(String, String, int) . See Android
Color instances. for more details.
|
Gets the ARGB int that represents the color.
See Android Color ints. for more details.
Gets the Color
instance of the underlying color.
The Color instatnce is supported on Android API level 26 and above. For API level
lower than 26, use
getArgb()
. See Android
Color instances. for more details.