Class: Google::Cloud::Vision::V1::SafeSearchAnnotation

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/vision/v1/image_annotator.rb

Overview

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

Instance Attribute Summary collapse

Instance Attribute Details

#adult::Google::Cloud::Vision::V1::Likelihood

Returns Represents the adult content likelihood for the image. Adult content may contain elements such as nudity, pornographic images or cartoons, or sexual activities.

Returns:

  • (::Google::Cloud::Vision::V1::Likelihood)

    Represents the adult content likelihood for the image. Adult content may contain elements such as nudity, pornographic images or cartoons, or sexual activities.



485
486
487
488
# File 'proto_docs/google/cloud/vision/v1/image_annotator.rb', line 485

class SafeSearchAnnotation
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#adult_confidence::Float

Returns Confidence of adult_score. Range [0, 1]. 0 means not confident, 1 means very confident.

Returns:

  • (::Float)

    Confidence of adult_score. Range [0, 1]. 0 means not confident, 1 means very confident.



485
486
487
488
# File 'proto_docs/google/cloud/vision/v1/image_annotator.rb', line 485

class SafeSearchAnnotation
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#medical::Google::Cloud::Vision::V1::Likelihood

Returns Likelihood that this is a medical image.

Returns:



485
486
487
488
# File 'proto_docs/google/cloud/vision/v1/image_annotator.rb', line 485

class SafeSearchAnnotation
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#medical_confidence::Float

Returns Confidence of medical_score. Range [0, 1]. 0 means not confident, 1 means very confident.

Returns:

  • (::Float)

    Confidence of medical_score. Range [0, 1]. 0 means not confident, 1 means very confident.



485
486
487
488
# File 'proto_docs/google/cloud/vision/v1/image_annotator.rb', line 485

class SafeSearchAnnotation
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#nsfw_confidence::Float

Returns Confidence of nsfw_score. Range [0, 1]. 0 means not confident, 1 means very confident.

Returns:

  • (::Float)

    Confidence of nsfw_score. Range [0, 1]. 0 means not confident, 1 means very confident.



485
486
487
488
# File 'proto_docs/google/cloud/vision/v1/image_annotator.rb', line 485

class SafeSearchAnnotation
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#racy::Google::Cloud::Vision::V1::Likelihood

Returns Likelihood that the request image contains racy content. Racy content may include (but is not limited to) skimpy or sheer clothing, strategically covered nudity, lewd or provocative poses, or close-ups of sensitive body areas.

Returns:

  • (::Google::Cloud::Vision::V1::Likelihood)

    Likelihood that the request image contains racy content. Racy content may include (but is not limited to) skimpy or sheer clothing, strategically covered nudity, lewd or provocative poses, or close-ups of sensitive body areas.



485
486
487
488
# File 'proto_docs/google/cloud/vision/v1/image_annotator.rb', line 485

class SafeSearchAnnotation
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#racy_confidence::Float

Returns Confidence of racy_score. Range [0, 1]. 0 means not confident, 1 means very confident.

Returns:

  • (::Float)

    Confidence of racy_score. Range [0, 1]. 0 means not confident, 1 means very confident.



485
486
487
488
# File 'proto_docs/google/cloud/vision/v1/image_annotator.rb', line 485

class SafeSearchAnnotation
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#spoof::Google::Cloud::Vision::V1::Likelihood

Returns Spoof likelihood. The likelihood that an modification was made to the image's canonical version to make it appear funny or offensive.

Returns:



485
486
487
488
# File 'proto_docs/google/cloud/vision/v1/image_annotator.rb', line 485

class SafeSearchAnnotation
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#spoof_confidence::Float

Returns Confidence of spoof_score. Range [0, 1]. 0 means not confident, 1 means very confident.

Returns:

  • (::Float)

    Confidence of spoof_score. Range [0, 1]. 0 means not confident, 1 means very confident.



485
486
487
488
# File 'proto_docs/google/cloud/vision/v1/image_annotator.rb', line 485

class SafeSearchAnnotation
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#violence::Google::Cloud::Vision::V1::Likelihood

Returns Likelihood that this image contains violent content.

Returns:



485
486
487
488
# File 'proto_docs/google/cloud/vision/v1/image_annotator.rb', line 485

class SafeSearchAnnotation
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#violence_confidence::Float

Returns Confidence of violence_score. Range [0, 1]. 0 means not confident, 1 means very confident.

Returns:

  • (::Float)

    Confidence of violence_score. Range [0, 1]. 0 means not confident, 1 means very confident.



485
486
487
488
# File 'proto_docs/google/cloud/vision/v1/image_annotator.rb', line 485

class SafeSearchAnnotation
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end