class Azure::CognitiveServices::ComputerVision::V2_0::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.

is_adult_content[RW]

@return [Boolean] A value indicating if the image contains adult-oriented content.

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.

Public Class Methods

mapper() click to toggle source

Mapper for AdultInfo class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/2.0/generated/azure_cognitiveservices_computervision/models/adult_info.rb, line 36
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'
          }
        },
        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'
          }
        }
      }
    }
  }
end