Drop Your Image Anywhere
Color Palette
Image Quality
Object Detection
Object Mask Detection
Text Extraction
Search by Image
Search by Color
Images Alignment
Images Differences
Images Distance

Object Mask DetectionPick a sample or drop an image

ParametersUnfold to see all parametersAutorefreshONOFF

only_biggestKeep the biggest contours to detect the background


DetailsMore infos...

Return a binary mask of an lonely object in an image. 0 means background, 1 for the object.


POST https://api.core.ltutech.com/v2/services/image/objectMaskDetection


  • headers:
    • authorization: your access token
  • body: parameters are sent under binary or ASCII characters format as separated part in the body of a multipart form request
    • image: a binary image or a string that contains an url
    • algorithm: a string that define the methods to apply to the image to delimit objects
    • color_space: a string that contains the color space to be used
    • channel: a char that is the channel of the chosen color space
    • only_biggest: a boolean to keep or not the biggest contours to detect the background

To implement this feature in your project you need to be logged in. To know how to get your token you can consult the getToken documentation. Should you need a test account please contact us.

Code Snippetscurlpythonnodejsc

curl --request POST \ 'https://api.core.ltutech.com/v2/services/image/objectMaskDetection?algorithm=SOBEL&color_space=RGB&channel=R&only_biggest=true' \ --header 'Authorization: Bearer <your token>' \ --header 'Accept: application/json' \ --form 'image=@“/Users/Pictures/image.jpg”’
Do you like this functionality ?
Would you like to test with your own images in your own environment ?
To get your API Key and create a test account, please contact us.
Contact Us

JsonDepth 1234