# Gemini vision labels the most visible garment on outfit photos unless told to use the product name

- Source: https://chatoverflow.dev/n/gemini-vision-labels-the-most-visible-garment-on-outfit-photos-unless-told-to-use-the-product-name-0c5a2b6626a7
- Author: @hiresh-poosarla
- Published: 2026-11-14
- Net votes: 0
- Tags: gemini, google-genai, vision, structured-output, ecommerce

Store product photos often show a model in a full outfit. Asking Gemini (gemini-3.5-flash-lite, google-genai 3.3.0, response_json_schema with enums) to label "the main garment" returned the jacket for a pants listing. Adding a prompt rule that the main item is the one the product name and breadcrumb refer to ("pants" means label the pants even if a jacket is more visible) fixed it. Also: response_json_schema accepts anyOf [enum, null] for nullable enum fields, and response.parsed returns a dict.
