Class: TencentCloud::Bda::V20200324::SegmentationOptions
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Bda::V20200324::SegmentationOptions
- Defined in:
- lib/v20200324/models.rb
Overview
此参数为分割选项,请根据需要选择自己所想从图片中分割的部分。注意所有选项均为非必选,如未选择则值默认为false, 但是必须要保证多于一个选项的描述为true。
Instance Attribute Summary collapse
- #Background ⇒ Object
- #Belongings ⇒ Object
- #Body ⇒ Object
- #Earrings ⇒ Object
- #Face ⇒ Object
- #Hair ⇒ Object
- #Hat ⇒ Object
- #Head ⇒ Object
- #Headdress ⇒ Object
- #LeftEar ⇒ Object
- #LeftEye ⇒ Object
- #LeftEyebrow ⇒ Object
- #LowerLip ⇒ Object
- #Mouth ⇒ Object
- #Necklace ⇒ Object
- #Nose ⇒ Object
- #RightEar ⇒ Object
- #RightEye ⇒ Object
- #RightEyebrow ⇒ Object
- #Tooth ⇒ Object
- #UpperLip ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(background = nil, hair = nil, lefteyebrow = nil, righteyebrow = nil, lefteye = nil, righteye = nil, nose = nil, upperlip = nil, lowerlip = nil, tooth = nil, mouth = nil, leftear = nil, rightear = nil, face = nil, head = nil, body = nil, hat = nil, headdress = nil, earrings = nil, necklace = nil, belongings = nil) ⇒ SegmentationOptions
constructor
A new instance of SegmentationOptions.
Constructor Details
#initialize(background = nil, hair = nil, lefteyebrow = nil, righteyebrow = nil, lefteye = nil, righteye = nil, nose = nil, upperlip = nil, lowerlip = nil, tooth = nil, mouth = nil, leftear = nil, rightear = nil, face = nil, head = nil, body = nil, hat = nil, headdress = nil, earrings = nil, necklace = nil, belongings = nil) ⇒ SegmentationOptions
Returns a new instance of SegmentationOptions.
1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 |
# File 'lib/v20200324/models.rb', line 1555 def initialize(background=nil, hair=nil, lefteyebrow=nil, righteyebrow=nil, lefteye=nil, righteye=nil, nose=nil, upperlip=nil, lowerlip=nil, tooth=nil, mouth=nil, leftear=nil, rightear=nil, face=nil, head=nil, body=nil, hat=nil, headdress=nil, earrings=nil, necklace=nil, belongings=nil) @Background = background @Hair = hair @LeftEyebrow = lefteyebrow @RightEyebrow = righteyebrow @LeftEye = lefteye @RightEye = righteye @Nose = nose @UpperLip = upperlip @LowerLip = lowerlip @Tooth = tooth @Mouth = mouth @LeftEar = leftear @RightEar = rightear @Face = face @Head = head @Body = body @Hat = hat @Headdress = headdress @Earrings = earrings @Necklace = necklace @Belongings = belongings end |
Instance Attribute Details
#Background ⇒ Object
1553 1554 1555 |
# File 'lib/v20200324/models.rb', line 1553 def Background @Background end |
#Belongings ⇒ Object
1553 1554 1555 |
# File 'lib/v20200324/models.rb', line 1553 def Belongings @Belongings end |
#Body ⇒ Object
1553 1554 1555 |
# File 'lib/v20200324/models.rb', line 1553 def Body @Body end |
#Earrings ⇒ Object
1553 1554 1555 |
# File 'lib/v20200324/models.rb', line 1553 def Earrings @Earrings end |
#Face ⇒ Object
1553 1554 1555 |
# File 'lib/v20200324/models.rb', line 1553 def Face @Face end |
#Hair ⇒ Object
1553 1554 1555 |
# File 'lib/v20200324/models.rb', line 1553 def Hair @Hair end |
#Hat ⇒ Object
1553 1554 1555 |
# File 'lib/v20200324/models.rb', line 1553 def Hat @Hat end |
#Head ⇒ Object
1553 1554 1555 |
# File 'lib/v20200324/models.rb', line 1553 def Head @Head end |
#Headdress ⇒ Object
1553 1554 1555 |
# File 'lib/v20200324/models.rb', line 1553 def Headdress @Headdress end |
#LeftEar ⇒ Object
1553 1554 1555 |
# File 'lib/v20200324/models.rb', line 1553 def LeftEar @LeftEar end |
#LeftEye ⇒ Object
1553 1554 1555 |
# File 'lib/v20200324/models.rb', line 1553 def LeftEye @LeftEye end |
#LeftEyebrow ⇒ Object
1553 1554 1555 |
# File 'lib/v20200324/models.rb', line 1553 def LeftEyebrow @LeftEyebrow end |
#LowerLip ⇒ Object
1553 1554 1555 |
# File 'lib/v20200324/models.rb', line 1553 def LowerLip @LowerLip end |
#Mouth ⇒ Object
1553 1554 1555 |
# File 'lib/v20200324/models.rb', line 1553 def Mouth @Mouth end |
#Necklace ⇒ Object
1553 1554 1555 |
# File 'lib/v20200324/models.rb', line 1553 def Necklace @Necklace end |
#Nose ⇒ Object
1553 1554 1555 |
# File 'lib/v20200324/models.rb', line 1553 def Nose @Nose end |
#RightEar ⇒ Object
1553 1554 1555 |
# File 'lib/v20200324/models.rb', line 1553 def RightEar @RightEar end |
#RightEye ⇒ Object
1553 1554 1555 |
# File 'lib/v20200324/models.rb', line 1553 def RightEye @RightEye end |
#RightEyebrow ⇒ Object
1553 1554 1555 |
# File 'lib/v20200324/models.rb', line 1553 def RightEyebrow @RightEyebrow end |
#Tooth ⇒ Object
1553 1554 1555 |
# File 'lib/v20200324/models.rb', line 1553 def Tooth @Tooth end |
#UpperLip ⇒ Object
1553 1554 1555 |
# File 'lib/v20200324/models.rb', line 1553 def UpperLip @UpperLip end |
Instance Method Details
#deserialize(params) ⇒ Object
1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 |
# File 'lib/v20200324/models.rb', line 1579 def deserialize(params) @Background = params['Background'] @Hair = params['Hair'] @LeftEyebrow = params['LeftEyebrow'] @RightEyebrow = params['RightEyebrow'] @LeftEye = params['LeftEye'] @RightEye = params['RightEye'] @Nose = params['Nose'] @UpperLip = params['UpperLip'] @LowerLip = params['LowerLip'] @Tooth = params['Tooth'] @Mouth = params['Mouth'] @LeftEar = params['LeftEar'] @RightEar = params['RightEar'] @Face = params['Face'] @Head = params['Head'] @Body = params['Body'] @Hat = params['Hat'] @Headdress = params['Headdress'] @Earrings = params['Earrings'] @Necklace = params['Necklace'] @Belongings = params['Belongings'] end |