Class: AILabTools::Generated::Params::PortraitFaceAnalyzerParams

Inherits:
Params
  • Object
show all
Defined in:
lib/ailabtools/generated/params/portrait_face_analyzer_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(image:, max_face_num: nil, face_attributes_type: nil, need_rotate_detection: nil) ⇒ PortraitFaceAnalyzerParams

Returns a new instance of PortraitFaceAnalyzerParams.



8
9
10
11
12
13
# File 'lib/ailabtools/generated/params/portrait_face_analyzer_params.rb', line 8

def initialize(image:, max_face_num: nil, face_attributes_type: nil, need_rotate_detection: nil)
  @image = image
  @max_face_num = max_face_num
  @face_attributes_type = face_attributes_type
  @need_rotate_detection = need_rotate_detection
end

Instance Attribute Details

#face_attributes_typeObject (readonly)

Returns the value of attribute face_attributes_type.



7
8
9
# File 'lib/ailabtools/generated/params/portrait_face_analyzer_params.rb', line 7

def face_attributes_type
  @face_attributes_type
end

#imageObject (readonly)

Returns the value of attribute image.



7
8
9
# File 'lib/ailabtools/generated/params/portrait_face_analyzer_params.rb', line 7

def image
  @image
end

#max_face_numObject (readonly)

Returns the value of attribute max_face_num.



7
8
9
# File 'lib/ailabtools/generated/params/portrait_face_analyzer_params.rb', line 7

def max_face_num
  @max_face_num
end

#need_rotate_detectionObject (readonly)

Returns the value of attribute need_rotate_detection.



7
8
9
# File 'lib/ailabtools/generated/params/portrait_face_analyzer_params.rb', line 7

def need_rotate_detection
  @need_rotate_detection
end

Instance Method Details

#body_fieldsObject



19
20
21
22
23
24
25
26
# File 'lib/ailabtools/generated/params/portrait_face_analyzer_params.rb', line 19

def body_fields
  compact_hash({
    "image" => @image,
    "max_face_num" => @max_face_num,
    "face_attributes_type" => @face_attributes_type,
    "need_rotate_detection" => @need_rotate_detection,
  })
end

#query_fieldsObject



15
16
17
# File 'lib/ailabtools/generated/params/portrait_face_analyzer_params.rb', line 15

def query_fields
  {}
end