tencentcloud-sdk-python-intl-en 3.0.1074__py2.py3-none-any.whl → 3.0.1075__py2.py3-none-any.whl
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.
Potentially problematic release.
This version of tencentcloud-sdk-python-intl-en might be problematic. Click here for more details.
- tencentcloud/__init__.py +1 -1
- tencentcloud/cynosdb/v20190107/models.py +4 -4
- tencentcloud/es/v20180416/errorcodes.py +48 -0
- tencentcloud/es/v20180416/models.py +2 -2
- tencentcloud/facefusion/v20220927/errorcodes.py +18 -0
- tencentcloud/facefusion/v20220927/facefusion_client.py +46 -0
- tencentcloud/facefusion/v20220927/models.py +607 -0
- tencentcloud/mps/v20190612/models.py +564 -105
- tencentcloud/sqlserver/v20180328/models.py +141 -2
- tencentcloud/vod/v20180717/models.py +588 -0
- tencentcloud/vod/v20180717/vod_client.py +33 -0
- {tencentcloud_sdk_python_intl_en-3.0.1074.dist-info → tencentcloud_sdk_python_intl_en-3.0.1075.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python_intl_en-3.0.1074.dist-info → tencentcloud_sdk_python_intl_en-3.0.1075.dist-info}/RECORD +15 -15
- {tencentcloud_sdk_python_intl_en-3.0.1074.dist-info → tencentcloud_sdk_python_intl_en-3.0.1075.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_intl_en-3.0.1074.dist-info → tencentcloud_sdk_python_intl_en-3.0.1075.dist-info}/top_level.txt +0 -0
|
@@ -243,6 +243,173 @@ class FuseFaceResponse(AbstractModel):
|
|
|
243
243
|
self._RequestId = params.get("RequestId")
|
|
244
244
|
|
|
245
245
|
|
|
246
|
+
class FuseFaceReviewDetail(AbstractModel):
|
|
247
|
+
"""
|
|
248
|
+
|
|
249
|
+
"""
|
|
250
|
+
|
|
251
|
+
def __init__(self):
|
|
252
|
+
r"""
|
|
253
|
+
:param _Field:
|
|
254
|
+
:type Field: str
|
|
255
|
+
:param _Label:
|
|
256
|
+
:type Label: str
|
|
257
|
+
:param _Confidence:
|
|
258
|
+
:type Confidence: float
|
|
259
|
+
:param _Suggestion:
|
|
260
|
+
:type Suggestion: str
|
|
261
|
+
"""
|
|
262
|
+
self._Field = None
|
|
263
|
+
self._Label = None
|
|
264
|
+
self._Confidence = None
|
|
265
|
+
self._Suggestion = None
|
|
266
|
+
|
|
267
|
+
@property
|
|
268
|
+
def Field(self):
|
|
269
|
+
return self._Field
|
|
270
|
+
|
|
271
|
+
@Field.setter
|
|
272
|
+
def Field(self, Field):
|
|
273
|
+
self._Field = Field
|
|
274
|
+
|
|
275
|
+
@property
|
|
276
|
+
def Label(self):
|
|
277
|
+
return self._Label
|
|
278
|
+
|
|
279
|
+
@Label.setter
|
|
280
|
+
def Label(self, Label):
|
|
281
|
+
self._Label = Label
|
|
282
|
+
|
|
283
|
+
@property
|
|
284
|
+
def Confidence(self):
|
|
285
|
+
return self._Confidence
|
|
286
|
+
|
|
287
|
+
@Confidence.setter
|
|
288
|
+
def Confidence(self, Confidence):
|
|
289
|
+
self._Confidence = Confidence
|
|
290
|
+
|
|
291
|
+
@property
|
|
292
|
+
def Suggestion(self):
|
|
293
|
+
return self._Suggestion
|
|
294
|
+
|
|
295
|
+
@Suggestion.setter
|
|
296
|
+
def Suggestion(self, Suggestion):
|
|
297
|
+
self._Suggestion = Suggestion
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
def _deserialize(self, params):
|
|
301
|
+
self._Field = params.get("Field")
|
|
302
|
+
self._Label = params.get("Label")
|
|
303
|
+
self._Confidence = params.get("Confidence")
|
|
304
|
+
self._Suggestion = params.get("Suggestion")
|
|
305
|
+
memeber_set = set(params.keys())
|
|
306
|
+
for name, value in vars(self).items():
|
|
307
|
+
property_name = name[1:]
|
|
308
|
+
if property_name in memeber_set:
|
|
309
|
+
memeber_set.remove(property_name)
|
|
310
|
+
if len(memeber_set) > 0:
|
|
311
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
class FuseFaceReviewResult(AbstractModel):
|
|
316
|
+
"""
|
|
317
|
+
|
|
318
|
+
"""
|
|
319
|
+
|
|
320
|
+
def __init__(self):
|
|
321
|
+
r"""
|
|
322
|
+
:param _Category:
|
|
323
|
+
:type Category: str
|
|
324
|
+
:param _Code:
|
|
325
|
+
:type Code: str
|
|
326
|
+
:param _CodeDescription:
|
|
327
|
+
:type CodeDescription: str
|
|
328
|
+
:param _Confidence:
|
|
329
|
+
:type Confidence: float
|
|
330
|
+
:param _Suggestion:
|
|
331
|
+
:type Suggestion: str
|
|
332
|
+
:param _DetailSet:
|
|
333
|
+
:type DetailSet: list of FuseFaceReviewDetail
|
|
334
|
+
"""
|
|
335
|
+
self._Category = None
|
|
336
|
+
self._Code = None
|
|
337
|
+
self._CodeDescription = None
|
|
338
|
+
self._Confidence = None
|
|
339
|
+
self._Suggestion = None
|
|
340
|
+
self._DetailSet = None
|
|
341
|
+
|
|
342
|
+
@property
|
|
343
|
+
def Category(self):
|
|
344
|
+
return self._Category
|
|
345
|
+
|
|
346
|
+
@Category.setter
|
|
347
|
+
def Category(self, Category):
|
|
348
|
+
self._Category = Category
|
|
349
|
+
|
|
350
|
+
@property
|
|
351
|
+
def Code(self):
|
|
352
|
+
return self._Code
|
|
353
|
+
|
|
354
|
+
@Code.setter
|
|
355
|
+
def Code(self, Code):
|
|
356
|
+
self._Code = Code
|
|
357
|
+
|
|
358
|
+
@property
|
|
359
|
+
def CodeDescription(self):
|
|
360
|
+
return self._CodeDescription
|
|
361
|
+
|
|
362
|
+
@CodeDescription.setter
|
|
363
|
+
def CodeDescription(self, CodeDescription):
|
|
364
|
+
self._CodeDescription = CodeDescription
|
|
365
|
+
|
|
366
|
+
@property
|
|
367
|
+
def Confidence(self):
|
|
368
|
+
return self._Confidence
|
|
369
|
+
|
|
370
|
+
@Confidence.setter
|
|
371
|
+
def Confidence(self, Confidence):
|
|
372
|
+
self._Confidence = Confidence
|
|
373
|
+
|
|
374
|
+
@property
|
|
375
|
+
def Suggestion(self):
|
|
376
|
+
return self._Suggestion
|
|
377
|
+
|
|
378
|
+
@Suggestion.setter
|
|
379
|
+
def Suggestion(self, Suggestion):
|
|
380
|
+
self._Suggestion = Suggestion
|
|
381
|
+
|
|
382
|
+
@property
|
|
383
|
+
def DetailSet(self):
|
|
384
|
+
return self._DetailSet
|
|
385
|
+
|
|
386
|
+
@DetailSet.setter
|
|
387
|
+
def DetailSet(self, DetailSet):
|
|
388
|
+
self._DetailSet = DetailSet
|
|
389
|
+
|
|
390
|
+
|
|
391
|
+
def _deserialize(self, params):
|
|
392
|
+
self._Category = params.get("Category")
|
|
393
|
+
self._Code = params.get("Code")
|
|
394
|
+
self._CodeDescription = params.get("CodeDescription")
|
|
395
|
+
self._Confidence = params.get("Confidence")
|
|
396
|
+
self._Suggestion = params.get("Suggestion")
|
|
397
|
+
if params.get("DetailSet") is not None:
|
|
398
|
+
self._DetailSet = []
|
|
399
|
+
for item in params.get("DetailSet"):
|
|
400
|
+
obj = FuseFaceReviewDetail()
|
|
401
|
+
obj._deserialize(item)
|
|
402
|
+
self._DetailSet.append(obj)
|
|
403
|
+
memeber_set = set(params.keys())
|
|
404
|
+
for name, value in vars(self).items():
|
|
405
|
+
property_name = name[1:]
|
|
406
|
+
if property_name in memeber_set:
|
|
407
|
+
memeber_set.remove(property_name)
|
|
408
|
+
if len(memeber_set) > 0:
|
|
409
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
|
|
246
413
|
class FuseParam(AbstractModel):
|
|
247
414
|
"""Fusion parameter
|
|
248
415
|
|
|
@@ -514,4 +681,444 @@ class MetaData(AbstractModel):
|
|
|
514
681
|
memeber_set.remove(property_name)
|
|
515
682
|
if len(memeber_set) > 0:
|
|
516
683
|
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
684
|
+
|
|
685
|
+
|
|
686
|
+
|
|
687
|
+
class QueryVideoFaceFusionJobRequest(AbstractModel):
|
|
688
|
+
"""QueryVideoFaceFusionJob request structure.
|
|
689
|
+
|
|
690
|
+
"""
|
|
691
|
+
|
|
692
|
+
def __init__(self):
|
|
693
|
+
r"""
|
|
694
|
+
:param _JobId: Job ID of the video face fusion task
|
|
695
|
+
:type JobId: str
|
|
696
|
+
"""
|
|
697
|
+
self._JobId = None
|
|
698
|
+
|
|
699
|
+
@property
|
|
700
|
+
def JobId(self):
|
|
701
|
+
return self._JobId
|
|
702
|
+
|
|
703
|
+
@JobId.setter
|
|
704
|
+
def JobId(self, JobId):
|
|
705
|
+
self._JobId = JobId
|
|
706
|
+
|
|
707
|
+
|
|
708
|
+
def _deserialize(self, params):
|
|
709
|
+
self._JobId = params.get("JobId")
|
|
710
|
+
memeber_set = set(params.keys())
|
|
711
|
+
for name, value in vars(self).items():
|
|
712
|
+
property_name = name[1:]
|
|
713
|
+
if property_name in memeber_set:
|
|
714
|
+
memeber_set.remove(property_name)
|
|
715
|
+
if len(memeber_set) > 0:
|
|
716
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
717
|
+
|
|
718
|
+
|
|
719
|
+
|
|
720
|
+
class QueryVideoFaceFusionJobResponse(AbstractModel):
|
|
721
|
+
"""QueryVideoFaceFusionJob response structure.
|
|
722
|
+
|
|
723
|
+
"""
|
|
724
|
+
|
|
725
|
+
def __init__(self):
|
|
726
|
+
r"""
|
|
727
|
+
:param _JobStatus: Current task status: queuing, processing, processing failed, or processing completed
|
|
728
|
+
:type JobStatus: str
|
|
729
|
+
:param _VideoFaceFusionOutput: Video face fusion result
|
|
730
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
731
|
+
:type VideoFaceFusionOutput: :class:`tencentcloud.facefusion.v20220927.models.VideoFaceFusionOutput`
|
|
732
|
+
:param _JobStatusCode: Task status code. 1: queuing; 3: processing; 5: processing failed; 7: processing completed.
|
|
733
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
734
|
+
:type JobStatusCode: int
|
|
735
|
+
:param _JobErrorCode: Task failure error code
|
|
736
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
737
|
+
:type JobErrorCode: str
|
|
738
|
+
:param _JobErrorMsg: Task failure error message
|
|
739
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
740
|
+
:type JobErrorMsg: str
|
|
741
|
+
:param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
742
|
+
:type RequestId: str
|
|
743
|
+
"""
|
|
744
|
+
self._JobStatus = None
|
|
745
|
+
self._VideoFaceFusionOutput = None
|
|
746
|
+
self._JobStatusCode = None
|
|
747
|
+
self._JobErrorCode = None
|
|
748
|
+
self._JobErrorMsg = None
|
|
749
|
+
self._RequestId = None
|
|
750
|
+
|
|
751
|
+
@property
|
|
752
|
+
def JobStatus(self):
|
|
753
|
+
return self._JobStatus
|
|
754
|
+
|
|
755
|
+
@JobStatus.setter
|
|
756
|
+
def JobStatus(self, JobStatus):
|
|
757
|
+
self._JobStatus = JobStatus
|
|
758
|
+
|
|
759
|
+
@property
|
|
760
|
+
def VideoFaceFusionOutput(self):
|
|
761
|
+
return self._VideoFaceFusionOutput
|
|
762
|
+
|
|
763
|
+
@VideoFaceFusionOutput.setter
|
|
764
|
+
def VideoFaceFusionOutput(self, VideoFaceFusionOutput):
|
|
765
|
+
self._VideoFaceFusionOutput = VideoFaceFusionOutput
|
|
766
|
+
|
|
767
|
+
@property
|
|
768
|
+
def JobStatusCode(self):
|
|
769
|
+
return self._JobStatusCode
|
|
770
|
+
|
|
771
|
+
@JobStatusCode.setter
|
|
772
|
+
def JobStatusCode(self, JobStatusCode):
|
|
773
|
+
self._JobStatusCode = JobStatusCode
|
|
774
|
+
|
|
775
|
+
@property
|
|
776
|
+
def JobErrorCode(self):
|
|
777
|
+
return self._JobErrorCode
|
|
778
|
+
|
|
779
|
+
@JobErrorCode.setter
|
|
780
|
+
def JobErrorCode(self, JobErrorCode):
|
|
781
|
+
self._JobErrorCode = JobErrorCode
|
|
782
|
+
|
|
783
|
+
@property
|
|
784
|
+
def JobErrorMsg(self):
|
|
785
|
+
return self._JobErrorMsg
|
|
786
|
+
|
|
787
|
+
@JobErrorMsg.setter
|
|
788
|
+
def JobErrorMsg(self, JobErrorMsg):
|
|
789
|
+
self._JobErrorMsg = JobErrorMsg
|
|
790
|
+
|
|
791
|
+
@property
|
|
792
|
+
def RequestId(self):
|
|
793
|
+
return self._RequestId
|
|
794
|
+
|
|
795
|
+
@RequestId.setter
|
|
796
|
+
def RequestId(self, RequestId):
|
|
797
|
+
self._RequestId = RequestId
|
|
798
|
+
|
|
799
|
+
|
|
800
|
+
def _deserialize(self, params):
|
|
801
|
+
self._JobStatus = params.get("JobStatus")
|
|
802
|
+
if params.get("VideoFaceFusionOutput") is not None:
|
|
803
|
+
self._VideoFaceFusionOutput = VideoFaceFusionOutput()
|
|
804
|
+
self._VideoFaceFusionOutput._deserialize(params.get("VideoFaceFusionOutput"))
|
|
805
|
+
self._JobStatusCode = params.get("JobStatusCode")
|
|
806
|
+
self._JobErrorCode = params.get("JobErrorCode")
|
|
807
|
+
self._JobErrorMsg = params.get("JobErrorMsg")
|
|
808
|
+
self._RequestId = params.get("RequestId")
|
|
809
|
+
|
|
810
|
+
|
|
811
|
+
class SubmitVideoFaceFusionJobRequest(AbstractModel):
|
|
812
|
+
"""SubmitVideoFaceFusionJob request structure.
|
|
813
|
+
|
|
814
|
+
"""
|
|
815
|
+
|
|
816
|
+
def __init__(self):
|
|
817
|
+
r"""
|
|
818
|
+
:param _ProjectId: Activity ID. Check it in the video face fusion console.
|
|
819
|
+
:type ProjectId: str
|
|
820
|
+
:param _ModelId: Material ID. Check it in the video face fusion console.
|
|
821
|
+
:type ModelId: str
|
|
822
|
+
:param _MergeInfos: Face position information on the user face image and material template image. Only one entry is allowed.
|
|
823
|
+
:type MergeInfos: list of MergeInfo
|
|
824
|
+
:param _CelebrityIdentify: 0: inappropriate content recognition not required; 1: inappropriate content recognition required. Default value: 0.
|
|
825
|
+
Note: Once the inappropriate content recognition service is enabled, you need to decide whether to adjust your business logic based on the returned results. For example, you need to replace the image if the system informs you that the image does not meet the requirements.
|
|
826
|
+
**<font color=#1E90FF>Note: This field will be deprecated later due to business adjustments. It is not recommended for use.</font>**
|
|
827
|
+
:type CelebrityIdentify: int
|
|
828
|
+
:param _LogoParam: Video watermark logo parameter
|
|
829
|
+
:type LogoParam: :class:`tencentcloud.facefusion.v20220927.models.LogoParam`
|
|
830
|
+
:param _UserDesignatedUrl: COS pre-signed URL (PUT method). If this parameter is specified, the video after fusion will be uploaded to this URL.
|
|
831
|
+
**<font color=#1E90FF>Note: If upload to this URL fails, the video will be uploaded to the default address of Tencent Cloud.</font>**
|
|
832
|
+
:type UserDesignatedUrl: str
|
|
833
|
+
:param _UserIp: User IP address
|
|
834
|
+
:type UserIp: str
|
|
835
|
+
:param _MetaData: Video metadata field
|
|
836
|
+
:type MetaData: list of MetaData
|
|
837
|
+
"""
|
|
838
|
+
self._ProjectId = None
|
|
839
|
+
self._ModelId = None
|
|
840
|
+
self._MergeInfos = None
|
|
841
|
+
self._CelebrityIdentify = None
|
|
842
|
+
self._LogoParam = None
|
|
843
|
+
self._UserDesignatedUrl = None
|
|
844
|
+
self._UserIp = None
|
|
845
|
+
self._MetaData = None
|
|
846
|
+
|
|
847
|
+
@property
|
|
848
|
+
def ProjectId(self):
|
|
849
|
+
return self._ProjectId
|
|
850
|
+
|
|
851
|
+
@ProjectId.setter
|
|
852
|
+
def ProjectId(self, ProjectId):
|
|
853
|
+
self._ProjectId = ProjectId
|
|
854
|
+
|
|
855
|
+
@property
|
|
856
|
+
def ModelId(self):
|
|
857
|
+
return self._ModelId
|
|
858
|
+
|
|
859
|
+
@ModelId.setter
|
|
860
|
+
def ModelId(self, ModelId):
|
|
861
|
+
self._ModelId = ModelId
|
|
862
|
+
|
|
863
|
+
@property
|
|
864
|
+
def MergeInfos(self):
|
|
865
|
+
return self._MergeInfos
|
|
866
|
+
|
|
867
|
+
@MergeInfos.setter
|
|
868
|
+
def MergeInfos(self, MergeInfos):
|
|
869
|
+
self._MergeInfos = MergeInfos
|
|
870
|
+
|
|
871
|
+
@property
|
|
872
|
+
def CelebrityIdentify(self):
|
|
873
|
+
return self._CelebrityIdentify
|
|
874
|
+
|
|
875
|
+
@CelebrityIdentify.setter
|
|
876
|
+
def CelebrityIdentify(self, CelebrityIdentify):
|
|
877
|
+
self._CelebrityIdentify = CelebrityIdentify
|
|
878
|
+
|
|
879
|
+
@property
|
|
880
|
+
def LogoParam(self):
|
|
881
|
+
return self._LogoParam
|
|
882
|
+
|
|
883
|
+
@LogoParam.setter
|
|
884
|
+
def LogoParam(self, LogoParam):
|
|
885
|
+
self._LogoParam = LogoParam
|
|
886
|
+
|
|
887
|
+
@property
|
|
888
|
+
def UserDesignatedUrl(self):
|
|
889
|
+
return self._UserDesignatedUrl
|
|
890
|
+
|
|
891
|
+
@UserDesignatedUrl.setter
|
|
892
|
+
def UserDesignatedUrl(self, UserDesignatedUrl):
|
|
893
|
+
self._UserDesignatedUrl = UserDesignatedUrl
|
|
894
|
+
|
|
895
|
+
@property
|
|
896
|
+
def UserIp(self):
|
|
897
|
+
return self._UserIp
|
|
898
|
+
|
|
899
|
+
@UserIp.setter
|
|
900
|
+
def UserIp(self, UserIp):
|
|
901
|
+
self._UserIp = UserIp
|
|
902
|
+
|
|
903
|
+
@property
|
|
904
|
+
def MetaData(self):
|
|
905
|
+
return self._MetaData
|
|
906
|
+
|
|
907
|
+
@MetaData.setter
|
|
908
|
+
def MetaData(self, MetaData):
|
|
909
|
+
self._MetaData = MetaData
|
|
910
|
+
|
|
911
|
+
|
|
912
|
+
def _deserialize(self, params):
|
|
913
|
+
self._ProjectId = params.get("ProjectId")
|
|
914
|
+
self._ModelId = params.get("ModelId")
|
|
915
|
+
if params.get("MergeInfos") is not None:
|
|
916
|
+
self._MergeInfos = []
|
|
917
|
+
for item in params.get("MergeInfos"):
|
|
918
|
+
obj = MergeInfo()
|
|
919
|
+
obj._deserialize(item)
|
|
920
|
+
self._MergeInfos.append(obj)
|
|
921
|
+
self._CelebrityIdentify = params.get("CelebrityIdentify")
|
|
922
|
+
if params.get("LogoParam") is not None:
|
|
923
|
+
self._LogoParam = LogoParam()
|
|
924
|
+
self._LogoParam._deserialize(params.get("LogoParam"))
|
|
925
|
+
self._UserDesignatedUrl = params.get("UserDesignatedUrl")
|
|
926
|
+
self._UserIp = params.get("UserIp")
|
|
927
|
+
if params.get("MetaData") is not None:
|
|
928
|
+
self._MetaData = []
|
|
929
|
+
for item in params.get("MetaData"):
|
|
930
|
+
obj = MetaData()
|
|
931
|
+
obj._deserialize(item)
|
|
932
|
+
self._MetaData.append(obj)
|
|
933
|
+
memeber_set = set(params.keys())
|
|
934
|
+
for name, value in vars(self).items():
|
|
935
|
+
property_name = name[1:]
|
|
936
|
+
if property_name in memeber_set:
|
|
937
|
+
memeber_set.remove(property_name)
|
|
938
|
+
if len(memeber_set) > 0:
|
|
939
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
940
|
+
|
|
941
|
+
|
|
942
|
+
|
|
943
|
+
class SubmitVideoFaceFusionJobResponse(AbstractModel):
|
|
944
|
+
"""SubmitVideoFaceFusionJob response structure.
|
|
945
|
+
|
|
946
|
+
"""
|
|
947
|
+
|
|
948
|
+
def __init__(self):
|
|
949
|
+
r"""
|
|
950
|
+
:param _JobId: Job ID of the video face fusion task
|
|
951
|
+
:type JobId: str
|
|
952
|
+
:param _EstimatedProcessTime: Estimated processing time of the video face fusion task, in seconds
|
|
953
|
+
:type EstimatedProcessTime: float
|
|
954
|
+
:param _JobQueueLength: Estimated processing time of the video face fusion task, in seconds
|
|
955
|
+
:type JobQueueLength: int
|
|
956
|
+
:param _ReviewResultSet: Inappropriate content recognition result. The element order of this array is the same as that of mergeinfo in the request, with a one-to-one relationship.
|
|
957
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
958
|
+
:type ReviewResultSet: list of FuseFaceReviewResult
|
|
959
|
+
:param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
960
|
+
:type RequestId: str
|
|
961
|
+
"""
|
|
962
|
+
self._JobId = None
|
|
963
|
+
self._EstimatedProcessTime = None
|
|
964
|
+
self._JobQueueLength = None
|
|
965
|
+
self._ReviewResultSet = None
|
|
966
|
+
self._RequestId = None
|
|
967
|
+
|
|
968
|
+
@property
|
|
969
|
+
def JobId(self):
|
|
970
|
+
return self._JobId
|
|
971
|
+
|
|
972
|
+
@JobId.setter
|
|
973
|
+
def JobId(self, JobId):
|
|
974
|
+
self._JobId = JobId
|
|
975
|
+
|
|
976
|
+
@property
|
|
977
|
+
def EstimatedProcessTime(self):
|
|
978
|
+
return self._EstimatedProcessTime
|
|
979
|
+
|
|
980
|
+
@EstimatedProcessTime.setter
|
|
981
|
+
def EstimatedProcessTime(self, EstimatedProcessTime):
|
|
982
|
+
self._EstimatedProcessTime = EstimatedProcessTime
|
|
983
|
+
|
|
984
|
+
@property
|
|
985
|
+
def JobQueueLength(self):
|
|
986
|
+
return self._JobQueueLength
|
|
987
|
+
|
|
988
|
+
@JobQueueLength.setter
|
|
989
|
+
def JobQueueLength(self, JobQueueLength):
|
|
990
|
+
self._JobQueueLength = JobQueueLength
|
|
991
|
+
|
|
992
|
+
@property
|
|
993
|
+
def ReviewResultSet(self):
|
|
994
|
+
return self._ReviewResultSet
|
|
995
|
+
|
|
996
|
+
@ReviewResultSet.setter
|
|
997
|
+
def ReviewResultSet(self, ReviewResultSet):
|
|
998
|
+
self._ReviewResultSet = ReviewResultSet
|
|
999
|
+
|
|
1000
|
+
@property
|
|
1001
|
+
def RequestId(self):
|
|
1002
|
+
return self._RequestId
|
|
1003
|
+
|
|
1004
|
+
@RequestId.setter
|
|
1005
|
+
def RequestId(self, RequestId):
|
|
1006
|
+
self._RequestId = RequestId
|
|
1007
|
+
|
|
1008
|
+
|
|
1009
|
+
def _deserialize(self, params):
|
|
1010
|
+
self._JobId = params.get("JobId")
|
|
1011
|
+
self._EstimatedProcessTime = params.get("EstimatedProcessTime")
|
|
1012
|
+
self._JobQueueLength = params.get("JobQueueLength")
|
|
1013
|
+
if params.get("ReviewResultSet") is not None:
|
|
1014
|
+
self._ReviewResultSet = []
|
|
1015
|
+
for item in params.get("ReviewResultSet"):
|
|
1016
|
+
obj = FuseFaceReviewResult()
|
|
1017
|
+
obj._deserialize(item)
|
|
1018
|
+
self._ReviewResultSet.append(obj)
|
|
1019
|
+
self._RequestId = params.get("RequestId")
|
|
1020
|
+
|
|
1021
|
+
|
|
1022
|
+
class VideoFaceFusionOutput(AbstractModel):
|
|
1023
|
+
"""Returned video face fusion result
|
|
1024
|
+
|
|
1025
|
+
"""
|
|
1026
|
+
|
|
1027
|
+
def __init__(self):
|
|
1028
|
+
r"""
|
|
1029
|
+
:param _VideoUrl: URL of the video output after video face fusion
|
|
1030
|
+
:type VideoUrl: str
|
|
1031
|
+
:param _VideoMD5: MD5 value of the video output after video face fusion, which is used for verification
|
|
1032
|
+
:type VideoMD5: str
|
|
1033
|
+
:param _Width: Video width
|
|
1034
|
+
:type Width: int
|
|
1035
|
+
:param _Height: Video height
|
|
1036
|
+
:type Height: int
|
|
1037
|
+
:param _FPS: Frames per second
|
|
1038
|
+
:type FPS: int
|
|
1039
|
+
:param _DurationInSec: Video duration, in seconds
|
|
1040
|
+
:type DurationInSec: float
|
|
1041
|
+
:param _Frame: Number of frames
|
|
1042
|
+
:type Frame: int
|
|
1043
|
+
"""
|
|
1044
|
+
self._VideoUrl = None
|
|
1045
|
+
self._VideoMD5 = None
|
|
1046
|
+
self._Width = None
|
|
1047
|
+
self._Height = None
|
|
1048
|
+
self._FPS = None
|
|
1049
|
+
self._DurationInSec = None
|
|
1050
|
+
self._Frame = None
|
|
1051
|
+
|
|
1052
|
+
@property
|
|
1053
|
+
def VideoUrl(self):
|
|
1054
|
+
return self._VideoUrl
|
|
1055
|
+
|
|
1056
|
+
@VideoUrl.setter
|
|
1057
|
+
def VideoUrl(self, VideoUrl):
|
|
1058
|
+
self._VideoUrl = VideoUrl
|
|
1059
|
+
|
|
1060
|
+
@property
|
|
1061
|
+
def VideoMD5(self):
|
|
1062
|
+
return self._VideoMD5
|
|
1063
|
+
|
|
1064
|
+
@VideoMD5.setter
|
|
1065
|
+
def VideoMD5(self, VideoMD5):
|
|
1066
|
+
self._VideoMD5 = VideoMD5
|
|
1067
|
+
|
|
1068
|
+
@property
|
|
1069
|
+
def Width(self):
|
|
1070
|
+
return self._Width
|
|
1071
|
+
|
|
1072
|
+
@Width.setter
|
|
1073
|
+
def Width(self, Width):
|
|
1074
|
+
self._Width = Width
|
|
1075
|
+
|
|
1076
|
+
@property
|
|
1077
|
+
def Height(self):
|
|
1078
|
+
return self._Height
|
|
1079
|
+
|
|
1080
|
+
@Height.setter
|
|
1081
|
+
def Height(self, Height):
|
|
1082
|
+
self._Height = Height
|
|
1083
|
+
|
|
1084
|
+
@property
|
|
1085
|
+
def FPS(self):
|
|
1086
|
+
return self._FPS
|
|
1087
|
+
|
|
1088
|
+
@FPS.setter
|
|
1089
|
+
def FPS(self, FPS):
|
|
1090
|
+
self._FPS = FPS
|
|
1091
|
+
|
|
1092
|
+
@property
|
|
1093
|
+
def DurationInSec(self):
|
|
1094
|
+
return self._DurationInSec
|
|
1095
|
+
|
|
1096
|
+
@DurationInSec.setter
|
|
1097
|
+
def DurationInSec(self, DurationInSec):
|
|
1098
|
+
self._DurationInSec = DurationInSec
|
|
1099
|
+
|
|
1100
|
+
@property
|
|
1101
|
+
def Frame(self):
|
|
1102
|
+
return self._Frame
|
|
1103
|
+
|
|
1104
|
+
@Frame.setter
|
|
1105
|
+
def Frame(self, Frame):
|
|
1106
|
+
self._Frame = Frame
|
|
1107
|
+
|
|
1108
|
+
|
|
1109
|
+
def _deserialize(self, params):
|
|
1110
|
+
self._VideoUrl = params.get("VideoUrl")
|
|
1111
|
+
self._VideoMD5 = params.get("VideoMD5")
|
|
1112
|
+
self._Width = params.get("Width")
|
|
1113
|
+
self._Height = params.get("Height")
|
|
1114
|
+
self._FPS = params.get("FPS")
|
|
1115
|
+
self._DurationInSec = params.get("DurationInSec")
|
|
1116
|
+
self._Frame = params.get("Frame")
|
|
1117
|
+
memeber_set = set(params.keys())
|
|
1118
|
+
for name, value in vars(self).items():
|
|
1119
|
+
property_name = name[1:]
|
|
1120
|
+
if property_name in memeber_set:
|
|
1121
|
+
memeber_set.remove(property_name)
|
|
1122
|
+
if len(memeber_set) > 0:
|
|
1123
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
517
1124
|
|