Description
The Remove Object Route is used to remove objects or areas.
This route will be deprecated soon and replaced soon with the '/eraser' endpoint, that doesn't require image registration.
You can provide the area for removal in the following methods:
Call the /mask_generator endpoint, display the masks to the user, allow them to select a mask, and then send the mask_id to the objects/remove endpoint. Under the example named generated mask, you can see an example of this type of request.
Allow the user to create a mask manually (by using a brush, for example), and then send the mask_url to the objects/remove endpoint. Under the example named manual mask, you can see an example of this type of request. You can access the SDK that demonstrates how to implement a brush feature in your Interface via the following link.
In one request, you may send multiple IDs of objects, or points, or masks for removal, but you cannot combine them in one request. For example, you cannot send a point and a mask_id at the same time.
You can also use this route on a modified image by providing the sid from the response of the previously used route.
This route returns both the URL and the sid associated with the updated image.
Successful operation.
Bad request.
Specified Image does not exist.
Method not allowed.
Internal server error.
Insufficient data. The given input is not supported by the Bria API.