Class: Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1ImageQuality
- Inherits:
-
Object
- Object
- Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1ImageQuality
- 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
-
#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
7803 7804 7805 |
# File 'generated/google/apis/vision_v1/classes.rb', line 7803 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
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 |