Class: AILabTools::Generated::Params::PortraitFaceAnalyzerParams
- Defined in:
- lib/ailabtools/generated/params/portrait_face_analyzer_params.rb
Instance Attribute Summary collapse
-
#face_attributes_type ⇒ Object
readonly
Returns the value of attribute face_attributes_type.
-
#image ⇒ Object
readonly
Returns the value of attribute image.
-
#max_face_num ⇒ Object
readonly
Returns the value of attribute max_face_num.
-
#need_rotate_detection ⇒ Object
readonly
Returns the value of attribute need_rotate_detection.
Instance Method Summary collapse
- #body_fields ⇒ Object
-
#initialize(image:, max_face_num: nil, face_attributes_type: nil, need_rotate_detection: nil) ⇒ PortraitFaceAnalyzerParams
constructor
A new instance of PortraitFaceAnalyzerParams.
- #query_fields ⇒ Object
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_type ⇒ Object (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 |
#image ⇒ Object (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_num ⇒ Object (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_detection ⇒ Object (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_fields ⇒ Object
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_fields ⇒ Object
15 16 17 |
# File 'lib/ailabtools/generated/params/portrait_face_analyzer_params.rb', line 15 def query_fields {} end |