The API automatically detects objects in an input image and returns their positional and mask information.