tencentcloud-sdk-python-facefusion 3.0.1243__tar.gz → 3.0.1263__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (20) hide show
  1. {tencentcloud-sdk-python-facefusion-3.0.1243 → tencentcloud-sdk-python-facefusion-3.0.1263}/PKG-INFO +1 -1
  2. {tencentcloud-sdk-python-facefusion-3.0.1243 → tencentcloud-sdk-python-facefusion-3.0.1263}/setup.py +1 -1
  3. {tencentcloud-sdk-python-facefusion-3.0.1243 → tencentcloud-sdk-python-facefusion-3.0.1263}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud-sdk-python-facefusion-3.0.1243 → tencentcloud-sdk-python-facefusion-3.0.1263}/tencentcloud/facefusion/v20181201/models.py +219 -0
  5. {tencentcloud-sdk-python-facefusion-3.0.1243 → tencentcloud-sdk-python-facefusion-3.0.1263}/tencentcloud/facefusion/v20220927/errorcodes.py +15 -0
  6. {tencentcloud-sdk-python-facefusion-3.0.1243 → tencentcloud-sdk-python-facefusion-3.0.1263}/tencentcloud/facefusion/v20220927/models.py +267 -0
  7. {tencentcloud-sdk-python-facefusion-3.0.1243 → tencentcloud-sdk-python-facefusion-3.0.1263}/tencentcloud_sdk_python_facefusion.egg-info/PKG-INFO +1 -1
  8. tencentcloud-sdk-python-facefusion-3.0.1263/tencentcloud_sdk_python_facefusion.egg-info/requires.txt +1 -0
  9. tencentcloud-sdk-python-facefusion-3.0.1243/tencentcloud_sdk_python_facefusion.egg-info/requires.txt +0 -1
  10. {tencentcloud-sdk-python-facefusion-3.0.1243 → tencentcloud-sdk-python-facefusion-3.0.1263}/README.rst +0 -0
  11. {tencentcloud-sdk-python-facefusion-3.0.1243 → tencentcloud-sdk-python-facefusion-3.0.1263}/setup.cfg +0 -0
  12. {tencentcloud-sdk-python-facefusion-3.0.1243 → tencentcloud-sdk-python-facefusion-3.0.1263}/tencentcloud/facefusion/__init__.py +0 -0
  13. {tencentcloud-sdk-python-facefusion-3.0.1243 → tencentcloud-sdk-python-facefusion-3.0.1263}/tencentcloud/facefusion/v20181201/__init__.py +0 -0
  14. {tencentcloud-sdk-python-facefusion-3.0.1243 → tencentcloud-sdk-python-facefusion-3.0.1263}/tencentcloud/facefusion/v20181201/errorcodes.py +0 -0
  15. {tencentcloud-sdk-python-facefusion-3.0.1243 → tencentcloud-sdk-python-facefusion-3.0.1263}/tencentcloud/facefusion/v20181201/facefusion_client.py +0 -0
  16. {tencentcloud-sdk-python-facefusion-3.0.1243 → tencentcloud-sdk-python-facefusion-3.0.1263}/tencentcloud/facefusion/v20220927/__init__.py +0 -0
  17. {tencentcloud-sdk-python-facefusion-3.0.1243 → tencentcloud-sdk-python-facefusion-3.0.1263}/tencentcloud/facefusion/v20220927/facefusion_client.py +0 -0
  18. {tencentcloud-sdk-python-facefusion-3.0.1243 → tencentcloud-sdk-python-facefusion-3.0.1263}/tencentcloud_sdk_python_facefusion.egg-info/SOURCES.txt +0 -0
  19. {tencentcloud-sdk-python-facefusion-3.0.1243 → tencentcloud-sdk-python-facefusion-3.0.1263}/tencentcloud_sdk_python_facefusion.egg-info/dependency_links.txt +0 -0
  20. {tencentcloud-sdk-python-facefusion-3.0.1243 → tencentcloud-sdk-python-facefusion-3.0.1263}/tencentcloud_sdk_python_facefusion.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: tencentcloud-sdk-python-facefusion
3
- Version: 3.0.1243
3
+ Version: 3.0.1263
4
4
  Summary: Tencent Cloud Facefusion SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
8
8
 
9
9
  setup(
10
10
  name='tencentcloud-sdk-python-facefusion',
11
- install_requires=["tencentcloud-sdk-python-common==3.0.1243"],
11
+ install_requires=["tencentcloud-sdk-python-common==3.0.1263"],
12
12
  version=tencentcloud.__version__,
13
13
  description='Tencent Cloud Facefusion SDK for Python',
14
14
  long_description=open('README.rst').read(),
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1243'
17
+ __version__ = '3.0.1263'
@@ -41,6 +41,9 @@ class DescribeMaterialListRequest(AbstractModel):
41
41
 
42
42
  @property
43
43
  def ActivityId(self):
44
+ """活动Id
45
+ :rtype: int
46
+ """
44
47
  return self._ActivityId
45
48
 
46
49
  @ActivityId.setter
@@ -49,6 +52,9 @@ class DescribeMaterialListRequest(AbstractModel):
49
52
 
50
53
  @property
51
54
  def MaterialId(self):
55
+ """素材Id
56
+ :rtype: str
57
+ """
52
58
  return self._MaterialId
53
59
 
54
60
  @MaterialId.setter
@@ -57,6 +63,9 @@ class DescribeMaterialListRequest(AbstractModel):
57
63
 
58
64
  @property
59
65
  def Limit(self):
66
+ """每次拉取条数
67
+ :rtype: int
68
+ """
60
69
  return self._Limit
61
70
 
62
71
  @Limit.setter
@@ -65,6 +74,9 @@ class DescribeMaterialListRequest(AbstractModel):
65
74
 
66
75
  @property
67
76
  def Offset(self):
77
+ """偏移量
78
+ :rtype: int
79
+ """
68
80
  return self._Offset
69
81
 
70
82
  @Offset.setter
@@ -107,6 +119,9 @@ class DescribeMaterialListResponse(AbstractModel):
107
119
 
108
120
  @property
109
121
  def MaterialInfos(self):
122
+ """素材列表数据
123
+ :rtype: list of PublicMaterialInfos
124
+ """
110
125
  return self._MaterialInfos
111
126
 
112
127
  @MaterialInfos.setter
@@ -115,6 +130,9 @@ class DescribeMaterialListResponse(AbstractModel):
115
130
 
116
131
  @property
117
132
  def Count(self):
133
+ """素材条数
134
+ :rtype: int
135
+ """
118
136
  return self._Count
119
137
 
120
138
  @Count.setter
@@ -123,6 +141,9 @@ class DescribeMaterialListResponse(AbstractModel):
123
141
 
124
142
  @property
125
143
  def RequestId(self):
144
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
145
+ :rtype: str
146
+ """
126
147
  return self._RequestId
127
148
 
128
149
  @RequestId.setter
@@ -177,6 +198,9 @@ class FaceFusionRequest(AbstractModel):
177
198
 
178
199
  @property
179
200
  def ProjectId(self):
201
+ """活动 ID,请在人脸融合控制台查看。
202
+ :rtype: str
203
+ """
180
204
  return self._ProjectId
181
205
 
182
206
  @ProjectId.setter
@@ -185,6 +209,9 @@ class FaceFusionRequest(AbstractModel):
185
209
 
186
210
  @property
187
211
  def ModelId(self):
212
+ """素材 ID,请在人脸融合控制台查看。
213
+ :rtype: str
214
+ """
188
215
  return self._ModelId
189
216
 
190
217
  @ModelId.setter
@@ -193,6 +220,9 @@ class FaceFusionRequest(AbstractModel):
193
220
 
194
221
  @property
195
222
  def RspImgType(self):
223
+ """返回图像方式(url 或 base64) ,二选一。url有效期为7天。
224
+ :rtype: str
225
+ """
196
226
  return self._RspImgType
197
227
 
198
228
  @RspImgType.setter
@@ -201,6 +231,9 @@ class FaceFusionRequest(AbstractModel):
201
231
 
202
232
  @property
203
233
  def Image(self):
234
+ """图片 base64 数据。请确保人脸为正脸,无旋转。若某些手机拍摄后人脸被旋转,请使用图片的 EXIF 信息对图片进行旋转处理;请勿在 base64 数据中包含头部,如“data:image/jpeg;base64,”。
235
+ :rtype: str
236
+ """
204
237
  return self._Image
205
238
 
206
239
  @Image.setter
@@ -209,6 +242,9 @@ class FaceFusionRequest(AbstractModel):
209
242
 
210
243
  @property
211
244
  def PornDetect(self):
245
+ """历史遗留字段,无需填写。因为融合只需提取人脸特征,不需要鉴黄。
246
+ :rtype: int
247
+ """
212
248
  return self._PornDetect
213
249
 
214
250
  @PornDetect.setter
@@ -217,6 +253,10 @@ class FaceFusionRequest(AbstractModel):
217
253
 
218
254
  @property
219
255
  def CelebrityIdentify(self):
256
+ """0表示不需要不适宜内容识别,1表示需要不适宜内容识别。默认值为0。
257
+ 请注意,不适宜内容识别服务开启后,您需要根据返回结果自行判断是否调整您的业务逻辑。例如提示您的用户图片非法,请更换图片。
258
+ :rtype: int
259
+ """
220
260
  return self._CelebrityIdentify
221
261
 
222
262
  @CelebrityIdentify.setter
@@ -225,6 +265,9 @@ class FaceFusionRequest(AbstractModel):
225
265
 
226
266
  @property
227
267
  def Url(self):
268
+ """图片Url地址
269
+ :rtype: str
270
+ """
228
271
  return self._Url
229
272
 
230
273
  @Url.setter
@@ -233,6 +276,9 @@ class FaceFusionRequest(AbstractModel):
233
276
 
234
277
  @property
235
278
  def FuseParam(self):
279
+ """融合参数
280
+ :rtype: :class:`tencentcloud.facefusion.v20181201.models.FuseParam`
281
+ """
236
282
  return self._FuseParam
237
283
 
238
284
  @FuseParam.setter
@@ -281,6 +327,9 @@ class FaceFusionResponse(AbstractModel):
281
327
 
282
328
  @property
283
329
  def Image(self):
330
+ """RspImgType 为 url 时,返回结果的 url, RspImgType 为 base64 时返回 base64 数据。
331
+ :rtype: str
332
+ """
284
333
  return self._Image
285
334
 
286
335
  @Image.setter
@@ -289,6 +338,9 @@ class FaceFusionResponse(AbstractModel):
289
338
 
290
339
  @property
291
340
  def ReviewResultSet(self):
341
+ """不适宜内容识别结果
342
+ :rtype: list of FuseFaceReviewResult
343
+ """
292
344
  return self._ReviewResultSet
293
345
 
294
346
  @ReviewResultSet.setter
@@ -297,6 +349,9 @@ class FaceFusionResponse(AbstractModel):
297
349
 
298
350
  @property
299
351
  def RequestId(self):
352
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
353
+ :rtype: str
354
+ """
300
355
  return self._RequestId
301
356
 
302
357
  @RequestId.setter
@@ -338,6 +393,9 @@ class FaceInfo(AbstractModel):
338
393
 
339
394
  @property
340
395
  def X(self):
396
+ """人脸框的横坐标
397
+ :rtype: int
398
+ """
341
399
  return self._X
342
400
 
343
401
  @X.setter
@@ -346,6 +404,9 @@ class FaceInfo(AbstractModel):
346
404
 
347
405
  @property
348
406
  def Y(self):
407
+ """人脸框的纵坐标
408
+ :rtype: int
409
+ """
349
410
  return self._Y
350
411
 
351
412
  @Y.setter
@@ -354,6 +415,9 @@ class FaceInfo(AbstractModel):
354
415
 
355
416
  @property
356
417
  def Width(self):
418
+ """人脸框的宽度
419
+ :rtype: int
420
+ """
357
421
  return self._Width
358
422
 
359
423
  @Width.setter
@@ -362,6 +426,9 @@ class FaceInfo(AbstractModel):
362
426
 
363
427
  @property
364
428
  def Height(self):
429
+ """人脸框的高度
430
+ :rtype: int
431
+ """
365
432
  return self._Height
366
433
 
367
434
  @Height.setter
@@ -407,6 +474,9 @@ class FaceRect(AbstractModel):
407
474
 
408
475
  @property
409
476
  def X(self):
477
+ """人脸框左上角横坐标。
478
+ :rtype: int
479
+ """
410
480
  return self._X
411
481
 
412
482
  @X.setter
@@ -415,6 +485,9 @@ class FaceRect(AbstractModel):
415
485
 
416
486
  @property
417
487
  def Y(self):
488
+ """人脸框左上角纵坐标。
489
+ :rtype: int
490
+ """
418
491
  return self._Y
419
492
 
420
493
  @Y.setter
@@ -423,6 +496,9 @@ class FaceRect(AbstractModel):
423
496
 
424
497
  @property
425
498
  def Width(self):
499
+ """人脸框宽度。
500
+ :rtype: int
501
+ """
426
502
  return self._Width
427
503
 
428
504
  @Width.setter
@@ -431,6 +507,9 @@ class FaceRect(AbstractModel):
431
507
 
432
508
  @property
433
509
  def Height(self):
510
+ """人脸框高度。
511
+ :rtype: int
512
+ """
434
513
  return self._Height
435
514
 
436
515
  @Height.setter
@@ -491,6 +570,9 @@ class FuseFaceRequest(AbstractModel):
491
570
 
492
571
  @property
493
572
  def ProjectId(self):
573
+ """活动 ID,请在人脸融合控制台查看。
574
+ :rtype: str
575
+ """
494
576
  return self._ProjectId
495
577
 
496
578
  @ProjectId.setter
@@ -499,6 +581,9 @@ class FuseFaceRequest(AbstractModel):
499
581
 
500
582
  @property
501
583
  def ModelId(self):
584
+ """素材 ID,请在人脸融合控制台查看。
585
+ :rtype: str
586
+ """
502
587
  return self._ModelId
503
588
 
504
589
  @ModelId.setter
@@ -507,6 +592,9 @@ class FuseFaceRequest(AbstractModel):
507
592
 
508
593
  @property
509
594
  def RspImgType(self):
595
+ """返回图像方式(url 或 base64) ,二选一。url有效期为7天。
596
+ :rtype: str
597
+ """
510
598
  return self._RspImgType
511
599
 
512
600
  @RspImgType.setter
@@ -515,6 +603,9 @@ class FuseFaceRequest(AbstractModel):
515
603
 
516
604
  @property
517
605
  def MergeInfos(self):
606
+ """用户人脸图片、素材模板图的人脸位置信息。
607
+ :rtype: list of MergeInfo
608
+ """
518
609
  return self._MergeInfos
519
610
 
520
611
  @MergeInfos.setter
@@ -523,6 +614,10 @@ class FuseFaceRequest(AbstractModel):
523
614
 
524
615
  @property
525
616
  def FuseProfileDegree(self):
617
+ """脸型融合比例,数值越高,融合后的脸型越像素材人物。取值范围[0,100]
618
+ 若此参数不填写,则使用人脸融合控制台中脸型参数数值。(换脸版算法暂不支持此参数调整)
619
+ :rtype: int
620
+ """
526
621
  return self._FuseProfileDegree
527
622
 
528
623
  @FuseProfileDegree.setter
@@ -531,6 +626,10 @@ class FuseFaceRequest(AbstractModel):
531
626
 
532
627
  @property
533
628
  def FuseFaceDegree(self):
629
+ """五官融合比例,数值越高,融合后的五官越像素材人物。取值范围[0,100]
630
+ 若此参数不填写,则使用人脸融合控制台中五官参数数值。(换脸版算法暂不支持此参数调整)
631
+ :rtype: int
632
+ """
534
633
  return self._FuseFaceDegree
535
634
 
536
635
  @FuseFaceDegree.setter
@@ -539,6 +638,10 @@ class FuseFaceRequest(AbstractModel):
539
638
 
540
639
  @property
541
640
  def CelebrityIdentify(self):
641
+ """0表示不需要不适宜内容识别,1表示需要不适宜内容识别。默认值为0。
642
+ 请注意,不适宜内容识别服务开启后,您需要根据返回结果自行判断是否调整您的业务逻辑。例如提示您的用户图片非法,请更换图片。
643
+ :rtype: int
644
+ """
542
645
  return self._CelebrityIdentify
543
646
 
544
647
  @CelebrityIdentify.setter
@@ -547,6 +650,9 @@ class FuseFaceRequest(AbstractModel):
547
650
 
548
651
  @property
549
652
  def FuseParam(self):
653
+ """融合参数
654
+ :rtype: :class:`tencentcloud.facefusion.v20181201.models.FuseParam`
655
+ """
550
656
  return self._FuseParam
551
657
 
552
658
  @FuseParam.setter
@@ -601,6 +707,9 @@ class FuseFaceResponse(AbstractModel):
601
707
 
602
708
  @property
603
709
  def FusedImage(self):
710
+ """RspImgType 为 url 时,返回结果的 url, RspImgType 为 base64 时返回 base64 数据。
711
+ :rtype: str
712
+ """
604
713
  return self._FusedImage
605
714
 
606
715
  @FusedImage.setter
@@ -609,6 +718,10 @@ class FuseFaceResponse(AbstractModel):
609
718
 
610
719
  @property
611
720
  def ReviewResultSet(self):
721
+ """不适宜内容识别结果。该数组的顺序和请求中mergeinfo的顺序一致,一一对应
722
+ 注意:此字段可能返回 null,表示取不到有效值。
723
+ :rtype: list of FuseFaceReviewResult
724
+ """
612
725
  return self._ReviewResultSet
613
726
 
614
727
  @ReviewResultSet.setter
@@ -617,6 +730,9 @@ class FuseFaceResponse(AbstractModel):
617
730
 
618
731
  @property
619
732
  def RequestId(self):
733
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
734
+ :rtype: str
735
+ """
620
736
  return self._RequestId
621
737
 
622
738
  @RequestId.setter
@@ -664,6 +780,9 @@ BLOCK:违规
664
780
 
665
781
  @property
666
782
  def Field(self):
783
+ """保留字段
784
+ :rtype: str
785
+ """
667
786
  return self._Field
668
787
 
669
788
  @Field.setter
@@ -672,6 +791,9 @@ BLOCK:违规
672
791
 
673
792
  @property
674
793
  def Label(self):
794
+ """人员名称
795
+ :rtype: str
796
+ """
675
797
  return self._Label
676
798
 
677
799
  @Label.setter
@@ -680,6 +802,12 @@ BLOCK:违规
680
802
 
681
803
  @property
682
804
  def Confidence(self):
805
+ """对应识别label的置信度,分数越高意味违法违规可能性越大。
806
+ 0到70,Suggestion建议为PASS;
807
+ 70到80,Suggestion建议为REVIEW;
808
+ 80到100,Suggestion建议为BLOCK。
809
+ :rtype: float
810
+ """
683
811
  return self._Confidence
684
812
 
685
813
  @Confidence.setter
@@ -688,6 +816,12 @@ BLOCK:违规
688
816
 
689
817
  @property
690
818
  def Suggestion(self):
819
+ """识别场景的审核结论:
820
+ PASS:正常
821
+ REVIEW:疑似
822
+ BLOCK:违规
823
+ :rtype: str
824
+ """
691
825
  return self._Suggestion
692
826
 
693
827
  @Suggestion.setter
@@ -739,6 +873,9 @@ class FuseFaceReviewResult(AbstractModel):
739
873
 
740
874
  @property
741
875
  def Category(self):
876
+ """保留字段
877
+ :rtype: str
878
+ """
742
879
  return self._Category
743
880
 
744
881
  @Category.setter
@@ -747,6 +884,9 @@ class FuseFaceReviewResult(AbstractModel):
747
884
 
748
885
  @property
749
886
  def Code(self):
887
+ """状态码, 0为处理成功,其他值为处理失败
888
+ :rtype: str
889
+ """
750
890
  return self._Code
751
891
 
752
892
  @Code.setter
@@ -755,6 +895,9 @@ class FuseFaceReviewResult(AbstractModel):
755
895
 
756
896
  @property
757
897
  def CodeDescription(self):
898
+ """对应状态码信息描述
899
+ :rtype: str
900
+ """
758
901
  return self._CodeDescription
759
902
 
760
903
  @CodeDescription.setter
@@ -763,6 +906,9 @@ class FuseFaceReviewResult(AbstractModel):
763
906
 
764
907
  @property
765
908
  def Confidence(self):
909
+ """保留字段
910
+ :rtype: float
911
+ """
766
912
  return self._Confidence
767
913
 
768
914
  @Confidence.setter
@@ -771,6 +917,9 @@ class FuseFaceReviewResult(AbstractModel):
771
917
 
772
918
  @property
773
919
  def Suggestion(self):
920
+ """保留字段
921
+ :rtype: str
922
+ """
774
923
  return self._Suggestion
775
924
 
776
925
  @Suggestion.setter
@@ -779,6 +928,9 @@ class FuseFaceReviewResult(AbstractModel):
779
928
 
780
929
  @property
781
930
  def DetailSet(self):
931
+ """审核详细内容
932
+ :rtype: list of FuseFaceReviewDetail
933
+ """
782
934
  return self._DetailSet
783
935
 
784
936
  @DetailSet.setter
@@ -822,6 +974,9 @@ class FuseParam(AbstractModel):
822
974
 
823
975
  @property
824
976
  def ImageCodecParam(self):
977
+ """图片编码参数
978
+ :rtype: :class:`tencentcloud.facefusion.v20181201.models.ImageCodecParam`
979
+ """
825
980
  return self._ImageCodecParam
826
981
 
827
982
  @ImageCodecParam.setter
@@ -857,6 +1012,9 @@ class ImageCodecParam(AbstractModel):
857
1012
 
858
1013
  @property
859
1014
  def MetaData(self):
1015
+ """元数据
1016
+ :rtype: list of MetaData
1017
+ """
860
1018
  return self._MetaData
861
1019
 
862
1020
  @MetaData.setter
@@ -898,6 +1056,9 @@ class MaterialFaceList(AbstractModel):
898
1056
 
899
1057
  @property
900
1058
  def FaceId(self):
1059
+ """人脸序号
1060
+ :rtype: str
1061
+ """
901
1062
  return self._FaceId
902
1063
 
903
1064
  @FaceId.setter
@@ -906,6 +1067,9 @@ class MaterialFaceList(AbstractModel):
906
1067
 
907
1068
  @property
908
1069
  def FaceInfo(self):
1070
+ """人脸框信息
1071
+ :rtype: :class:`tencentcloud.facefusion.v20181201.models.FaceInfo`
1072
+ """
909
1073
  return self._FaceInfo
910
1074
 
911
1075
  @FaceInfo.setter
@@ -958,6 +1122,12 @@ Width、Height >= 30。
958
1122
 
959
1123
  @property
960
1124
  def Image(self):
1125
+ """输入图片base64。
1126
+ ●base64 和 url 必须提供一个,如果都提供以 url 为准。
1127
+ ●素材图片限制:图片中面部尺寸大于34 * 34;图片尺寸大于64 * 64。(图片编码之后可能会大30%左右,建议合理控制图片大小)。
1128
+ ●支持图片格式:支持jpg或png。
1129
+ :rtype: str
1130
+ """
961
1131
  return self._Image
962
1132
 
963
1133
  @Image.setter
@@ -966,6 +1136,12 @@ Width、Height >= 30。
966
1136
 
967
1137
  @property
968
1138
  def Url(self):
1139
+ """输入图片url。
1140
+ ●base64 和 url 必须提供一个,如果都提供以 url 为准。
1141
+ ●素材图片限制:图片中面部尺寸大于34 * 34;图片尺寸大于64 * 64。(图片编码之后可能会大30%左右,建议合理控制图片大小)。
1142
+ ●支持图片格式:支持jpg或png。
1143
+ :rtype: str
1144
+ """
969
1145
  return self._Url
970
1146
 
971
1147
  @Url.setter
@@ -974,6 +1150,10 @@ Width、Height >= 30。
974
1150
 
975
1151
  @property
976
1152
  def InputImageFaceRect(self):
1153
+ """输入图片人脸位置信息(人脸框)。不填默认取输入图中最大人脸。
1154
+ Width、Height >= 30。
1155
+ :rtype: :class:`tencentcloud.facefusion.v20181201.models.FaceRect`
1156
+ """
977
1157
  return self._InputImageFaceRect
978
1158
 
979
1159
  @InputImageFaceRect.setter
@@ -982,6 +1162,9 @@ Width、Height >= 30。
982
1162
 
983
1163
  @property
984
1164
  def TemplateFaceID(self):
1165
+ """素材人脸ID,不填默认取素材中最大人脸。
1166
+ :rtype: str
1167
+ """
985
1168
  return self._TemplateFaceID
986
1169
 
987
1170
  @TemplateFaceID.setter
@@ -1023,6 +1206,9 @@ class MetaData(AbstractModel):
1023
1206
 
1024
1207
  @property
1025
1208
  def MetaKey(self):
1209
+ """MetaData的Key,长度不能超过32。
1210
+ :rtype: str
1211
+ """
1026
1212
  return self._MetaKey
1027
1213
 
1028
1214
  @MetaKey.setter
@@ -1031,6 +1217,9 @@ class MetaData(AbstractModel):
1031
1217
 
1032
1218
  @property
1033
1219
  def MetaValue(self):
1220
+ """MetaData的Value,长度不能超过256。
1221
+ :rtype: str
1222
+ """
1034
1223
  return self._MetaValue
1035
1224
 
1036
1225
  @MetaValue.setter
@@ -1092,6 +1281,9 @@ class PublicMaterialInfos(AbstractModel):
1092
1281
 
1093
1282
  @property
1094
1283
  def MaterialId(self):
1284
+ """素材Id
1285
+ :rtype: str
1286
+ """
1095
1287
  return self._MaterialId
1096
1288
 
1097
1289
  @MaterialId.setter
@@ -1100,6 +1292,9 @@ class PublicMaterialInfos(AbstractModel):
1100
1292
 
1101
1293
  @property
1102
1294
  def MaterialStatus(self):
1295
+ """素材状态
1296
+ :rtype: int
1297
+ """
1103
1298
  return self._MaterialStatus
1104
1299
 
1105
1300
  @MaterialStatus.setter
@@ -1108,6 +1303,9 @@ class PublicMaterialInfos(AbstractModel):
1108
1303
 
1109
1304
  @property
1110
1305
  def BlendParamPtu(self):
1306
+ """脸型参数P图
1307
+ :rtype: int
1308
+ """
1111
1309
  return self._BlendParamPtu
1112
1310
 
1113
1311
  @BlendParamPtu.setter
@@ -1116,6 +1314,9 @@ class PublicMaterialInfos(AbstractModel):
1116
1314
 
1117
1315
  @property
1118
1316
  def PositionParamPtu(self):
1317
+ """五官参数P图
1318
+ :rtype: int
1319
+ """
1119
1320
  return self._PositionParamPtu
1120
1321
 
1121
1322
  @PositionParamPtu.setter
@@ -1124,6 +1325,9 @@ class PublicMaterialInfos(AbstractModel):
1124
1325
 
1125
1326
  @property
1126
1327
  def BlendParamYoutu(self):
1328
+ """脸型参数优图
1329
+ :rtype: int
1330
+ """
1127
1331
  return self._BlendParamYoutu
1128
1332
 
1129
1333
  @BlendParamYoutu.setter
@@ -1132,6 +1336,9 @@ class PublicMaterialInfos(AbstractModel):
1132
1336
 
1133
1337
  @property
1134
1338
  def PositionParamYoutu(self):
1339
+ """五官参数优图
1340
+ :rtype: int
1341
+ """
1135
1342
  return self._PositionParamYoutu
1136
1343
 
1137
1344
  @PositionParamYoutu.setter
@@ -1140,6 +1347,9 @@ class PublicMaterialInfos(AbstractModel):
1140
1347
 
1141
1348
  @property
1142
1349
  def Url(self):
1350
+ """素材COS地址
1351
+ :rtype: str
1352
+ """
1143
1353
  return self._Url
1144
1354
 
1145
1355
  @Url.setter
@@ -1148,6 +1358,9 @@ class PublicMaterialInfos(AbstractModel):
1148
1358
 
1149
1359
  @property
1150
1360
  def CreateTime(self):
1361
+ """创建时间
1362
+ :rtype: str
1363
+ """
1151
1364
  return self._CreateTime
1152
1365
 
1153
1366
  @CreateTime.setter
@@ -1156,6 +1369,9 @@ class PublicMaterialInfos(AbstractModel):
1156
1369
 
1157
1370
  @property
1158
1371
  def UpdateTime(self):
1372
+ """修改时间
1373
+ :rtype: str
1374
+ """
1159
1375
  return self._UpdateTime
1160
1376
 
1161
1377
  @UpdateTime.setter
@@ -1164,6 +1380,9 @@ class PublicMaterialInfos(AbstractModel):
1164
1380
 
1165
1381
  @property
1166
1382
  def MaterialFaceList(self):
1383
+ """人脸信息
1384
+ :rtype: list of MaterialFaceList
1385
+ """
1167
1386
  return self._MaterialFaceList
1168
1387
 
1169
1388
  @MaterialFaceList.setter
@@ -50,6 +50,21 @@ FAILEDOPERATION_IMAGESIZEINVALID = 'FailedOperation.ImageSizeInvalid'
50
50
  # 服务内部错误。
51
51
  FAILEDOPERATION_INNERERROR = 'FailedOperation.InnerError'
52
52
 
53
+ # 素材数据为空。
54
+ FAILEDOPERATION_MEDIADATAERROR = 'FailedOperation.MediaDataError'
55
+
56
+ # 审核配置为空。
57
+ FAILEDOPERATION_MODERATIONCONFIGERROR = 'FailedOperation.ModerationConfigError'
58
+
59
+ # 素材审核失败。
60
+ FAILEDOPERATION_MODERATIONFAILED = 'FailedOperation.ModerationFailed'
61
+
62
+ # 素材审核结果为空。
63
+ FAILEDOPERATION_MODERATIONRESPONSEERROR = 'FailedOperation.ModerationResponseError'
64
+
65
+ # 审核结果配置为空。
66
+ FAILEDOPERATION_MODERATIONRESULTCONFIGERROR = 'FailedOperation.ModerationResultConfigError'
67
+
53
68
  # 无法检测出人脸, 人脸框配准分低于阈值。
54
69
  FAILEDOPERATION_NOFACEDETECTED = 'FailedOperation.NoFaceDetected'
55
70