Class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageImageQualityScoresDetectedDefect
- Inherits:
-
Object
- Object
- Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageImageQualityScoresDetectedDefect
- 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 Defects
Instance Attribute Summary collapse
-
#confidence ⇒ Float
Confidence of detected defect.
-
#type ⇒ String
Name of the defect type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta3DocumentPageImageQualityScoresDetectedDefect
constructor
A new instance of GoogleCloudDocumentaiV1beta3DocumentPageImageQualityScoresDetectedDefect.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta3DocumentPageImageQualityScoresDetectedDefect
Returns a new instance of GoogleCloudDocumentaiV1beta3DocumentPageImageQualityScoresDetectedDefect.
8392 8393 8394 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 8392 def initialize(**args) update!(**args) end |
Instance Attribute Details
#confidence ⇒ Float
Confidence of detected defect. Range [0, 1] where 1 indicates strong
confidence that the defect exists.
Corresponds to the JSON property confidence
8382 8383 8384 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 8382 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
8390 8391 8392 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 8390 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8397 8398 8399 8400 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 8397 def update!(**args) @confidence = args[:confidence] if args.key?(:confidence) @type = args[:type] if args.key?(:type) end |