Class: TencentCloud::Mps::V20190612::AiSampleFaceOperation

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20190612/models.rb

Overview

AI 样本管理,人脸数据操作。

Instance Attribute Summary collapse

  • #FaceIds ⇒ Object
  • 当 Type为add 或 reset 时,该字段必填;
  • 数组长度限制:5 张图片。
  • 注意:图片必须是单人像正面人脸较清晰的照片,像素不低于 200*200。.
  • #Type ⇒ Object
  • 当 Type为add 或 reset 时,该字段必填;
  • 数组长度限制:5 张图片。
  • 注意:图片必须是单人像正面人脸较清晰的照片,像素不低于 200*200。.

    Instance Method Summary collapse

    Constructor Details

    #initialize(type = nil, faceids = nil, facecontents = nil) ⇒ AiSampleFaceOperation

    Returns a new instance of AiSampleFaceOperation.

    
    
    4763
    4764
    4765
    4766
    4767
    # File 'lib/v20190612/models.rb', line 4763
    
    def initialize(type=nil, faceids=nil, facecontents=nil)
      @Type = type
      @FaceIds = faceids
      @FaceContents = facecontents
    end

    Instance Attribute Details

    #FaceContentsObject

  • 当 Type为add 或 reset 时,该字段必填;
  • 数组长度限制:5 张图片。
  • 注意:图片必须是单人像正面人脸较清晰的照片,像素不低于 200*200。

    Parameters:

    • Type:

      操作类型,可选值:add(添加)、delete(删除)、reset(重置)。重置操作将清空该人物已有人脸数据,并添加 FaceContents 指定人脸数据。

    • FaceIds:

      人脸 ID 集合,当 Type为delete 时,该字段必填。

    • FaceContents:

      人脸图片 Base64 编码后的字符串集合。

    
    
    4761
    4762
    4763
    # File 'lib/v20190612/models.rb', line 4761
    
    def FaceContents
      @FaceContents
    end

    #FaceIdsObject

  • 当 Type为add 或 reset 时,该字段必填;
  • 数组长度限制:5 张图片。
  • 注意:图片必须是单人像正面人脸较清晰的照片,像素不低于 200*200。

    Parameters:

    • Type:

      操作类型,可选值:add(添加)、delete(删除)、reset(重置)。重置操作将清空该人物已有人脸数据,并添加 FaceContents 指定人脸数据。

    • FaceIds:

      人脸 ID 集合,当 Type为delete 时,该字段必填。

    • FaceContents:

      人脸图片 Base64 编码后的字符串集合。

    
    
    4761
    4762
    4763
    # File 'lib/v20190612/models.rb', line 4761
    
    def FaceIds
      @FaceIds
    end

    #TypeObject

  • 当 Type为add 或 reset 时,该字段必填;
  • 数组长度限制:5 张图片。
  • 注意:图片必须是单人像正面人脸较清晰的照片,像素不低于 200*200。

    Parameters:

    • Type:

      操作类型,可选值:add(添加)、delete(删除)、reset(重置)。重置操作将清空该人物已有人脸数据,并添加 FaceContents 指定人脸数据。

    • FaceIds:

      人脸 ID 集合,当 Type为delete 时,该字段必填。

    • FaceContents:

      人脸图片 Base64 编码后的字符串集合。

    
    
    4761
    4762
    4763
    # File 'lib/v20190612/models.rb', line 4761
    
    def Type
      @Type
    end

    Instance Method Details

    #deserialize(params) ⇒ Object

    
    
    4769
    4770
    4771
    4772
    4773
    # File 'lib/v20190612/models.rb', line 4769
    
    def deserialize(params)
      @Type = params['Type']
      @FaceIds = params['FaceIds']
      @FaceContents = params['FaceContents']
    end