class Azure::CognitiveServices::ComputerVision::V2_1::Models::AdultInfo
An object describing whether the image contains adult-oriented content and/or is racy.
Attributes
adult_score[RW]
@return [Float] Score from 0 to 1 that indicates how much the content is considered adult-oriented within the image.
gore_score[RW]
@return [Float] Score from 0 to 1 that indicates how gory is the image.
is_adult_content[RW]
@return [Boolean] A value indicating if the image contains adult-oriented content.
is_gory_content[RW]
@return [Boolean] A value indicating if the image is gory.
is_racy_content[RW]
@return [Boolean] A value indicating if the image is racy.
racy_score[RW]
@return [Float] Score from 0 to 1 that indicates how suggestive is the image.
Private Class Methods
mapper()
click to toggle source
Mapper for AdultInfo
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/2.1/generated/azure_cognitiveservices_computervision/models/adult_info.rb, line 42 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'AdultInfo', type: { name: 'Composite', class_name: 'AdultInfo', model_properties: { is_adult_content: { client_side_validation: true, required: false, serialized_name: 'isAdultContent', type: { name: 'Boolean' } }, is_racy_content: { client_side_validation: true, required: false, serialized_name: 'isRacyContent', type: { name: 'Boolean' } }, is_gory_content: { client_side_validation: true, required: false, serialized_name: 'isGoryContent', type: { name: 'Boolean' } }, adult_score: { client_side_validation: true, required: false, serialized_name: 'adultScore', type: { name: 'Double' } }, racy_score: { client_side_validation: true, required: false, serialized_name: 'racyScore', type: { name: 'Double' } }, gore_score: { client_side_validation: true, required: false, serialized_name: 'goreScore', type: { name: 'Double' } } } } } end