Class: Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1ImageQuality

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/vision_v1/classes.rb,
generated/google/apis/vision_v1/representations.rb,
generated/google/apis/vision_v1/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



7803
7804
7805
# File 'generated/google/apis/vision_v1/classes.rb', line 7803

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)


7801
7802
7803
# File 'generated/google/apis/vision_v1/classes.rb', line 7801

def quality_score
  @quality_score
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7808
7809
7810
# File 'generated/google/apis/vision_v1/classes.rb', line 7808

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