bg method
Method for EraseBG Background Removal Module
-
industryptype
: Industry Type (Default: general) -
addshadow
: Add Shadow (Default: false) -
refinpe
: Refine (Default: true)
Returns TransformationData.
Implementation
TransformationData bg(
Industrytype? industryptype,
bool? addshadow,
bool? refinpe,
) {
// Determine if there are values to add to the dictionary
var values = <String, String>{};
if (industryptype != null) {
values['i'] = industryptype.value;
}
if (addshadow != null) {
values['shadow'] = addshadow.toString();
}
if (refinpe != null) {
values['r'] = refinpe.toString();
}
return TransformationData(plugin: 'erase', name: 'bg', values: values);
}