Class: Azure::MediaServices::Mgmt::V2018_07_01::Models::FaceDetectorPreset
- Inherits:
-
Preset
- Object
- Preset
- Azure::MediaServices::Mgmt::V2018_07_01::Models::FaceDetectorPreset
- Includes:
- MsRestAzure
- Defined in:
- lib/2018-07-01/generated/azure_mgmt_media_services/models/face_detector_preset.rb
Overview
Describes all the settings to be used when analyzing a video in order to detect all the faces present.
Instance Attribute Summary collapse
-
#experimental_options ⇒ Hash{String => String}
for parameters not exposed in the preset itself.
-
#odatatype ⇒ Object
Returns the value of attribute odatatype.
-
#resolution ⇒ AnalysisResolution
your video is analyzed.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for FaceDetectorPreset class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ FaceDetectorPreset
constructor
A new instance of FaceDetectorPreset.
Constructor Details
#initialize ⇒ FaceDetectorPreset
Returns a new instance of FaceDetectorPreset.
17 18 19 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/face_detector_preset.rb', line 17 def initialize @odatatype = "#Microsoft.Media.FaceDetectorPreset" end |
Instance Attribute Details
#experimental_options ⇒ Hash{String => String}
for parameters not exposed in the preset itself
41 42 43 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/face_detector_preset.rb', line 41 def end |
#odatatype ⇒ Object
Returns the value of attribute odatatype.
21 22 23 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/face_detector_preset.rb', line 21 def odatatype @odatatype end |
#resolution ⇒ AnalysisResolution
your video is analyzed. The default behavior is “SourceResolution,” which will keep the input video at its original resolution when analyzed. Using “StandardDefinition” will resize input videos to standard definition while preserving the appropriate aspect ratio. It will only resize if the video is of higher resolution. For example, a 1920x1080 input would be scaled to 640x360 before processing. Switching to “StandardDefinition” will reduce the time it takes to process high resolution video. It may also reduce the cost of using this component (see azure.microsoft.com/en-us/pricing/details/media-services/#analytics for details). However, faces that end up being too small in the resized video may not be detected. Possible values include: ‘SourceResolution’, ‘StandardDefinition’
37 38 39 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/face_detector_preset.rb', line 37 def resolution @resolution end |
Class Method Details
.mapper ⇒ Object
Mapper for FaceDetectorPreset class as Ruby Hash. This will be used for serialization/deserialization.
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/face_detector_preset.rb', line 48 def self.mapper() { client_side_validation: true, required: false, serialized_name: '#Microsoft.Media.FaceDetectorPreset', type: { name: 'Composite', class_name: 'FaceDetectorPreset', model_properties: { odatatype: { client_side_validation: true, required: true, serialized_name: '@odata\\.type', type: { name: 'String' } }, resolution: { client_side_validation: true, required: false, serialized_name: 'resolution', type: { name: 'String' } }, experimental_options: { client_side_validation: true, required: false, serialized_name: 'experimentalOptions', type: { name: 'Dictionary', value: { client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } } } } } end |