Class AiSampleFaceOperation

    • Constructor Detail

      • AiSampleFaceOperation

        public AiSampleFaceOperation()
      • AiSampleFaceOperation

        public AiSampleFaceOperation​(AiSampleFaceOperation source)
        NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
    • Method Detail

      • getType

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

        public void setType​(String Type)
        Set 操作类型,可选值:add(添加)、delete(删除)、reset(重置)。重置操作将清空该人物已有人脸数据,并添加 FaceContents 指定人脸数据。
        Parameters:
        Type - 操作类型,可选值:add(添加)、delete(删除)、reset(重置)。重置操作将清空该人物已有人脸数据,并添加 FaceContents 指定人脸数据。
      • getFaceIds

        public String[] getFaceIds()
        Get 人脸 ID 集合,当 Type为delete 时,该字段必填。
        Returns:
        FaceIds 人脸 ID 集合,当 Type为delete 时,该字段必填。
      • setFaceIds

        public void setFaceIds​(String[] FaceIds)
        Set 人脸 ID 集合,当 Type为delete 时,该字段必填。
        Parameters:
        FaceIds - 人脸 ID 集合,当 Type为delete 时,该字段必填。
      • getFaceContents

        public String[] getFaceContents()
        Get 人脸图片 [Base64](https://tools.ietf.org/html/rfc4648) 编码后的字符串集合。
      • 当 Type为add 或 reset 时,该字段必填;
      • 数组长度限制:5 张图片。
      • 注意:图片必须是单人像正面人脸较清晰的照片,像素不低于 200*200。
Returns:
FaceContents 人脸图片 [Base64](https://tools.ietf.org/html/rfc4648) 编码后的字符串集合。
  • 当 Type为add 或 reset 时,该字段必填;
  • 数组长度限制:5 张图片。
  • 注意:图片必须是单人像正面人脸较清晰的照片,像素不低于 200*200。
    Parameters:
    FaceContents - 人脸图片 [Base64](https://tools.ietf.org/html/rfc4648) 编码后的字符串集合。
  • 当 Type为add 或 reset 时,该字段必填;
  • 数组长度限制:5 张图片。
  • 注意:图片必须是单人像正面人脸较清晰的照片,像素不低于 200*200。