mask method
Method for Intelligent Masking
replacementImage
: Replacement Image (Default: )detector
: ImDetector (Default: number_plate)maskType
: ImMaskType (Default: fill_black) Returns TransformationData.
Implementation
TransformationData mask(
String? replacementImage,
ImDetector? detector,
ImMaskType? maskType,
) {
var values = <String, String>{};
if (replacementImage != null) {
values['i'] = replacementImage.toString();
}
if (detector != null) {
values['d'] = detector.value;
}
if (maskType != null) {
values['m'] = maskType.value;
}
return TransformationData(plugin: 'im', name: 'mask', values: values);
}