Class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageImageQualityScores

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

Overview

Image quality scores for the page image.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiV1DocumentPageImageQualityScores

Returns a new instance of GoogleCloudDocumentaiV1DocumentPageImageQualityScores.



3053
3054
3055
# File 'lib/google/apis/documentai_v1/classes.rb', line 3053

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

Instance Attribute Details

#detected_defectsArray<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageImageQualityScoresDetectedDefect>

A list of detected defects. Corresponds to the JSON property detectedDefects



3046
3047
3048
# File 'lib/google/apis/documentai_v1/classes.rb', line 3046

def detected_defects
  @detected_defects
end

#quality_scoreFloat

The overall quality score. Range [0, 1] where 1 is perfect quality. Corresponds to the JSON property qualityScore

Returns:

  • (Float)


3051
3052
3053
# File 'lib/google/apis/documentai_v1/classes.rb', line 3051

def quality_score
  @quality_score
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3058
3059
3060
3061
# File 'lib/google/apis/documentai_v1/classes.rb', line 3058

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