bg method

TransformationData bg(
  1. EraseIndustryType? industryType,
  2. bool? addShadow,
  3. bool? refine
)

Method for EraseBG Background Removal Module

  • industryType : EraseIndustryType (Default: general)
  • addShadow : Add Shadow (Default: false)
  • refine : Refine (Default: true) Returns TransformationData.

Implementation

TransformationData bg(
  EraseIndustryType? industryType,
  bool? addShadow,
  bool? refine,
) {
  var values = <String, String>{};
  if (industryType != null) {
    values['i'] = industryType.value;
  }
  if (addShadow != null) {
    values['shadow'] = addShadow.toString();
  }
  if (refine != null) {
    values['r'] = refine.toString();
  }
  return TransformationData(plugin: 'erase', name: 'bg', values: values);
}