Class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1ImageQuality
- Inherits:
-
Object
- Object
- Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1ImageQuality
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/vision_v1p2beta1/classes.rb,
generated/google/apis/vision_v1p2beta1/representations.rb,
generated/google/apis/vision_v1p2beta1/representations.rb
Overview
Stores image quality scores, could be aesthetic quality or technical quality.
Instance Attribute Summary collapse
-
#quality_score ⇒ Float
A score representing the aesthetic/technical quality of the image.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudVisionV1p4beta1ImageQuality
constructor
A new instance of GoogleCloudVisionV1p4beta1ImageQuality.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleCloudVisionV1p4beta1ImageQuality
Returns a new instance of GoogleCloudVisionV1p4beta1ImageQuality
7804 7805 7806 |
# File 'generated/google/apis/vision_v1p2beta1/classes.rb', line 7804 def initialize(**args) update!(**args) end |
Instance Attribute Details
#quality_score ⇒ Float
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
7802 7803 7804 |
# File 'generated/google/apis/vision_v1p2beta1/classes.rb', line 7802 def quality_score @quality_score end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7809 7810 7811 |
# File 'generated/google/apis/vision_v1p2beta1/classes.rb', line 7809 def update!(**args) @quality_score = args[:quality_score] if args.key?(:quality_score) end |