Class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageImageQualityScores
- Inherits:
-
Object
- Object
- Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageImageQualityScores
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/documentai_v1beta3/classes.rb,
lib/google/apis/documentai_v1beta3/representations.rb,
lib/google/apis/documentai_v1beta3/representations.rb
Overview
Image quality scores for the page image.
Instance Attribute Summary collapse
-
#detected_defects ⇒ Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageImageQualityScoresDetectedDefect>
A list of detected defects.
-
#quality_score ⇒ Float
The overall quality score.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta3DocumentPageImageQualityScores
constructor
A new instance of GoogleCloudDocumentaiV1beta3DocumentPageImageQualityScores.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta3DocumentPageImageQualityScores
Returns a new instance of GoogleCloudDocumentaiV1beta3DocumentPageImageQualityScores.
5986 5987 5988 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 5986 def initialize(**args) update!(**args) end |
Instance Attribute Details
#detected_defects ⇒ Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageImageQualityScoresDetectedDefect>
A list of detected defects.
Corresponds to the JSON property detectedDefects
5979 5980 5981 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 5979 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
5984 5985 5986 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 5984 def quality_score @quality_score end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5991 5992 5993 5994 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 5991 def update!(**args) @detected_defects = args[:detected_defects] if args.key?(:detected_defects) @quality_score = args[:quality_score] if args.key?(:quality_score) end |