Reference documentation and code samples for the Cloud Vision V1 API class Google::Cloud::Vision::V1::SafeSearchAnnotation.
Set of features pertaining to the image, computed by computer vision methods over safe-search verticals (for example, adult, spoof, medical, violence).
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#adult
def adult() -> ::Google::Cloud::Vision::V1::Likelihood
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.
#adult=
def adult=(value) -> ::Google::Cloud::Vision::V1::Likelihood
Parameter
- value (::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.
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.
#adult_confidence
def adult_confidence() -> ::Float
Returns
- (::Float) — Confidence of adult_score. Range [0, 1]. 0 means not confident, 1 means very confident.
#adult_confidence=
def adult_confidence=(value) -> ::Float
Parameter
- value (::Float) — 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.
#medical
def medical() -> ::Google::Cloud::Vision::V1::Likelihood
Returns
- (::Google::Cloud::Vision::V1::Likelihood) — Likelihood that this is a medical image.
#medical=
def medical=(value) -> ::Google::Cloud::Vision::V1::Likelihood
Parameter
- value (::Google::Cloud::Vision::V1::Likelihood) — Likelihood that this is a medical image.
Returns
- (::Google::Cloud::Vision::V1::Likelihood) — Likelihood that this is a medical image.
#medical_confidence
def medical_confidence() -> ::Float
Returns
- (::Float) — Confidence of medical_score. Range [0, 1]. 0 means not confident, 1 means very confident.
#medical_confidence=
def medical_confidence=(value) -> ::Float
Parameter
- value (::Float) — 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.
#nsfw_confidence
def nsfw_confidence() -> ::Float
Returns
- (::Float) — Confidence of nsfw_score. Range [0, 1]. 0 means not confident, 1 means very confident.
#nsfw_confidence=
def nsfw_confidence=(value) -> ::Float
Parameter
- value (::Float) — 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.
#racy
def racy() -> ::Google::Cloud::Vision::V1::Likelihood
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.
#racy=
def racy=(value) -> ::Google::Cloud::Vision::V1::Likelihood
Parameter
- value (::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.
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.
#racy_confidence
def racy_confidence() -> ::Float
Returns
- (::Float) — Confidence of racy_score. Range [0, 1]. 0 means not confident, 1 means very confident.
#racy_confidence=
def racy_confidence=(value) -> ::Float
Parameter
- value (::Float) — 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.
#spoof
def spoof() -> ::Google::Cloud::Vision::V1::Likelihood
Returns
- (::Google::Cloud::Vision::V1::Likelihood) — Spoof likelihood. The likelihood that an modification was made to the image's canonical version to make it appear funny or offensive.
#spoof=
def spoof=(value) -> ::Google::Cloud::Vision::V1::Likelihood
Parameter
- value (::Google::Cloud::Vision::V1::Likelihood) — Spoof likelihood. The likelihood that an modification was made to the image's canonical version to make it appear funny or offensive.
Returns
- (::Google::Cloud::Vision::V1::Likelihood) — Spoof likelihood. The likelihood that an modification was made to the image's canonical version to make it appear funny or offensive.
#spoof_confidence
def spoof_confidence() -> ::Float
Returns
- (::Float) — Confidence of spoof_score. Range [0, 1]. 0 means not confident, 1 means very confident.
#spoof_confidence=
def spoof_confidence=(value) -> ::Float
Parameter
- value (::Float) — 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.
#violence
def violence() -> ::Google::Cloud::Vision::V1::Likelihood
Returns
- (::Google::Cloud::Vision::V1::Likelihood) — Likelihood that this image contains violent content.
#violence=
def violence=(value) -> ::Google::Cloud::Vision::V1::Likelihood
Parameter
- value (::Google::Cloud::Vision::V1::Likelihood) — Likelihood that this image contains violent content.
Returns
- (::Google::Cloud::Vision::V1::Likelihood) — Likelihood that this image contains violent content.
#violence_confidence
def violence_confidence() -> ::Float
Returns
- (::Float) — Confidence of violence_score. Range [0, 1]. 0 means not confident, 1 means very confident.
#violence_confidence=
def violence_confidence=(value) -> ::Float
Parameter
- value (::Float) — 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.