Class: AWSCDK::Bedrock::CfnDataAutomationProject::ImageStandardExtractionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Bedrock::CfnDataAutomationProject::ImageStandardExtractionProperty
- Defined in:
- bedrock/cfn_data_automation_project.rb
Overview
Settings for generating data from images.
Instance Attribute Summary collapse
-
#bounding_box ⇒ AWSCDK::IResolvable, AWSCDK::Bedrock::CfnDataAutomationProject::ImageBoundingBoxProperty
readonly
Settings for generating bounding boxes.
-
#category ⇒ AWSCDK::IResolvable, AWSCDK::Bedrock::CfnDataAutomationProject::ImageExtractionCategoryProperty
readonly
Settings for generating categorical data.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(bounding_box:, category:) ⇒ ImageStandardExtractionProperty
constructor
A new instance of ImageStandardExtractionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(bounding_box:, category:) ⇒ ImageStandardExtractionProperty
Returns a new instance of ImageStandardExtractionProperty.
1572 1573 1574 1575 1576 1577 |
# File 'bedrock/cfn_data_automation_project.rb', line 1572 def initialize(bounding_box:, category:) @bounding_box = bounding_box.is_a?(Hash) ? ::AWSCDK::Bedrock::CfnDataAutomationProject::ImageBoundingBoxProperty.new(**bounding_box.transform_keys(&:to_sym)) : bounding_box Jsii::Type.check_type(@bounding_box, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrLkNmbkRhdGFBdXRvbWF0aW9uUHJvamVjdC5JbWFnZUJvdW5kaW5nQm94UHJvcGVydHkifV19fQ==")), "boundingBox") @category = category.is_a?(Hash) ? ::AWSCDK::Bedrock::CfnDataAutomationProject::ImageExtractionCategoryProperty.new(**category.transform_keys(&:to_sym)) : category Jsii::Type.check_type(@category, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrLkNmbkRhdGFBdXRvbWF0aW9uUHJvamVjdC5JbWFnZUV4dHJhY3Rpb25DYXRlZ29yeVByb3BlcnR5In1dfX0=")), "category") end |
Instance Attribute Details
#bounding_box ⇒ AWSCDK::IResolvable, AWSCDK::Bedrock::CfnDataAutomationProject::ImageBoundingBoxProperty (readonly)
Settings for generating bounding boxes.
1583 1584 1585 |
# File 'bedrock/cfn_data_automation_project.rb', line 1583 def bounding_box @bounding_box end |
#category ⇒ AWSCDK::IResolvable, AWSCDK::Bedrock::CfnDataAutomationProject::ImageExtractionCategoryProperty (readonly)
Settings for generating categorical data.
1588 1589 1590 |
# File 'bedrock/cfn_data_automation_project.rb', line 1588 def category @category end |
Class Method Details
.jsii_properties ⇒ Object
1590 1591 1592 1593 1594 1595 |
# File 'bedrock/cfn_data_automation_project.rb', line 1590 def self.jsii_properties { :bounding_box => "boundingBox", :category => "category", } end |
Instance Method Details
#to_jsii ⇒ Object
1597 1598 1599 1600 1601 1602 1603 1604 |
# File 'bedrock/cfn_data_automation_project.rb', line 1597 def to_jsii result = {} result.merge!({ "boundingBox" => @bounding_box, "category" => @category, }) result.compact end |