BackgroundRemoval
class BackgroundRemoval extends EffectAction
Class BackgroundRemoval
Uses the Cloudinary AI Background Removal add-on to make the background of an image transparent.
Learn more: Background removal
Methods
__construct(bool|null $fineEdges = null, array $hints = [])
RemoveBackground constructor.
fineEdges(bool|null $fineEdges = true)
Provides better results if you know that the object has more clear-cut edges.
hints(array ...$foregroundObjects)
Sets a list of foreground objects to keep.
Details
__construct(bool|null $fineEdges = null, array $hints = [])
RemoveBackground constructor.
BackgroundRemoval
fineEdges(bool|null $fineEdges = true)
Provides better results if you know that the object has more clear-cut edges.
BackgroundRemoval
hints(array ...$foregroundObjects)
Sets a list of foreground objects to keep.
Constants
FINE_EDGES |
|
HINTS |
|