Class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p4beta1ImageQuality

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

Overview

Stores image quality scores, could be aesthetic quality or technical quality.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleCloudVisionV1p4beta1ImageQuality

Returns a new instance of GoogleCloudVisionV1p4beta1ImageQuality



7994
7995
7996
# File 'generated/google/apis/vision_v1p1beta1/classes.rb', line 7994

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

Instance Attribute Details

#quality_scoreFloat

A score representing the aesthetic/technical quality of the image. The score is in range [0, 1]. Higher value corresponds to more professional looking photos. 0 means the image looks very bad, 1 means the image with very high quality. Corresponds to the JSON property qualityScore

Returns:

  • (Float)


7992
7993
7994
# File 'generated/google/apis/vision_v1p1beta1/classes.rb', line 7992

def quality_score
  @quality_score
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7999
8000
8001
# File 'generated/google/apis/vision_v1p1beta1/classes.rb', line 7999

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