Class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect

Returns a new instance of GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect.



4641
4642
4643
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 4641

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#confidenceFloat

Confidence of detected defect. Range [0, 1] where 1 indicates strong confidence of that the defect exists. Corresponds to the JSON property confidence

Returns:

  • (Float)


4631
4632
4633
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 4631

def confidence
  @confidence
end

#typeString

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

Returns:

  • (String)


4639
4640
4641
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 4639

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4646
4647
4648
4649
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 4646

def update!(**args)
  @confidence = args[:confidence] if args.key?(:confidence)
  @type = args[:type] if args.key?(:type)
end