MaskMode

The mode for generating a mask for the product image if ProductImage.mask_image is not provided. A mask is an image that specifies the region of the garment to be worn.

Enums
MASK_MODE_DEFAULT If unspecified, the service uses a default mode for mask generation.
MASK_MODE_USER_PROVIDED Use the mask provided in ProductImage.mask_image. No mask generation is performed.
MASK_MODE_DETECTION_BOX Generate a mask from detected bounding boxes in ProductImage.image.
MASK_MODE_CLOTHING_AREA Generate a mask by segmenting the clothing area in ProductImage.image.
MASK_MODE_PARSED_PERSON Generate a mask by segmenting the person and clothing in ProductImage.image.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-01-20 UTC.