class Google::Apis::VisionV1::SafeSearchAnnotation

Set of features pertaining to the image, computed by various computer vision methods over safe-search verticals (for example, adult, spoof, medical, violence).

Attributes

adult[RW]

Represents the adult contents likelihood for the image. Corresponds to the JSON property ‘adult` @return [String]

medical[RW]

Likelihood this is a medical image. Corresponds to the JSON property ‘medical` @return [String]

spoof[RW]

Spoof likelihood. The likelihood that an obvious modification was made to the image’s canonical version to make it appear funny or offensive. Corresponds to the JSON property ‘spoof` @return [String]

violence[RW]

Violence likelihood. Corresponds to the JSON property ‘violence` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/vision_v1/classes.rb, line 1043
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/vision_v1/classes.rb, line 1048
def update!(**args)
  @medical = args[:medical] if args.key?(:medical)
  @violence = args[:violence] if args.key?(:violence)
  @spoof = args[:spoof] if args.key?(:spoof)
  @adult = args[:adult] if args.key?(:adult)
end