Automatic Object Detection

smart object cropping

The Search API is smart to detect the objects present in the query image and suggest the best matched product type to run the search on.

It is now able to detect various product types. Based on the domain of your application, the below sets of object types can be detected respectively:

  • Fashion domain: bag, belt, bottom, dress, ethnic_wear, eyewear, gloves, hair_accessories, headwear, jewelry, onepiece, outerwear, photo_frame, scarf, shoe, skirt, swimwear, tie, top, underwear_bottom, underwear_top, watch, anklet, bracelet, earring, head_jewelry, jewelry_product, necklace, ring
  • Furniture domain: bed, cabinet_and_shelf, clock, floating_shelf, lighting, mirror, photo_frame, product_item, seating, soft_furnishing, standing_lamp, table, vase_and_pot, shelf_and_cabinet.

Use detection or point parameters to suggest the particular objects of interest in the query image. box and point parameters are not allowed to appear in the same request.

NameTypeDescription
detectionString (all)Selects the type of objects to be recognized in the query image, can be used in following ways:
  • detection = all, recognize all the possible types of objects.
  • detection = {type}, recognize objects of the specified object type. Please input the object types listed above based on the domain of your application
  • detection = null, recognize all the possible types of objects.
  • detection = “ “, turn off detection, use the whole image to search.
  • detection = anything other than the supported product type, turn off detection, use the whole image to search.
    box and point parameters are not allowed to appear in the same request.
detection_limitInteger (5)Maximum number of products could be detected for a given image. Values must range between 1-30.
Detection_limit is ignored when point exists.
boxStringUse the box parameter to refine the search area of the image. The box coordinates are set with respect to the original size of the uploading image. For box parameters given in the sequences as x1, y1, x2, y2, (x1, y1) is the top-left corner of the box and (x2, y2) is the bottom-right corner of the box.
pointString

Pixel coordinates to indicate the position of the target object [x,y]. The upper-left corner of an image is [0,0].

Stack inputs for multiple points up to 5 values as default. box and point parameters are not allowed to appear in the same request.