Class: Google::Apis::ContentwarehouseV1::GoogleCloudDocumentaiV1DocumentPageImageQualityScoresDetectedDefect

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/contentwarehouse_v1/classes.rb,
lib/google/apis/contentwarehouse_v1/representations.rb,
lib/google/apis/contentwarehouse_v1/representations.rb

Overview

Image Quality Defects

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiV1DocumentPageImageQualityScoresDetectedDefect

Returns a new instance of GoogleCloudDocumentaiV1DocumentPageImageQualityScoresDetectedDefect.



5514
5515
5516
# File 'lib/google/apis/contentwarehouse_v1/classes.rb', line 5514

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

Instance Attribute Details

#confidenceFloat

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

Returns:

  • (Float)


5504
5505
5506
# File 'lib/google/apis/contentwarehouse_v1/classes.rb', line 5504

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)


5512
5513
5514
# File 'lib/google/apis/contentwarehouse_v1/classes.rb', line 5512

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5519
5520
5521
5522
# File 'lib/google/apis/contentwarehouse_v1/classes.rb', line 5519

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