Class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p4beta1ImageQuality
- Inherits:
-
Object
- Object
- Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p4beta1ImageQuality
- 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
-
#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
7994 7995 7996 |
# File 'generated/google/apis/vision_v1p1beta1/classes.rb', line 7994 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
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 |