選取您的 Cookie 偏好設定

我們使用提供自身網站和服務所需的基本 Cookie 和類似工具。我們使用效能 Cookie 收集匿名統計資料,以便了解客戶如何使用我們的網站並進行改進。基本 Cookie 無法停用,但可以按一下「自訂」或「拒絕」以拒絕效能 Cookie。

如果您同意,AWS 與經核准的第三方也會使用 Cookie 提供實用的網站功能、記住您的偏好設定,並顯示相關內容,包括相關廣告。若要接受或拒絕所有非必要 Cookie,請按一下「接受」或「拒絕」。若要進行更詳細的選擇,請按一下「自訂」。

建立映像的藍圖

焦點模式
建立映像的藍圖 - Amazon Bedrock

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

Amazon Bedrock Data Automation (BDA) 可讓您建立映像模態的自訂藍圖。您可以使用藍圖來定義輸入檔案所需的輸出格式和擷取邏輯。透過建立自訂藍圖,您可以量身打造 BDA 的輸出,以符合您的特定需求。在一個專案中,您可以套用單一影像藍圖。

定義影像的資料欄位

BDA 可讓您透過建立藍圖,定義要從映像中識別的特定欄位。這可做為一組指示,引導 BDA 了解要從映像中擷取和產生哪些資訊。

定義欄位

若要開始使用,您可以建立 欄位來識別您要擷取或產生的資訊,例如 product_type。對於每個欄位,您需要提供描述、資料類型和推論類型。

若要定義欄位,您需要指定下列參數:

  • 描述:提供欄位代表內容的自然語言說明。此描述有助於了解 欄位的內容和目的,協助準確擷取資料。

  • 類型:指定欄位值的資料類型。BDA 支援下列類型:

    • string:適用於文字型值

    • number:適用於數值

    • 布林值:適用於 true 或 false 值

    • 陣列:適用於可以具有相同類型之多個值的欄位 (例如字串陣列或數字陣列)

  • 推論類型:指示 BDA 如何處理欄位值的回應產生。對於影像,BDA 僅支援推論類型。這表示 BDA 會根據影像中存在的資訊推斷欄位值。

下圖顯示 Amazon Bedrock 主控台中的「新增欄位」模組,其中包含下列範例欄位和值:

  • 欄位名稱:product_type

  • 類型:字串

  • 指示:廣告的主要產品或服務是什麼,例如服裝、電子、食品和飲料等?

  • 擷取類型:推斷。

Amazon Bedrock 顯示下拉式選單和文字欄位以指定影像欄位的 UI。

以下是 API 的 JSON 結構描述中相同欄位定義的範例:

"product_type":{ "type": "string", "inferenceType": "inferred", "description": "What is the primary product or service being advertised, e.g., Clothing, Electronics, Food & Beverage, etc.?" }

在此範例中:

  • 類型設定為字串,表示 product_type 欄位的值應為文字型。

  • inferenceType 設定為推斷,指示 BDA 根據影像中存在的資訊推斷值。

  • 描述提供額外的內容,釐清 欄位應識別影像中的產品類型。product_type 欄位的範例值為:衣物、電子用品和食品或飲料。

透過為每個欄位指定這些參數,您可以為 BDA 提供必要資訊,以準確擷取並從映像產生洞見。

廣告影像的藍圖欄位範例

以下是分析廣告影像的藍圖欄位範例。

Field 指示 擷取類型 Type
product_type What is the primary product or service being advertised? Ex: Clothing, Electronics, Food & Beverage inferred string
product_placement How is the product placed in the advertisement image, e.g., centered, in the background, held by a person, etc.? inferred string
product_size Product size is small if size is less than 30% of the image, medium if it is between 30 to 60%, and large if it is larger than 60% of the image inferred string
image_style Classify the image style of the ad. For example, product image, lifestyle, portrait, retro, infographic, none of the above. inferred string
image_background Background can be" solid color, natural landscape, indoor, outdoor, or abstract. inferred string
image_sentiment Extract the mood of the image, which can be one of 'Positive', 'Negative', 'Neutral' inferred string
promotional_offer Does the advertisement include any discounts, offers, or promotional messages? inferred boolean

媒體搜尋的藍圖欄位範例

以下是從影像產生中繼資料以進行媒體搜尋的一些藍圖欄位範例。

Field 指示 擷取類型 Type
person_counting How many people are in the image? inferred number
indoor_outdoor_classification Is the image indoor or outdoor? inferred string
scene_classification Classify the setting or environment of the image. Ex: Urban, Rural, Natural, Historical, Residential, Commercial, Recreational, Public Spaces inferred string
animal_identification Does the image contain any animals? inferred boolean
animal_type What type of animals are present in the image? inferred string
color_identification Is the image in color or black and white? inferred string
vehicle_identification Is there any vehicle visible in the image? inferred string
vehicle_type What type of vehicle is present in the image? inferred string
watermark_identification Is there any watermark visible in the image? inferred boolean
隱私權網站條款Cookie 偏好設定
© 2025, Amazon Web Services, Inc.或其附屬公司。保留所有權利。