zmc
2023-12-22 9fdbf60165db0400c2e8e6be2dc6e88138ac719a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
U
¡ý°dˆã@s`ddlZddlZddlmZddlmZddlmZddlmZddlmZGdd    „d    eƒZdS)
éNé)ÚAipBase)Úbase64)Újson)Ú    urlencode)Úquotec@sÈeZdZdZdZdZdZdZdZdZ    dZ
d    Z d
Z d Z d Zd Zdd„Zdd„Zd+dd„Zd,dd„Zd-dd„Zd.dd„Zd/dd„Zd0dd„Zd1dd „Zd2d!d"„Zd3d#d$„Zd4d%d&„Zd5d'd(„Zd6d)d*„ZdS)7ÚAipImageCensorz
        Aip ImageCensor
    zHhttps://aip.baidubce.com/rest/2.0/solution/v1/img_censor/v2/user_definedzIhttps://aip.baidubce.com/rest/2.0/solution/v1/text_censor/v2/user_definedzJhttps://aip.baidubce.com/rest/2.0/solution/v1/voice_censor/v3/user_definedzJhttps://aip.baidubce.com/rest/2.0/solution/v1/video_censor/v2/user_definedzJhttps://aip.baidubce.com/rest/2.0/solution/v1/video_censor/v1/video/submitzHhttps://aip.baidubce.com/rest/2.0/solution/v1/video_censor/v1/video/pullz@https://aip.baidubce.com/rest/2.0/solution/v1/async_voice/submitz>https://aip.baidubce.com/rest/2.0/solution/v1/async_voice/pullzAhttps://aip.baidubce.com/rest/2.0/solution/v1/live/v1/config/savezAhttps://aip.baidubce.com/rest/2.0/solution/v1/live/v1/config/stopzAhttps://aip.baidubce.com/rest/2.0/solution/v1/live/v1/config/viewz@https://aip.baidubce.com/rest/2.0/solution/v1/live/v1/audit/pullcCsBi}|dd…dk}|s,t |¡ ¡|d<n||d<| |j|¡S)z,
            imageCensorUserDefined
        réÚhttpÚimageZimgUrl)rÚ    b64encodeÚdecodeÚ_requestÚ*_AipImageCensor__imageCensorUserDefinedUrl)Úselfr ÚdataZisUrl©rúFd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\aip/imagecensor.pyÚimageCensorUserDefined)s z%AipImageCensor.imageCensorUserDefinedcCsi}||d<| |j|¡S)z+
            textCensorUserDefined
        Útext)rÚ)_AipImageCensor__textCensorUserDefinedUrl)rrrrrrÚtextCensorUserDefined8sz$AipImageCensor.textCensorUserDefinedNcCsFi}|p
i}t |¡ ¡|d<||d<||d<| |¡| |j|¡S)ú,
            voiceCensorUserDefined
        rÚfmtÚrate)rr r ÚupdaterÚ*_AipImageCensor__voiceCensorUserDefinedUrl©rZvoicerrÚoptionsrrrrÚvoiceCensorUserDefinedCs
z%AipImageCensor.voiceCensorUserDefinedcCs<i}|p
i}||d<||d<||d<| |¡| |j|¡S)rÚurlrr)rrrrrrrÚvoiceUrlCensorUserDefinedOs
z(AipImageCensor.voiceUrlCensorUserDefinedcCs<i}|p
i}||d<||d<||d<| |¡| |j|¡S)z,
            videoCensorUserDefined
        ÚnameÚvideoUrlÚextId)rrÚ*_AipImageCensor__videoCensorUserDefinedUrl)rr"r#r$rrrrrÚvideoCensorUserDefined[s
z%AipImageCensor.videoCensorUserDefinedcCs4i}|p
i}||d<||d<| |¡| |j|¡S)z'
            videoCensorSubmit
        r r$)rrÚ%_AipImageCensor__videoCensorSubmitUrl)rr r$rrrrrÚvideoCensorSubmitgs 
z AipImageCensor.videoCensorSubmitcCs,i}|p
i}||d<| |¡| |j|¡S)z%
            videoCensorPull
        ÚtaskId)rrÚ#_AipImageCensor__videoCensorPullUrl©rr)rrrrrÚvideoCensorPullrs
 
zAipImageCensor.videoCensorPullcCs<i}|p
i}||d<||d<||d<| |¡| |j|¡S)z&
            asyncVoiceSubmit
        r rr)rrÚ$_AipImageCensor__asyncVoiceSubmitUrl)rr rrrrrrrÚasyncVoiceSubmit|s
zAipImageCensor.asyncVoiceSubmitcCs,i}|p
i}||d<| |¡| |j|¡S)z(
            asyncVoiceTaskPull
        r)©rrÚ"_AipImageCensor__asyncVoicePullUrlr+rrrÚasyncVoiceTaskPullˆs
 
z!AipImageCensor.asyncVoiceTaskPullcCs,i}|p
i}||d<| |¡| |j|¡S)z)
            asyncVoiceAudioPull
        ÚaudioIdr/)rr2rrrrrÚasyncVoiceAudioPull’s
 
z"AipImageCensor.asyncVoiceAudioPullc    CsTi}|p
i}||d<||d<||d<||d<||d<||d<| |¡| |j|¡S)z$
            liveConfigSave
        Ú    streamUrlÚ
streamTyper$Ú    startTimeÚendTimeÚ
streamName)rrÚ"_AipImageCensor__liveConfigSaveUrl)    rr4r5r$r6r7r8rrrrrÚliveConfigSaveœs
zAipImageCensor.liveConfigSavecCs,i}|p
i}||d<| |¡| |j|¡S)z$
            liveConfigStop
        r))rrÚ"_AipImageCensor__liveConfigStopUrlr+rrrÚliveConfigStop«s
 
zAipImageCensor.liveConfigStopcCs,i}|p
i}||d<| |¡| |j|¡S)z$
            liveConfigView
        r))rrÚ"_AipImageCensor__liveConfigViewUrlr+rrrÚliveConfigViewµs
 
zAipImageCensor.liveConfigViewcCs,i}|p
i}||d<| |¡| |j|¡S)z#
            liveAuditPull
        r))rrÚ!_AipImageCensor__liveAuditPullUrlr+rrrÚ liveAuditPull¿s
 
zAipImageCensor.liveAuditPull)N)N)N)N)N)N)N)N)N)N)N)N)Ú__name__Ú
__module__Ú __qualname__Ú__doc__rrrr%r'r*r-r0r9r;r=r?rrrr!r&r(r,r.r1r3r:r<r>r@rrrrr s6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
r)    ÚreÚsysÚbaserrrrrrrrrrÚ<module>s