Class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect
- Inherits:
-
Object
- Object
- Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect
- 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 Defects
Instance Attribute Summary collapse
-
#confidence ⇒ Float
Confidence of detected defect.
-
#type ⇒ String
Name of the defect type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect
constructor
A new instance of GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect
Returns a new instance of GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect.
4471 4472 4473 |
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 4471 def initialize(**args) update!(**args) end |
Instance Attribute Details
#confidence ⇒ Float
Confidence of detected defect. Range [0, 1] where 1 indicates strong
confidence of that the defect exists.
Corresponds to the JSON property confidence
4461 4462 4463 |
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 4461 def confidence @confidence end |
#type ⇒ String
Name of the defect type. Supported values are "quality/defect_blurry", "
quality/defect_noisy", "quality/defect_dark", "quality/defect_faint", "quality/
defect_text_too_small", "quality/defect_document_cutoff", "quality/
defect_text_cutoff", "quality/defect_glare"
Corresponds to the JSON property type
4469 4470 4471 |
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 4469 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4476 4477 4478 4479 |
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 4476 def update!(**args) @confidence = args[:confidence] if args.key?(:confidence) @type = args[:type] if args.key?(:type) end |