Advanced options for background removal. See detailed description in the table below.
Below are advanced options supported by remove:
Option
Type
Description
category
string or object
Provides a hint about the nature of object in the foreground for a more accurate result of background removal. Possible values:
"general" is suitable for all objects and is used by default.
"products" or {"type": "products", "version": "3"} is the advanced category that will have better results with product, grocery and food objects. By default, Claid uses the latest version available, but you can also access previous versions "version: "1" or "version": "2".
"cars" is the advanced category that will have better results with automotive objects.
The category background removal option is used by default and cannot be used together with selective.
selective
object
Allows to specify exactly which object should remain on the image, e.g. "food", "sleeping bag", "product", etc. Specifying which object to keep is mandatory and should be short and precise.
The Selective background removal is an alternative to the category option and cannot be used together.
clipping
boolean
false by default. If true, image is clipped to the foreground object bounds. Resulting image canvas is controlled by the resizing block.
Advanced options for background blurring. See detailed description in the table below.
Below are advanced options supported by blur:
Advanced option
Type
Description
category
string
Provides a hint about the nature of object in the foreground for a more accurate result of background blurring. Possible values:
"general" is suitable for all objects and is used by default.
"products"is the advanced category that will have better results with product, grocery and food objects.
"cars" is the advanced category that will have better results with automotive objects.
The category background blur option is used by default and cannot be used together with selective.
selective
object
Allows to specify exactly which object should remain on the image unblurred, e.g. "food", "sleeping bag", "product", etc. Specifying which object to keep is mandatory and should be short and precise.
The Selective background blur is an alternative to the category option and cannot be used together.
type
string
Selects the type of blur to be applied to the background.
Possible values:
"regular" is for gaussian blur type. Creates an effect of laying a translucent material like vellum on top of the image background. It is used as default parameter.
"lens"is for lens blur type with linear focus. Mimics the blur applied to a photo when a wide aperture is used to achieve a narrow depth of field, so that the foreground objects stands out.
level
string
Selects the level of blur strength to be applied to the background. Possible values:
"low" is for low blur strength.
"medium" is for medium blur strength. It is used as default parameter.