Class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScores
- Inherits:
-
Object
- Object
- Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScores
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/documentai_v1beta2/classes.rb,
lib/google/apis/documentai_v1beta2/representations.rb,
lib/google/apis/documentai_v1beta2/representations.rb
Overview
Image Quality Scores for the page image
Instance Attribute Summary collapse
-
#detected_defects ⇒ Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect>
A list of detected defects.
-
#quality_score ⇒ Float
The overall quality score.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScores
constructor
A new instance of GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScores.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScores
Returns a new instance of GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScores.
4818 4819 4820 |
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 4818 def initialize(**args) update!(**args) end |
Instance Attribute Details
#detected_defects ⇒ Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect>
A list of detected defects.
Corresponds to the JSON property detectedDefects
4811 4812 4813 |
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 4811 def detected_defects @detected_defects end |
#quality_score ⇒ Float
The overall quality score. Range [0, 1] where 1 is perfect quality.
Corresponds to the JSON property qualityScore
4816 4817 4818 |
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 4816 def quality_score @quality_score end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4823 4824 4825 4826 |
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 4823 def update!(**args) @detected_defects = args[:detected_defects] if args.key?(:detected_defects) @quality_score = args[:quality_score] if args.key?(:quality_score) end |