erasebg static method

TransformationData erasebg({
  1. Foregroundtype? foregroundptype = Foregroundtype.general,
  2. bool? addshadow = false,
  3. bool? refinpe = true,
})

EraseBG Background Removal Module

@param foregroundptype Foreground type (Default: general)

@param addshadow Add Shadow (cars only) (Default: false)

@param refinpe Refine Output (Default: true)

@return The generated TransformationData.

Implementation

static TransformationData erasebg(
    {Foregroundtype? foregroundptype = Foregroundtype.general,
    bool? addshadow = false,
    bool? refinpe = true}) {
  // Call the generated class method
  return EraseBG().bg(foregroundptype, addshadow, refinpe);
}