first commit
This commit is contained in:
@@ -0,0 +1 @@
|
||||
2a1f3697-b267-4f0a-8915-b589ae654d79
|
||||
56
app/lib/facebody/aliyunsdkfacebody/request/v20191230/AddBodyTraceRequest.py
Executable file
56
app/lib/facebody/aliyunsdkfacebody/request/v20191230/AddBodyTraceRequest.py
Executable file
@@ -0,0 +1,56 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from aliyunsdkcore.request import RpcRequest
|
||||
from aliyunsdkfacebody.endpoint import endpoint_data
|
||||
|
||||
class AddBodyTraceRequest(RpcRequest):
|
||||
|
||||
def __init__(self):
|
||||
RpcRequest.__init__(self, 'facebody', '2019-12-30', 'AddBodyTrace','facebody')
|
||||
self.set_method('POST')
|
||||
if hasattr(self, "endpoint_map"):
|
||||
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
|
||||
if hasattr(self, "endpoint_regional"):
|
||||
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
|
||||
|
||||
|
||||
def get_ExtraData(self):
|
||||
return self.get_body_params().get('ExtraData')
|
||||
|
||||
def set_ExtraData(self,ExtraData):
|
||||
self.add_body_params('ExtraData', ExtraData)
|
||||
|
||||
def get_PersonId(self):
|
||||
return self.get_body_params().get('PersonId')
|
||||
|
||||
def set_PersonId(self,PersonId):
|
||||
self.add_body_params('PersonId', PersonId)
|
||||
|
||||
def get_Images(self):
|
||||
return self.get_body_params().get('Images')
|
||||
|
||||
def set_Images(self,Images):
|
||||
self.add_body_params('Images', Images)
|
||||
|
||||
def get_DbId(self):
|
||||
return self.get_body_params().get('DbId')
|
||||
|
||||
def set_DbId(self,DbId):
|
||||
self.add_body_params('DbId', DbId)
|
||||
50
app/lib/facebody/aliyunsdkfacebody/request/v20191230/AddFaceEntityRequest.py
Executable file
50
app/lib/facebody/aliyunsdkfacebody/request/v20191230/AddFaceEntityRequest.py
Executable file
@@ -0,0 +1,50 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from aliyunsdkcore.request import RpcRequest
|
||||
from aliyunsdkfacebody.endpoint import endpoint_data
|
||||
|
||||
class AddFaceEntityRequest(RpcRequest):
|
||||
|
||||
def __init__(self):
|
||||
RpcRequest.__init__(self, 'facebody', '2019-12-30', 'AddFaceEntity','facebody')
|
||||
self.set_method('POST')
|
||||
if hasattr(self, "endpoint_map"):
|
||||
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
|
||||
if hasattr(self, "endpoint_regional"):
|
||||
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
|
||||
|
||||
|
||||
def get_EntityId(self):
|
||||
return self.get_body_params().get('EntityId')
|
||||
|
||||
def set_EntityId(self,EntityId):
|
||||
self.add_body_params('EntityId', EntityId)
|
||||
|
||||
def get_Labels(self):
|
||||
return self.get_body_params().get('Labels')
|
||||
|
||||
def set_Labels(self,Labels):
|
||||
self.add_body_params('Labels', Labels)
|
||||
|
||||
def get_DbName(self):
|
||||
return self.get_body_params().get('DbName')
|
||||
|
||||
def set_DbName(self,DbName):
|
||||
self.add_body_params('DbName', DbName)
|
||||
@@ -0,0 +1,44 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from aliyunsdkcore.request import RpcRequest
|
||||
from aliyunsdkfacebody.endpoint import endpoint_data
|
||||
|
||||
class AddFaceImageTemplateRequest(RpcRequest):
|
||||
|
||||
def __init__(self):
|
||||
RpcRequest.__init__(self, 'facebody', '2019-12-30', 'AddFaceImageTemplate','facebody')
|
||||
self.set_method('POST')
|
||||
if hasattr(self, "endpoint_map"):
|
||||
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
|
||||
if hasattr(self, "endpoint_regional"):
|
||||
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
|
||||
|
||||
|
||||
def get_UserId(self):
|
||||
return self.get_body_params().get('UserId')
|
||||
|
||||
def set_UserId(self,UserId):
|
||||
self.add_body_params('UserId', UserId)
|
||||
|
||||
def get_ImageURL(self):
|
||||
return self.get_body_params().get('ImageURL')
|
||||
|
||||
def set_ImageURL(self,ImageURL):
|
||||
self.add_body_params('ImageURL', ImageURL)
|
||||
56
app/lib/facebody/aliyunsdkfacebody/request/v20191230/AddFaceRequest.py
Executable file
56
app/lib/facebody/aliyunsdkfacebody/request/v20191230/AddFaceRequest.py
Executable file
@@ -0,0 +1,56 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from aliyunsdkcore.request import RpcRequest
|
||||
from aliyunsdkfacebody.endpoint import endpoint_data
|
||||
|
||||
class AddFaceRequest(RpcRequest):
|
||||
|
||||
def __init__(self):
|
||||
RpcRequest.__init__(self, 'facebody', '2019-12-30', 'AddFace','facebody')
|
||||
self.set_method('POST')
|
||||
if hasattr(self, "endpoint_map"):
|
||||
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
|
||||
if hasattr(self, "endpoint_regional"):
|
||||
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
|
||||
|
||||
|
||||
def get_EntityId(self):
|
||||
return self.get_body_params().get('EntityId')
|
||||
|
||||
def set_EntityId(self,EntityId):
|
||||
self.add_body_params('EntityId', EntityId)
|
||||
|
||||
def get_ExtraData(self):
|
||||
return self.get_body_params().get('ExtraData')
|
||||
|
||||
def set_ExtraData(self,ExtraData):
|
||||
self.add_body_params('ExtraData', ExtraData)
|
||||
|
||||
def get_DbName(self):
|
||||
return self.get_body_params().get('DbName')
|
||||
|
||||
def set_DbName(self,DbName):
|
||||
self.add_body_params('DbName', DbName)
|
||||
|
||||
def get_ImageUrl(self):
|
||||
return self.get_body_params().get('ImageUrl')
|
||||
|
||||
def set_ImageUrl(self,ImageUrl):
|
||||
self.add_body_params('ImageUrl', ImageUrl)
|
||||
38
app/lib/facebody/aliyunsdkfacebody/request/v20191230/BlurFaceRequest.py
Executable file
38
app/lib/facebody/aliyunsdkfacebody/request/v20191230/BlurFaceRequest.py
Executable file
@@ -0,0 +1,38 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from aliyunsdkcore.request import RpcRequest
|
||||
from aliyunsdkfacebody.endpoint import endpoint_data
|
||||
|
||||
class BlurFaceRequest(RpcRequest):
|
||||
|
||||
def __init__(self):
|
||||
RpcRequest.__init__(self, 'facebody', '2019-12-30', 'BlurFace','facebody')
|
||||
self.set_method('POST')
|
||||
if hasattr(self, "endpoint_map"):
|
||||
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
|
||||
if hasattr(self, "endpoint_regional"):
|
||||
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
|
||||
|
||||
|
||||
def get_ImageURL(self):
|
||||
return self.get_body_params().get('ImageURL')
|
||||
|
||||
def set_ImageURL(self,ImageURL):
|
||||
self.add_body_params('ImageURL', ImageURL)
|
||||
38
app/lib/facebody/aliyunsdkfacebody/request/v20191230/BodyPostureRequest.py
Executable file
38
app/lib/facebody/aliyunsdkfacebody/request/v20191230/BodyPostureRequest.py
Executable file
@@ -0,0 +1,38 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from aliyunsdkcore.request import RpcRequest
|
||||
from aliyunsdkfacebody.endpoint import endpoint_data
|
||||
|
||||
class BodyPostureRequest(RpcRequest):
|
||||
|
||||
def __init__(self):
|
||||
RpcRequest.__init__(self, 'facebody', '2019-12-30', 'BodyPosture','facebody')
|
||||
self.set_method('POST')
|
||||
if hasattr(self, "endpoint_map"):
|
||||
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
|
||||
if hasattr(self, "endpoint_regional"):
|
||||
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
|
||||
|
||||
|
||||
def get_ImageURL(self):
|
||||
return self.get_body_params().get('ImageURL')
|
||||
|
||||
def set_ImageURL(self,ImageURL):
|
||||
self.add_body_params('ImageURL', ImageURL)
|
||||
62
app/lib/facebody/aliyunsdkfacebody/request/v20191230/CompareFaceRequest.py
Executable file
62
app/lib/facebody/aliyunsdkfacebody/request/v20191230/CompareFaceRequest.py
Executable file
@@ -0,0 +1,62 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from aliyunsdkcore.request import RpcRequest
|
||||
from aliyunsdkfacebody.endpoint import endpoint_data
|
||||
|
||||
class CompareFaceRequest(RpcRequest):
|
||||
|
||||
def __init__(self):
|
||||
RpcRequest.__init__(self, 'facebody', '2019-12-30', 'CompareFace','facebody')
|
||||
self.set_method('POST')
|
||||
if hasattr(self, "endpoint_map"):
|
||||
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
|
||||
if hasattr(self, "endpoint_regional"):
|
||||
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
|
||||
|
||||
|
||||
def get_ImageDataA(self):
|
||||
return self.get_body_params().get('ImageDataA')
|
||||
|
||||
def set_ImageDataA(self,ImageDataA):
|
||||
self.add_body_params('ImageDataA', ImageDataA)
|
||||
|
||||
def get_ImageDataB(self):
|
||||
return self.get_body_params().get('ImageDataB')
|
||||
|
||||
def set_ImageDataB(self,ImageDataB):
|
||||
self.add_body_params('ImageDataB', ImageDataB)
|
||||
|
||||
def get_QualityScoreThreshold(self):
|
||||
return self.get_body_params().get('QualityScoreThreshold')
|
||||
|
||||
def set_QualityScoreThreshold(self,QualityScoreThreshold):
|
||||
self.add_body_params('QualityScoreThreshold', QualityScoreThreshold)
|
||||
|
||||
def get_ImageURLB(self):
|
||||
return self.get_body_params().get('ImageURLB')
|
||||
|
||||
def set_ImageURLB(self,ImageURLB):
|
||||
self.add_body_params('ImageURLB', ImageURLB)
|
||||
|
||||
def get_ImageURLA(self):
|
||||
return self.get_body_params().get('ImageURLA')
|
||||
|
||||
def set_ImageURLA(self,ImageURLA):
|
||||
self.add_body_params('ImageURLA', ImageURLA)
|
||||
44
app/lib/facebody/aliyunsdkfacebody/request/v20191230/CountCrowdRequest.py
Executable file
44
app/lib/facebody/aliyunsdkfacebody/request/v20191230/CountCrowdRequest.py
Executable file
@@ -0,0 +1,44 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from aliyunsdkcore.request import RpcRequest
|
||||
from aliyunsdkfacebody.endpoint import endpoint_data
|
||||
|
||||
class CountCrowdRequest(RpcRequest):
|
||||
|
||||
def __init__(self):
|
||||
RpcRequest.__init__(self, 'facebody', '2019-12-30', 'CountCrowd','facebody')
|
||||
self.set_method('POST')
|
||||
if hasattr(self, "endpoint_map"):
|
||||
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
|
||||
if hasattr(self, "endpoint_regional"):
|
||||
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
|
||||
|
||||
|
||||
def get_IsShow(self):
|
||||
return self.get_body_params().get('IsShow')
|
||||
|
||||
def set_IsShow(self,IsShow):
|
||||
self.add_body_params('IsShow', IsShow)
|
||||
|
||||
def get_ImageURL(self):
|
||||
return self.get_body_params().get('ImageURL')
|
||||
|
||||
def set_ImageURL(self,ImageURL):
|
||||
self.add_body_params('ImageURL', ImageURL)
|
||||
38
app/lib/facebody/aliyunsdkfacebody/request/v20191230/CreateBodyDbRequest.py
Executable file
38
app/lib/facebody/aliyunsdkfacebody/request/v20191230/CreateBodyDbRequest.py
Executable file
@@ -0,0 +1,38 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from aliyunsdkcore.request import RpcRequest
|
||||
from aliyunsdkfacebody.endpoint import endpoint_data
|
||||
|
||||
class CreateBodyDbRequest(RpcRequest):
|
||||
|
||||
def __init__(self):
|
||||
RpcRequest.__init__(self, 'facebody', '2019-12-30', 'CreateBodyDb','facebody')
|
||||
self.set_method('POST')
|
||||
if hasattr(self, "endpoint_map"):
|
||||
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
|
||||
if hasattr(self, "endpoint_regional"):
|
||||
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
|
||||
|
||||
|
||||
def get_Name(self):
|
||||
return self.get_body_params().get('Name')
|
||||
|
||||
def set_Name(self,Name):
|
||||
self.add_body_params('Name', Name)
|
||||
@@ -0,0 +1,44 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from aliyunsdkcore.request import RpcRequest
|
||||
from aliyunsdkfacebody.endpoint import endpoint_data
|
||||
|
||||
class CreateBodyPersonRequest(RpcRequest):
|
||||
|
||||
def __init__(self):
|
||||
RpcRequest.__init__(self, 'facebody', '2019-12-30', 'CreateBodyPerson','facebody')
|
||||
self.set_method('POST')
|
||||
if hasattr(self, "endpoint_map"):
|
||||
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
|
||||
if hasattr(self, "endpoint_regional"):
|
||||
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
|
||||
|
||||
|
||||
def get_DbId(self):
|
||||
return self.get_body_params().get('DbId')
|
||||
|
||||
def set_DbId(self,DbId):
|
||||
self.add_body_params('DbId', DbId)
|
||||
|
||||
def get_Name(self):
|
||||
return self.get_body_params().get('Name')
|
||||
|
||||
def set_Name(self,Name):
|
||||
self.add_body_params('Name', Name)
|
||||
38
app/lib/facebody/aliyunsdkfacebody/request/v20191230/CreateFaceDbRequest.py
Executable file
38
app/lib/facebody/aliyunsdkfacebody/request/v20191230/CreateFaceDbRequest.py
Executable file
@@ -0,0 +1,38 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from aliyunsdkcore.request import RpcRequest
|
||||
from aliyunsdkfacebody.endpoint import endpoint_data
|
||||
|
||||
class CreateFaceDbRequest(RpcRequest):
|
||||
|
||||
def __init__(self):
|
||||
RpcRequest.__init__(self, 'facebody', '2019-12-30', 'CreateFaceDb','facebody')
|
||||
self.set_method('POST')
|
||||
if hasattr(self, "endpoint_map"):
|
||||
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
|
||||
if hasattr(self, "endpoint_regional"):
|
||||
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
|
||||
|
||||
|
||||
def get_Name(self):
|
||||
return self.get_body_params().get('Name')
|
||||
|
||||
def set_Name(self,Name):
|
||||
self.add_body_params('Name', Name)
|
||||
38
app/lib/facebody/aliyunsdkfacebody/request/v20191230/DeleteBodyDbRequest.py
Executable file
38
app/lib/facebody/aliyunsdkfacebody/request/v20191230/DeleteBodyDbRequest.py
Executable file
@@ -0,0 +1,38 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from aliyunsdkcore.request import RpcRequest
|
||||
from aliyunsdkfacebody.endpoint import endpoint_data
|
||||
|
||||
class DeleteBodyDbRequest(RpcRequest):
|
||||
|
||||
def __init__(self):
|
||||
RpcRequest.__init__(self, 'facebody', '2019-12-30', 'DeleteBodyDb','facebody')
|
||||
self.set_method('POST')
|
||||
if hasattr(self, "endpoint_map"):
|
||||
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
|
||||
if hasattr(self, "endpoint_regional"):
|
||||
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
|
||||
|
||||
|
||||
def get_Id(self):
|
||||
return self.get_body_params().get('Id')
|
||||
|
||||
def set_Id(self,Id):
|
||||
self.add_body_params('Id', Id)
|
||||
@@ -0,0 +1,44 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from aliyunsdkcore.request import RpcRequest
|
||||
from aliyunsdkfacebody.endpoint import endpoint_data
|
||||
|
||||
class DeleteBodyPersonRequest(RpcRequest):
|
||||
|
||||
def __init__(self):
|
||||
RpcRequest.__init__(self, 'facebody', '2019-12-30', 'DeleteBodyPerson','facebody')
|
||||
self.set_method('POST')
|
||||
if hasattr(self, "endpoint_map"):
|
||||
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
|
||||
if hasattr(self, "endpoint_regional"):
|
||||
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
|
||||
|
||||
|
||||
def get_PersonId(self):
|
||||
return self.get_body_params().get('PersonId')
|
||||
|
||||
def set_PersonId(self,PersonId):
|
||||
self.add_body_params('PersonId', PersonId)
|
||||
|
||||
def get_DbId(self):
|
||||
return self.get_body_params().get('DbId')
|
||||
|
||||
def set_DbId(self,DbId):
|
||||
self.add_body_params('DbId', DbId)
|
||||
38
app/lib/facebody/aliyunsdkfacebody/request/v20191230/DeleteFaceDbRequest.py
Executable file
38
app/lib/facebody/aliyunsdkfacebody/request/v20191230/DeleteFaceDbRequest.py
Executable file
@@ -0,0 +1,38 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from aliyunsdkcore.request import RpcRequest
|
||||
from aliyunsdkfacebody.endpoint import endpoint_data
|
||||
|
||||
class DeleteFaceDbRequest(RpcRequest):
|
||||
|
||||
def __init__(self):
|
||||
RpcRequest.__init__(self, 'facebody', '2019-12-30', 'DeleteFaceDb','facebody')
|
||||
self.set_method('POST')
|
||||
if hasattr(self, "endpoint_map"):
|
||||
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
|
||||
if hasattr(self, "endpoint_regional"):
|
||||
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
|
||||
|
||||
|
||||
def get_Name(self):
|
||||
return self.get_body_params().get('Name')
|
||||
|
||||
def set_Name(self,Name):
|
||||
self.add_body_params('Name', Name)
|
||||
@@ -0,0 +1,44 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from aliyunsdkcore.request import RpcRequest
|
||||
from aliyunsdkfacebody.endpoint import endpoint_data
|
||||
|
||||
class DeleteFaceEntityRequest(RpcRequest):
|
||||
|
||||
def __init__(self):
|
||||
RpcRequest.__init__(self, 'facebody', '2019-12-30', 'DeleteFaceEntity','facebody')
|
||||
self.set_method('POST')
|
||||
if hasattr(self, "endpoint_map"):
|
||||
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
|
||||
if hasattr(self, "endpoint_regional"):
|
||||
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
|
||||
|
||||
|
||||
def get_EntityId(self):
|
||||
return self.get_body_params().get('EntityId')
|
||||
|
||||
def set_EntityId(self,EntityId):
|
||||
self.add_body_params('EntityId', EntityId)
|
||||
|
||||
def get_DbName(self):
|
||||
return self.get_body_params().get('DbName')
|
||||
|
||||
def set_DbName(self,DbName):
|
||||
self.add_body_params('DbName', DbName)
|
||||
@@ -0,0 +1,44 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from aliyunsdkcore.request import RpcRequest
|
||||
from aliyunsdkfacebody.endpoint import endpoint_data
|
||||
|
||||
class DeleteFaceImageTemplateRequest(RpcRequest):
|
||||
|
||||
def __init__(self):
|
||||
RpcRequest.__init__(self, 'facebody', '2019-12-30', 'DeleteFaceImageTemplate','facebody')
|
||||
self.set_method('POST')
|
||||
if hasattr(self, "endpoint_map"):
|
||||
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
|
||||
if hasattr(self, "endpoint_regional"):
|
||||
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
|
||||
|
||||
|
||||
def get_UserId(self):
|
||||
return self.get_body_params().get('UserId')
|
||||
|
||||
def set_UserId(self,UserId):
|
||||
self.add_body_params('UserId', UserId)
|
||||
|
||||
def get_TemplateId(self):
|
||||
return self.get_body_params().get('TemplateId')
|
||||
|
||||
def set_TemplateId(self,TemplateId):
|
||||
self.add_body_params('TemplateId', TemplateId)
|
||||
44
app/lib/facebody/aliyunsdkfacebody/request/v20191230/DeleteFaceRequest.py
Executable file
44
app/lib/facebody/aliyunsdkfacebody/request/v20191230/DeleteFaceRequest.py
Executable file
@@ -0,0 +1,44 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from aliyunsdkcore.request import RpcRequest
|
||||
from aliyunsdkfacebody.endpoint import endpoint_data
|
||||
|
||||
class DeleteFaceRequest(RpcRequest):
|
||||
|
||||
def __init__(self):
|
||||
RpcRequest.__init__(self, 'facebody', '2019-12-30', 'DeleteFace','facebody')
|
||||
self.set_method('POST')
|
||||
if hasattr(self, "endpoint_map"):
|
||||
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
|
||||
if hasattr(self, "endpoint_regional"):
|
||||
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
|
||||
|
||||
|
||||
def get_FaceId(self):
|
||||
return self.get_body_params().get('FaceId')
|
||||
|
||||
def set_FaceId(self,FaceId):
|
||||
self.add_body_params('FaceId', FaceId)
|
||||
|
||||
def get_DbName(self):
|
||||
return self.get_body_params().get('DbName')
|
||||
|
||||
def set_DbName(self,DbName):
|
||||
self.add_body_params('DbName', DbName)
|
||||
@@ -0,0 +1,38 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from aliyunsdkcore.request import RpcRequest
|
||||
from aliyunsdkfacebody.endpoint import endpoint_data
|
||||
|
||||
class DetectBodyCountRequest(RpcRequest):
|
||||
|
||||
def __init__(self):
|
||||
RpcRequest.__init__(self, 'facebody', '2019-12-30', 'DetectBodyCount','facebody')
|
||||
self.set_method('POST')
|
||||
if hasattr(self, "endpoint_map"):
|
||||
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
|
||||
if hasattr(self, "endpoint_regional"):
|
||||
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
|
||||
|
||||
|
||||
def get_ImageURL(self):
|
||||
return self.get_body_params().get('ImageURL')
|
||||
|
||||
def set_ImageURL(self,ImageURL):
|
||||
self.add_body_params('ImageURL', ImageURL)
|
||||
@@ -0,0 +1,38 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from aliyunsdkcore.request import RpcRequest
|
||||
from aliyunsdkfacebody.endpoint import endpoint_data
|
||||
|
||||
class DetectCelebrityRequest(RpcRequest):
|
||||
|
||||
def __init__(self):
|
||||
RpcRequest.__init__(self, 'facebody', '2019-12-30', 'DetectCelebrity','facebody')
|
||||
self.set_method('POST')
|
||||
if hasattr(self, "endpoint_map"):
|
||||
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
|
||||
if hasattr(self, "endpoint_regional"):
|
||||
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
|
||||
|
||||
|
||||
def get_ImageURL(self):
|
||||
return self.get_body_params().get('ImageURL')
|
||||
|
||||
def set_ImageURL(self,ImageURL):
|
||||
self.add_body_params('ImageURL', ImageURL)
|
||||
38
app/lib/facebody/aliyunsdkfacebody/request/v20191230/DetectChefCapRequest.py
Executable file
38
app/lib/facebody/aliyunsdkfacebody/request/v20191230/DetectChefCapRequest.py
Executable file
@@ -0,0 +1,38 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from aliyunsdkcore.request import RpcRequest
|
||||
from aliyunsdkfacebody.endpoint import endpoint_data
|
||||
|
||||
class DetectChefCapRequest(RpcRequest):
|
||||
|
||||
def __init__(self):
|
||||
RpcRequest.__init__(self, 'facebody', '2019-12-30', 'DetectChefCap','facebody')
|
||||
self.set_method('POST')
|
||||
if hasattr(self, "endpoint_map"):
|
||||
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
|
||||
if hasattr(self, "endpoint_regional"):
|
||||
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
|
||||
|
||||
|
||||
def get_ImageURL(self):
|
||||
return self.get_body_params().get('ImageURL')
|
||||
|
||||
def set_ImageURL(self,ImageURL):
|
||||
self.add_body_params('ImageURL', ImageURL)
|
||||
38
app/lib/facebody/aliyunsdkfacebody/request/v20191230/DetectFaceRequest.py
Executable file
38
app/lib/facebody/aliyunsdkfacebody/request/v20191230/DetectFaceRequest.py
Executable file
@@ -0,0 +1,38 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from aliyunsdkcore.request import RpcRequest
|
||||
from aliyunsdkfacebody.endpoint import endpoint_data
|
||||
|
||||
class DetectFaceRequest(RpcRequest):
|
||||
|
||||
def __init__(self):
|
||||
RpcRequest.__init__(self, 'facebody', '2019-12-30', 'DetectFace','facebody')
|
||||
self.set_method('POST')
|
||||
if hasattr(self, "endpoint_map"):
|
||||
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
|
||||
if hasattr(self, "endpoint_regional"):
|
||||
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
|
||||
|
||||
|
||||
def get_ImageURL(self):
|
||||
return self.get_body_params().get('ImageURL')
|
||||
|
||||
def set_ImageURL(self,ImageURL):
|
||||
self.add_body_params('ImageURL', ImageURL)
|
||||
@@ -0,0 +1,56 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from aliyunsdkcore.request import RpcRequest
|
||||
from aliyunsdkfacebody.endpoint import endpoint_data
|
||||
|
||||
class DetectIPCPedestrianRequest(RpcRequest):
|
||||
|
||||
def __init__(self):
|
||||
RpcRequest.__init__(self, 'facebody', '2019-12-30', 'DetectIPCPedestrian','facebody')
|
||||
self.set_method('POST')
|
||||
if hasattr(self, "endpoint_map"):
|
||||
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
|
||||
if hasattr(self, "endpoint_regional"):
|
||||
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
|
||||
|
||||
|
||||
def get_Height(self):
|
||||
return self.get_body_params().get('Height')
|
||||
|
||||
def set_Height(self,Height):
|
||||
self.add_body_params('Height', Height)
|
||||
|
||||
def get_ImageData(self):
|
||||
return self.get_body_params().get('ImageData')
|
||||
|
||||
def set_ImageData(self,ImageData):
|
||||
self.add_body_params('ImageData', ImageData)
|
||||
|
||||
def get_ImageURL(self):
|
||||
return self.get_body_params().get('ImageURL')
|
||||
|
||||
def set_ImageURL(self,ImageURL):
|
||||
self.add_body_params('ImageURL', ImageURL)
|
||||
|
||||
def get_Width(self):
|
||||
return self.get_body_params().get('Width')
|
||||
|
||||
def set_Width(self,Width):
|
||||
self.add_body_params('Width', Width)
|
||||
@@ -0,0 +1,42 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from aliyunsdkcore.request import RpcRequest
|
||||
from aliyunsdkfacebody.endpoint import endpoint_data
|
||||
|
||||
class DetectLivingFaceRequest(RpcRequest):
|
||||
|
||||
def __init__(self):
|
||||
RpcRequest.__init__(self, 'facebody', '2019-12-30', 'DetectLivingFace','facebody')
|
||||
self.set_method('POST')
|
||||
if hasattr(self, "endpoint_map"):
|
||||
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
|
||||
if hasattr(self, "endpoint_regional"):
|
||||
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
|
||||
|
||||
|
||||
def get_Taskss(self):
|
||||
return self.get_body_params().get('Tasks')
|
||||
|
||||
def set_Taskss(self, Taskss):
|
||||
for depth1 in range(len(Taskss)):
|
||||
if Taskss[depth1].get('ImageURL') is not None:
|
||||
self.add_body_params('Tasks.' + str(depth1 + 1) + '.ImageURL', Taskss[depth1].get('ImageURL'))
|
||||
if Taskss[depth1].get('ImageData') is not None:
|
||||
self.add_body_params('Tasks.' + str(depth1 + 1) + '.ImageData', Taskss[depth1].get('ImageData'))
|
||||
38
app/lib/facebody/aliyunsdkfacebody/request/v20191230/DetectMaskRequest.py
Executable file
38
app/lib/facebody/aliyunsdkfacebody/request/v20191230/DetectMaskRequest.py
Executable file
@@ -0,0 +1,38 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from aliyunsdkcore.request import RpcRequest
|
||||
from aliyunsdkfacebody.endpoint import endpoint_data
|
||||
|
||||
class DetectMaskRequest(RpcRequest):
|
||||
|
||||
def __init__(self):
|
||||
RpcRequest.__init__(self, 'facebody', '2019-12-30', 'DetectMask','facebody')
|
||||
self.set_method('POST')
|
||||
if hasattr(self, "endpoint_map"):
|
||||
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
|
||||
if hasattr(self, "endpoint_regional"):
|
||||
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
|
||||
|
||||
|
||||
def get_ImageURL(self):
|
||||
return self.get_body_params().get('ImageURL')
|
||||
|
||||
def set_ImageURL(self,ImageURL):
|
||||
self.add_body_params('ImageURL', ImageURL)
|
||||
@@ -0,0 +1,50 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from aliyunsdkcore.request import RpcRequest
|
||||
from aliyunsdkfacebody.endpoint import endpoint_data
|
||||
|
||||
class DetectPedestrianIntrusionRequest(RpcRequest):
|
||||
|
||||
def __init__(self):
|
||||
RpcRequest.__init__(self, 'facebody', '2019-12-30', 'DetectPedestrianIntrusion','facebody')
|
||||
self.set_method('POST')
|
||||
if hasattr(self, "endpoint_map"):
|
||||
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
|
||||
if hasattr(self, "endpoint_regional"):
|
||||
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
|
||||
|
||||
|
||||
def get_DetectRegion(self):
|
||||
return self.get_body_params().get('DetectRegion')
|
||||
|
||||
def set_DetectRegion(self,DetectRegion):
|
||||
self.add_body_params('DetectRegion', DetectRegion)
|
||||
|
||||
def get_RegionType(self):
|
||||
return self.get_body_params().get('RegionType')
|
||||
|
||||
def set_RegionType(self,RegionType):
|
||||
self.add_body_params('RegionType', RegionType)
|
||||
|
||||
def get_ImageURL(self):
|
||||
return self.get_body_params().get('ImageURL')
|
||||
|
||||
def set_ImageURL(self,ImageURL):
|
||||
self.add_body_params('ImageURL', ImageURL)
|
||||
@@ -0,0 +1,38 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from aliyunsdkcore.request import RpcRequest
|
||||
from aliyunsdkfacebody.endpoint import endpoint_data
|
||||
|
||||
class DetectPedestrianRequest(RpcRequest):
|
||||
|
||||
def __init__(self):
|
||||
RpcRequest.__init__(self, 'facebody', '2019-12-30', 'DetectPedestrian','facebody')
|
||||
self.set_method('POST')
|
||||
if hasattr(self, "endpoint_map"):
|
||||
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
|
||||
if hasattr(self, "endpoint_regional"):
|
||||
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
|
||||
|
||||
|
||||
def get_ImageURL(self):
|
||||
return self.get_body_params().get('ImageURL')
|
||||
|
||||
def set_ImageURL(self,ImageURL):
|
||||
self.add_body_params('ImageURL', ImageURL)
|
||||
@@ -0,0 +1,38 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from aliyunsdkcore.request import RpcRequest
|
||||
from aliyunsdkfacebody.endpoint import endpoint_data
|
||||
|
||||
class DetectVideoLivingFaceRequest(RpcRequest):
|
||||
|
||||
def __init__(self):
|
||||
RpcRequest.__init__(self, 'facebody', '2019-12-30', 'DetectVideoLivingFace','facebody')
|
||||
self.set_method('POST')
|
||||
if hasattr(self, "endpoint_map"):
|
||||
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
|
||||
if hasattr(self, "endpoint_regional"):
|
||||
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
|
||||
|
||||
|
||||
def get_VideoUrl(self):
|
||||
return self.get_body_params().get('VideoUrl')
|
||||
|
||||
def set_VideoUrl(self,VideoUrl):
|
||||
self.add_body_params('VideoUrl', VideoUrl)
|
||||
38
app/lib/facebody/aliyunsdkfacebody/request/v20191230/EnhanceFaceRequest.py
Executable file
38
app/lib/facebody/aliyunsdkfacebody/request/v20191230/EnhanceFaceRequest.py
Executable file
@@ -0,0 +1,38 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from aliyunsdkcore.request import RpcRequest
|
||||
from aliyunsdkfacebody.endpoint import endpoint_data
|
||||
|
||||
class EnhanceFaceRequest(RpcRequest):
|
||||
|
||||
def __init__(self):
|
||||
RpcRequest.__init__(self, 'facebody', '2019-12-30', 'EnhanceFace','facebody')
|
||||
self.set_method('POST')
|
||||
if hasattr(self, "endpoint_map"):
|
||||
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
|
||||
if hasattr(self, "endpoint_regional"):
|
||||
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
|
||||
|
||||
|
||||
def get_ImageURL(self):
|
||||
return self.get_body_params().get('ImageURL')
|
||||
|
||||
def set_ImageURL(self,ImageURL):
|
||||
self.add_body_params('ImageURL', ImageURL)
|
||||
@@ -0,0 +1,44 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from aliyunsdkcore.request import RpcRequest
|
||||
from aliyunsdkfacebody.endpoint import endpoint_data
|
||||
|
||||
class ExtractFingerPrintRequest(RpcRequest):
|
||||
|
||||
def __init__(self):
|
||||
RpcRequest.__init__(self, 'facebody', '2019-12-30', 'ExtractFingerPrint','facebody')
|
||||
self.set_method('POST')
|
||||
if hasattr(self, "endpoint_map"):
|
||||
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
|
||||
if hasattr(self, "endpoint_regional"):
|
||||
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
|
||||
|
||||
|
||||
def get_ImageData(self):
|
||||
return self.get_body_params().get('ImageData')
|
||||
|
||||
def set_ImageData(self,ImageData):
|
||||
self.add_body_params('ImageData', ImageData)
|
||||
|
||||
def get_ImageURL(self):
|
||||
return self.get_body_params().get('ImageURL')
|
||||
|
||||
def set_ImageURL(self,ImageURL):
|
||||
self.add_body_params('ImageURL', ImageURL)
|
||||
@@ -0,0 +1,50 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from aliyunsdkcore.request import RpcRequest
|
||||
from aliyunsdkfacebody.endpoint import endpoint_data
|
||||
|
||||
class ExtractPedestrianFeatureAttrRequest(RpcRequest):
|
||||
|
||||
def __init__(self):
|
||||
RpcRequest.__init__(self, 'facebody', '2019-12-30', 'ExtractPedestrianFeatureAttr','facebody')
|
||||
self.set_method('POST')
|
||||
if hasattr(self, "endpoint_map"):
|
||||
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
|
||||
if hasattr(self, "endpoint_regional"):
|
||||
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
|
||||
|
||||
|
||||
def get_Mode(self):
|
||||
return self.get_body_params().get('Mode')
|
||||
|
||||
def set_Mode(self,Mode):
|
||||
self.add_body_params('Mode', Mode)
|
||||
|
||||
def get_ImageURL(self):
|
||||
return self.get_body_params().get('ImageURL')
|
||||
|
||||
def set_ImageURL(self,ImageURL):
|
||||
self.add_body_params('ImageURL', ImageURL)
|
||||
|
||||
def get_ServiceVersion(self):
|
||||
return self.get_body_params().get('ServiceVersion')
|
||||
|
||||
def set_ServiceVersion(self,ServiceVersion):
|
||||
self.add_body_params('ServiceVersion', ServiceVersion)
|
||||
@@ -0,0 +1,52 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from aliyunsdkcore.request import RpcRequest
|
||||
from aliyunsdkfacebody.endpoint import endpoint_data
|
||||
|
||||
class ExtractPedestrianFeatureAttributeRequest(RpcRequest):
|
||||
|
||||
def __init__(self):
|
||||
RpcRequest.__init__(self, 'facebody', '2019-12-30', 'ExtractPedestrianFeatureAttribute','facebody')
|
||||
self.set_method('POST')
|
||||
if hasattr(self, "endpoint_map"):
|
||||
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
|
||||
if hasattr(self, "endpoint_regional"):
|
||||
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
|
||||
|
||||
|
||||
def get_UrlLists(self):
|
||||
return self.get_body_params().get('UrlList')
|
||||
|
||||
def set_UrlLists(self, UrlLists):
|
||||
for depth1 in range(len(UrlLists)):
|
||||
if UrlLists[depth1].get('Url') is not None:
|
||||
self.add_body_params('UrlList.' + str(depth1 + 1) + '.Url', UrlLists[depth1].get('Url'))
|
||||
|
||||
def get_Mode(self):
|
||||
return self.get_body_params().get('Mode')
|
||||
|
||||
def set_Mode(self,Mode):
|
||||
self.add_body_params('Mode', Mode)
|
||||
|
||||
def get_ImageURL(self):
|
||||
return self.get_body_params().get('ImageURL')
|
||||
|
||||
def set_ImageURL(self,ImageURL):
|
||||
self.add_body_params('ImageURL', ImageURL)
|
||||
56
app/lib/facebody/aliyunsdkfacebody/request/v20191230/FaceBeautyRequest.py
Executable file
56
app/lib/facebody/aliyunsdkfacebody/request/v20191230/FaceBeautyRequest.py
Executable file
@@ -0,0 +1,56 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from aliyunsdkcore.request import RpcRequest
|
||||
from aliyunsdkfacebody.endpoint import endpoint_data
|
||||
|
||||
class FaceBeautyRequest(RpcRequest):
|
||||
|
||||
def __init__(self):
|
||||
RpcRequest.__init__(self, 'facebody', '2019-12-30', 'FaceBeauty','facebody')
|
||||
self.set_method('POST')
|
||||
if hasattr(self, "endpoint_map"):
|
||||
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
|
||||
if hasattr(self, "endpoint_regional"):
|
||||
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
|
||||
|
||||
|
||||
def get_White(self):
|
||||
return self.get_body_params().get('White')
|
||||
|
||||
def set_White(self,White):
|
||||
self.add_body_params('White', White)
|
||||
|
||||
def get_Smooth(self):
|
||||
return self.get_body_params().get('Smooth')
|
||||
|
||||
def set_Smooth(self,Smooth):
|
||||
self.add_body_params('Smooth', Smooth)
|
||||
|
||||
def get_Sharp(self):
|
||||
return self.get_body_params().get('Sharp')
|
||||
|
||||
def set_Sharp(self,Sharp):
|
||||
self.add_body_params('Sharp', Sharp)
|
||||
|
||||
def get_ImageURL(self):
|
||||
return self.get_body_params().get('ImageURL')
|
||||
|
||||
def set_ImageURL(self,ImageURL):
|
||||
self.add_body_params('ImageURL', ImageURL)
|
||||
50
app/lib/facebody/aliyunsdkfacebody/request/v20191230/FaceFilterRequest.py
Executable file
50
app/lib/facebody/aliyunsdkfacebody/request/v20191230/FaceFilterRequest.py
Executable file
@@ -0,0 +1,50 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from aliyunsdkcore.request import RpcRequest
|
||||
from aliyunsdkfacebody.endpoint import endpoint_data
|
||||
|
||||
class FaceFilterRequest(RpcRequest):
|
||||
|
||||
def __init__(self):
|
||||
RpcRequest.__init__(self, 'facebody', '2019-12-30', 'FaceFilter','facebody')
|
||||
self.set_method('POST')
|
||||
if hasattr(self, "endpoint_map"):
|
||||
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
|
||||
if hasattr(self, "endpoint_regional"):
|
||||
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
|
||||
|
||||
|
||||
def get_Strength(self):
|
||||
return self.get_body_params().get('Strength')
|
||||
|
||||
def set_Strength(self,Strength):
|
||||
self.add_body_params('Strength', Strength)
|
||||
|
||||
def get_ResourceType(self):
|
||||
return self.get_body_params().get('ResourceType')
|
||||
|
||||
def set_ResourceType(self,ResourceType):
|
||||
self.add_body_params('ResourceType', ResourceType)
|
||||
|
||||
def get_ImageURL(self):
|
||||
return self.get_body_params().get('ImageURL')
|
||||
|
||||
def set_ImageURL(self,ImageURL):
|
||||
self.add_body_params('ImageURL', ImageURL)
|
||||
56
app/lib/facebody/aliyunsdkfacebody/request/v20191230/FaceMakeupRequest.py
Executable file
56
app/lib/facebody/aliyunsdkfacebody/request/v20191230/FaceMakeupRequest.py
Executable file
@@ -0,0 +1,56 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from aliyunsdkcore.request import RpcRequest
|
||||
from aliyunsdkfacebody.endpoint import endpoint_data
|
||||
|
||||
class FaceMakeupRequest(RpcRequest):
|
||||
|
||||
def __init__(self):
|
||||
RpcRequest.__init__(self, 'facebody', '2019-12-30', 'FaceMakeup','facebody')
|
||||
self.set_method('POST')
|
||||
if hasattr(self, "endpoint_map"):
|
||||
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
|
||||
if hasattr(self, "endpoint_regional"):
|
||||
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
|
||||
|
||||
|
||||
def get_Strength(self):
|
||||
return self.get_body_params().get('Strength')
|
||||
|
||||
def set_Strength(self,Strength):
|
||||
self.add_body_params('Strength', Strength)
|
||||
|
||||
def get_MakeupType(self):
|
||||
return self.get_body_params().get('MakeupType')
|
||||
|
||||
def set_MakeupType(self,MakeupType):
|
||||
self.add_body_params('MakeupType', MakeupType)
|
||||
|
||||
def get_ResourceType(self):
|
||||
return self.get_body_params().get('ResourceType')
|
||||
|
||||
def set_ResourceType(self,ResourceType):
|
||||
self.add_body_params('ResourceType', ResourceType)
|
||||
|
||||
def get_ImageURL(self):
|
||||
return self.get_body_params().get('ImageURL')
|
||||
|
||||
def set_ImageURL(self,ImageURL):
|
||||
self.add_body_params('ImageURL', ImageURL)
|
||||
50
app/lib/facebody/aliyunsdkfacebody/request/v20191230/FaceTidyupRequest.py
Executable file
50
app/lib/facebody/aliyunsdkfacebody/request/v20191230/FaceTidyupRequest.py
Executable file
@@ -0,0 +1,50 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from aliyunsdkcore.request import RpcRequest
|
||||
from aliyunsdkfacebody.endpoint import endpoint_data
|
||||
|
||||
class FaceTidyupRequest(RpcRequest):
|
||||
|
||||
def __init__(self):
|
||||
RpcRequest.__init__(self, 'facebody', '2019-12-30', 'FaceTidyup','facebody')
|
||||
self.set_method('POST')
|
||||
if hasattr(self, "endpoint_map"):
|
||||
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
|
||||
if hasattr(self, "endpoint_regional"):
|
||||
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
|
||||
|
||||
|
||||
def get_ShapeType(self):
|
||||
return self.get_body_params().get('ShapeType')
|
||||
|
||||
def set_ShapeType(self,ShapeType):
|
||||
self.add_body_params('ShapeType', ShapeType)
|
||||
|
||||
def get_Strength(self):
|
||||
return self.get_body_params().get('Strength')
|
||||
|
||||
def set_Strength(self,Strength):
|
||||
self.add_body_params('Strength', Strength)
|
||||
|
||||
def get_ImageURL(self):
|
||||
return self.get_body_params().get('ImageURL')
|
||||
|
||||
def set_ImageURL(self,ImageURL):
|
||||
self.add_body_params('ImageURL', ImageURL)
|
||||
@@ -0,0 +1,50 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from aliyunsdkcore.request import RpcRequest
|
||||
from aliyunsdkfacebody.endpoint import endpoint_data
|
||||
|
||||
class GenRealPersonVerificationTokenRequest(RpcRequest):
|
||||
|
||||
def __init__(self):
|
||||
RpcRequest.__init__(self, 'facebody', '2019-12-30', 'GenRealPersonVerificationToken','facebody')
|
||||
self.set_method('POST')
|
||||
if hasattr(self, "endpoint_map"):
|
||||
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
|
||||
if hasattr(self, "endpoint_regional"):
|
||||
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
|
||||
|
||||
|
||||
def get_CertificateNumber(self):
|
||||
return self.get_body_params().get('CertificateNumber')
|
||||
|
||||
def set_CertificateNumber(self,CertificateNumber):
|
||||
self.add_body_params('CertificateNumber', CertificateNumber)
|
||||
|
||||
def get_CertificateName(self):
|
||||
return self.get_body_params().get('CertificateName')
|
||||
|
||||
def set_CertificateName(self,CertificateName):
|
||||
self.add_body_params('CertificateName', CertificateName)
|
||||
|
||||
def get_MetaInfo(self):
|
||||
return self.get_body_params().get('MetaInfo')
|
||||
|
||||
def set_MetaInfo(self,MetaInfo):
|
||||
self.add_body_params('MetaInfo', MetaInfo)
|
||||
@@ -0,0 +1,44 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from aliyunsdkcore.request import RpcRequest
|
||||
from aliyunsdkfacebody.endpoint import endpoint_data
|
||||
|
||||
class GenerateHumanAnimeStyleRequest(RpcRequest):
|
||||
|
||||
def __init__(self):
|
||||
RpcRequest.__init__(self, 'facebody', '2019-12-30', 'GenerateHumanAnimeStyle','facebody')
|
||||
self.set_method('POST')
|
||||
if hasattr(self, "endpoint_map"):
|
||||
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
|
||||
if hasattr(self, "endpoint_regional"):
|
||||
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
|
||||
|
||||
|
||||
def get_AlgoType(self):
|
||||
return self.get_query_params().get('AlgoType')
|
||||
|
||||
def set_AlgoType(self,AlgoType):
|
||||
self.add_query_param('AlgoType',AlgoType)
|
||||
|
||||
def get_ImageURL(self):
|
||||
return self.get_query_params().get('ImageURL')
|
||||
|
||||
def set_ImageURL(self,ImageURL):
|
||||
self.add_query_param('ImageURL',ImageURL)
|
||||
@@ -0,0 +1,44 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from aliyunsdkcore.request import RpcRequest
|
||||
from aliyunsdkfacebody.endpoint import endpoint_data
|
||||
|
||||
class GenerateHumanSketchStyleRequest(RpcRequest):
|
||||
|
||||
def __init__(self):
|
||||
RpcRequest.__init__(self, 'facebody', '2019-12-30', 'GenerateHumanSketchStyle','facebody')
|
||||
self.set_method('POST')
|
||||
if hasattr(self, "endpoint_map"):
|
||||
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
|
||||
if hasattr(self, "endpoint_regional"):
|
||||
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
|
||||
|
||||
|
||||
def get_ReturnType(self):
|
||||
return self.get_body_params().get('ReturnType')
|
||||
|
||||
def set_ReturnType(self,ReturnType):
|
||||
self.add_body_params('ReturnType', ReturnType)
|
||||
|
||||
def get_ImageURL(self):
|
||||
return self.get_body_params().get('ImageURL')
|
||||
|
||||
def set_ImageURL(self,ImageURL):
|
||||
self.add_body_params('ImageURL', ImageURL)
|
||||
44
app/lib/facebody/aliyunsdkfacebody/request/v20191230/GetBodyPersonRequest.py
Executable file
44
app/lib/facebody/aliyunsdkfacebody/request/v20191230/GetBodyPersonRequest.py
Executable file
@@ -0,0 +1,44 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from aliyunsdkcore.request import RpcRequest
|
||||
from aliyunsdkfacebody.endpoint import endpoint_data
|
||||
|
||||
class GetBodyPersonRequest(RpcRequest):
|
||||
|
||||
def __init__(self):
|
||||
RpcRequest.__init__(self, 'facebody', '2019-12-30', 'GetBodyPerson','facebody')
|
||||
self.set_method('GET')
|
||||
if hasattr(self, "endpoint_map"):
|
||||
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
|
||||
if hasattr(self, "endpoint_regional"):
|
||||
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
|
||||
|
||||
|
||||
def get_PersonId(self):
|
||||
return self.get_query_params().get('PersonId')
|
||||
|
||||
def set_PersonId(self,PersonId):
|
||||
self.add_query_param('PersonId',PersonId)
|
||||
|
||||
def get_DbId(self):
|
||||
return self.get_query_params().get('DbId')
|
||||
|
||||
def set_DbId(self,DbId):
|
||||
self.add_query_param('DbId',DbId)
|
||||
44
app/lib/facebody/aliyunsdkfacebody/request/v20191230/GetFaceEntityRequest.py
Executable file
44
app/lib/facebody/aliyunsdkfacebody/request/v20191230/GetFaceEntityRequest.py
Executable file
@@ -0,0 +1,44 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from aliyunsdkcore.request import RpcRequest
|
||||
from aliyunsdkfacebody.endpoint import endpoint_data
|
||||
|
||||
class GetFaceEntityRequest(RpcRequest):
|
||||
|
||||
def __init__(self):
|
||||
RpcRequest.__init__(self, 'facebody', '2019-12-30', 'GetFaceEntity','facebody')
|
||||
self.set_method('POST')
|
||||
if hasattr(self, "endpoint_map"):
|
||||
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
|
||||
if hasattr(self, "endpoint_regional"):
|
||||
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
|
||||
|
||||
|
||||
def get_EntityId(self):
|
||||
return self.get_body_params().get('EntityId')
|
||||
|
||||
def set_EntityId(self,EntityId):
|
||||
self.add_body_params('EntityId', EntityId)
|
||||
|
||||
def get_DbName(self):
|
||||
return self.get_body_params().get('DbName')
|
||||
|
||||
def set_DbName(self,DbName):
|
||||
self.add_body_params('DbName', DbName)
|
||||
@@ -0,0 +1,44 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from aliyunsdkcore.request import RpcRequest
|
||||
from aliyunsdkfacebody.endpoint import endpoint_data
|
||||
|
||||
class GetRealPersonVerificationResultRequest(RpcRequest):
|
||||
|
||||
def __init__(self):
|
||||
RpcRequest.__init__(self, 'facebody', '2019-12-30', 'GetRealPersonVerificationResult','facebody')
|
||||
self.set_method('POST')
|
||||
if hasattr(self, "endpoint_map"):
|
||||
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
|
||||
if hasattr(self, "endpoint_regional"):
|
||||
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
|
||||
|
||||
|
||||
def get_MaterialHash(self):
|
||||
return self.get_body_params().get('MaterialHash')
|
||||
|
||||
def set_MaterialHash(self,MaterialHash):
|
||||
self.add_body_params('MaterialHash', MaterialHash)
|
||||
|
||||
def get_VerificationToken(self):
|
||||
return self.get_body_params().get('VerificationToken')
|
||||
|
||||
def set_VerificationToken(self,VerificationToken):
|
||||
self.add_body_params('VerificationToken', VerificationToken)
|
||||
38
app/lib/facebody/aliyunsdkfacebody/request/v20191230/HandPostureRequest.py
Executable file
38
app/lib/facebody/aliyunsdkfacebody/request/v20191230/HandPostureRequest.py
Executable file
@@ -0,0 +1,38 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from aliyunsdkcore.request import RpcRequest
|
||||
from aliyunsdkfacebody.endpoint import endpoint_data
|
||||
|
||||
class HandPostureRequest(RpcRequest):
|
||||
|
||||
def __init__(self):
|
||||
RpcRequest.__init__(self, 'facebody', '2019-12-30', 'HandPosture','facebody')
|
||||
self.set_method('POST')
|
||||
if hasattr(self, "endpoint_map"):
|
||||
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
|
||||
if hasattr(self, "endpoint_regional"):
|
||||
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
|
||||
|
||||
|
||||
def get_ImageURL(self):
|
||||
return self.get_body_params().get('ImageURL')
|
||||
|
||||
def set_ImageURL(self,ImageURL):
|
||||
self.add_body_params('ImageURL', ImageURL)
|
||||
44
app/lib/facebody/aliyunsdkfacebody/request/v20191230/ListBodyDbsRequest.py
Executable file
44
app/lib/facebody/aliyunsdkfacebody/request/v20191230/ListBodyDbsRequest.py
Executable file
@@ -0,0 +1,44 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from aliyunsdkcore.request import RpcRequest
|
||||
from aliyunsdkfacebody.endpoint import endpoint_data
|
||||
|
||||
class ListBodyDbsRequest(RpcRequest):
|
||||
|
||||
def __init__(self):
|
||||
RpcRequest.__init__(self, 'facebody', '2019-12-30', 'ListBodyDbs','facebody')
|
||||
self.set_method('GET')
|
||||
if hasattr(self, "endpoint_map"):
|
||||
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
|
||||
if hasattr(self, "endpoint_regional"):
|
||||
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
|
||||
|
||||
|
||||
def get_Limit(self):
|
||||
return self.get_query_params().get('Limit')
|
||||
|
||||
def set_Limit(self,Limit):
|
||||
self.add_query_param('Limit',Limit)
|
||||
|
||||
def get_Offset(self):
|
||||
return self.get_query_params().get('Offset')
|
||||
|
||||
def set_Offset(self,Offset):
|
||||
self.add_query_param('Offset',Offset)
|
||||
@@ -0,0 +1,50 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from aliyunsdkcore.request import RpcRequest
|
||||
from aliyunsdkfacebody.endpoint import endpoint_data
|
||||
|
||||
class ListBodyPersonRequest(RpcRequest):
|
||||
|
||||
def __init__(self):
|
||||
RpcRequest.__init__(self, 'facebody', '2019-12-30', 'ListBodyPerson','facebody')
|
||||
self.set_method('GET')
|
||||
if hasattr(self, "endpoint_map"):
|
||||
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
|
||||
if hasattr(self, "endpoint_regional"):
|
||||
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
|
||||
|
||||
|
||||
def get_Limit(self):
|
||||
return self.get_query_params().get('Limit')
|
||||
|
||||
def set_Limit(self,Limit):
|
||||
self.add_query_param('Limit',Limit)
|
||||
|
||||
def get_Offset(self):
|
||||
return self.get_query_params().get('Offset')
|
||||
|
||||
def set_Offset(self,Offset):
|
||||
self.add_query_param('Offset',Offset)
|
||||
|
||||
def get_DbId(self):
|
||||
return self.get_query_params().get('DbId')
|
||||
|
||||
def set_DbId(self,DbId):
|
||||
self.add_query_param('DbId',DbId)
|
||||
31
app/lib/facebody/aliyunsdkfacebody/request/v20191230/ListFaceDbsRequest.py
Executable file
31
app/lib/facebody/aliyunsdkfacebody/request/v20191230/ListFaceDbsRequest.py
Executable file
@@ -0,0 +1,31 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from aliyunsdkcore.request import RpcRequest
|
||||
from aliyunsdkfacebody.endpoint import endpoint_data
|
||||
|
||||
class ListFaceDbsRequest(RpcRequest):
|
||||
|
||||
def __init__(self):
|
||||
RpcRequest.__init__(self, 'facebody', '2019-12-30', 'ListFaceDbs','facebody')
|
||||
self.set_method('POST')
|
||||
if hasattr(self, "endpoint_map"):
|
||||
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
|
||||
if hasattr(self, "endpoint_regional"):
|
||||
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
|
||||
@@ -0,0 +1,74 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from aliyunsdkcore.request import RpcRequest
|
||||
from aliyunsdkfacebody.endpoint import endpoint_data
|
||||
|
||||
class ListFaceEntitiesRequest(RpcRequest):
|
||||
|
||||
def __init__(self):
|
||||
RpcRequest.__init__(self, 'facebody', '2019-12-30', 'ListFaceEntities','facebody')
|
||||
self.set_method('POST')
|
||||
if hasattr(self, "endpoint_map"):
|
||||
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
|
||||
if hasattr(self, "endpoint_regional"):
|
||||
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
|
||||
|
||||
|
||||
def get_EntityIdPrefix(self):
|
||||
return self.get_body_params().get('EntityIdPrefix')
|
||||
|
||||
def set_EntityIdPrefix(self,EntityIdPrefix):
|
||||
self.add_body_params('EntityIdPrefix', EntityIdPrefix)
|
||||
|
||||
def get_Limit(self):
|
||||
return self.get_body_params().get('Limit')
|
||||
|
||||
def set_Limit(self,Limit):
|
||||
self.add_body_params('Limit', Limit)
|
||||
|
||||
def get_Order(self):
|
||||
return self.get_body_params().get('Order')
|
||||
|
||||
def set_Order(self,Order):
|
||||
self.add_body_params('Order', Order)
|
||||
|
||||
def get_Offset(self):
|
||||
return self.get_body_params().get('Offset')
|
||||
|
||||
def set_Offset(self,Offset):
|
||||
self.add_body_params('Offset', Offset)
|
||||
|
||||
def get_Token(self):
|
||||
return self.get_body_params().get('Token')
|
||||
|
||||
def set_Token(self,Token):
|
||||
self.add_body_params('Token', Token)
|
||||
|
||||
def get_Labels(self):
|
||||
return self.get_body_params().get('Labels')
|
||||
|
||||
def set_Labels(self,Labels):
|
||||
self.add_body_params('Labels', Labels)
|
||||
|
||||
def get_DbName(self):
|
||||
return self.get_body_params().get('DbName')
|
||||
|
||||
def set_DbName(self,DbName):
|
||||
self.add_body_params('DbName', DbName)
|
||||
@@ -0,0 +1,50 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from aliyunsdkcore.request import RpcRequest
|
||||
from aliyunsdkfacebody.endpoint import endpoint_data
|
||||
|
||||
class MergeImageFaceRequest(RpcRequest):
|
||||
|
||||
def __init__(self):
|
||||
RpcRequest.__init__(self, 'facebody', '2019-12-30', 'MergeImageFace','facebody')
|
||||
self.set_method('POST')
|
||||
if hasattr(self, "endpoint_map"):
|
||||
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
|
||||
if hasattr(self, "endpoint_regional"):
|
||||
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
|
||||
|
||||
|
||||
def get_UserId(self):
|
||||
return self.get_body_params().get('UserId')
|
||||
|
||||
def set_UserId(self,UserId):
|
||||
self.add_body_params('UserId', UserId)
|
||||
|
||||
def get_TemplateId(self):
|
||||
return self.get_body_params().get('TemplateId')
|
||||
|
||||
def set_TemplateId(self,TemplateId):
|
||||
self.add_body_params('TemplateId', TemplateId)
|
||||
|
||||
def get_ImageURL(self):
|
||||
return self.get_body_params().get('ImageURL')
|
||||
|
||||
def set_ImageURL(self,ImageURL):
|
||||
self.add_body_params('ImageURL', ImageURL)
|
||||
@@ -0,0 +1,44 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from aliyunsdkcore.request import RpcRequest
|
||||
from aliyunsdkfacebody.endpoint import endpoint_data
|
||||
|
||||
class MonitorExaminationRequest(RpcRequest):
|
||||
|
||||
def __init__(self):
|
||||
RpcRequest.__init__(self, 'facebody', '2019-12-30', 'MonitorExamination','facebody')
|
||||
self.set_method('POST')
|
||||
if hasattr(self, "endpoint_map"):
|
||||
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
|
||||
if hasattr(self, "endpoint_regional"):
|
||||
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
|
||||
|
||||
|
||||
def get_Type(self):
|
||||
return self.get_body_params().get('Type')
|
||||
|
||||
def set_Type(self,Type):
|
||||
self.add_body_params('Type', Type)
|
||||
|
||||
def get_ImageURL(self):
|
||||
return self.get_body_params().get('ImageURL')
|
||||
|
||||
def set_ImageURL(self,ImageURL):
|
||||
self.add_body_params('ImageURL', ImageURL)
|
||||
@@ -0,0 +1,38 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from aliyunsdkcore.request import RpcRequest
|
||||
from aliyunsdkfacebody.endpoint import endpoint_data
|
||||
|
||||
class PedestrianDetectAttributeRequest(RpcRequest):
|
||||
|
||||
def __init__(self):
|
||||
RpcRequest.__init__(self, 'facebody', '2019-12-30', 'PedestrianDetectAttribute','facebody')
|
||||
self.set_method('POST')
|
||||
if hasattr(self, "endpoint_map"):
|
||||
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
|
||||
if hasattr(self, "endpoint_regional"):
|
||||
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
|
||||
|
||||
|
||||
def get_ImageURL(self):
|
||||
return self.get_body_params().get('ImageURL')
|
||||
|
||||
def set_ImageURL(self,ImageURL):
|
||||
self.add_body_params('ImageURL', ImageURL)
|
||||
@@ -0,0 +1,44 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from aliyunsdkcore.request import RpcRequest
|
||||
from aliyunsdkfacebody.endpoint import endpoint_data
|
||||
|
||||
class QueryFaceImageTemplateRequest(RpcRequest):
|
||||
|
||||
def __init__(self):
|
||||
RpcRequest.__init__(self, 'facebody', '2019-12-30', 'QueryFaceImageTemplate','facebody')
|
||||
self.set_method('GET')
|
||||
if hasattr(self, "endpoint_map"):
|
||||
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
|
||||
if hasattr(self, "endpoint_regional"):
|
||||
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
|
||||
|
||||
|
||||
def get_UserId(self):
|
||||
return self.get_query_params().get('UserId')
|
||||
|
||||
def set_UserId(self,UserId):
|
||||
self.add_query_param('UserId',UserId)
|
||||
|
||||
def get_TemplateId(self):
|
||||
return self.get_query_params().get('TemplateId')
|
||||
|
||||
def set_TemplateId(self,TemplateId):
|
||||
self.add_query_param('TemplateId',TemplateId)
|
||||
@@ -0,0 +1,60 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from aliyunsdkcore.request import RpcRequest
|
||||
from aliyunsdkfacebody.endpoint import endpoint_data
|
||||
|
||||
class RecognizeActionRequest(RpcRequest):
|
||||
|
||||
def __init__(self):
|
||||
RpcRequest.__init__(self, 'facebody', '2019-12-30', 'RecognizeAction','facebody')
|
||||
self.set_method('POST')
|
||||
if hasattr(self, "endpoint_map"):
|
||||
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
|
||||
if hasattr(self, "endpoint_regional"):
|
||||
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
|
||||
|
||||
|
||||
def get_Type(self):
|
||||
return self.get_body_params().get('Type')
|
||||
|
||||
def set_Type(self,Type):
|
||||
self.add_body_params('Type', Type)
|
||||
|
||||
def get_VideoData(self):
|
||||
return self.get_body_params().get('VideoData')
|
||||
|
||||
def set_VideoData(self,VideoData):
|
||||
self.add_body_params('VideoData', VideoData)
|
||||
|
||||
def get_URLLists(self):
|
||||
return self.get_body_params().get('URLList')
|
||||
|
||||
def set_URLLists(self, URLLists):
|
||||
for depth1 in range(len(URLLists)):
|
||||
if URLLists[depth1].get('imageData') is not None:
|
||||
self.add_body_params('URLList.' + str(depth1 + 1) + '.imageData', URLLists[depth1].get('imageData'))
|
||||
if URLLists[depth1].get('URL') is not None:
|
||||
self.add_body_params('URLList.' + str(depth1 + 1) + '.URL', URLLists[depth1].get('URL'))
|
||||
|
||||
def get_VideoUrl(self):
|
||||
return self.get_body_params().get('VideoUrl')
|
||||
|
||||
def set_VideoUrl(self,VideoUrl):
|
||||
self.add_body_params('VideoUrl', VideoUrl)
|
||||
@@ -0,0 +1,38 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from aliyunsdkcore.request import RpcRequest
|
||||
from aliyunsdkfacebody.endpoint import endpoint_data
|
||||
|
||||
class RecognizeExpressionRequest(RpcRequest):
|
||||
|
||||
def __init__(self):
|
||||
RpcRequest.__init__(self, 'facebody', '2019-12-30', 'RecognizeExpression','facebody')
|
||||
self.set_method('POST')
|
||||
if hasattr(self, "endpoint_map"):
|
||||
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
|
||||
if hasattr(self, "endpoint_regional"):
|
||||
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
|
||||
|
||||
|
||||
def get_ImageURL(self):
|
||||
return self.get_body_params().get('ImageURL')
|
||||
|
||||
def set_ImageURL(self,ImageURL):
|
||||
self.add_body_params('ImageURL', ImageURL)
|
||||
38
app/lib/facebody/aliyunsdkfacebody/request/v20191230/RecognizeFaceRequest.py
Executable file
38
app/lib/facebody/aliyunsdkfacebody/request/v20191230/RecognizeFaceRequest.py
Executable file
@@ -0,0 +1,38 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from aliyunsdkcore.request import RpcRequest
|
||||
from aliyunsdkfacebody.endpoint import endpoint_data
|
||||
|
||||
class RecognizeFaceRequest(RpcRequest):
|
||||
|
||||
def __init__(self):
|
||||
RpcRequest.__init__(self, 'facebody', '2019-12-30', 'RecognizeFace','facebody')
|
||||
self.set_method('POST')
|
||||
if hasattr(self, "endpoint_map"):
|
||||
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
|
||||
if hasattr(self, "endpoint_regional"):
|
||||
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
|
||||
|
||||
|
||||
def get_ImageURL(self):
|
||||
return self.get_body_params().get('ImageURL')
|
||||
|
||||
def set_ImageURL(self,ImageURL):
|
||||
self.add_body_params('ImageURL', ImageURL)
|
||||
@@ -0,0 +1,50 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from aliyunsdkcore.request import RpcRequest
|
||||
from aliyunsdkfacebody.endpoint import endpoint_data
|
||||
|
||||
class RecognizeHandGestureRequest(RpcRequest):
|
||||
|
||||
def __init__(self):
|
||||
RpcRequest.__init__(self, 'facebody', '2019-12-30', 'RecognizeHandGesture','facebody')
|
||||
self.set_method('POST')
|
||||
if hasattr(self, "endpoint_map"):
|
||||
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
|
||||
if hasattr(self, "endpoint_regional"):
|
||||
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
|
||||
|
||||
|
||||
def get_GestureType(self):
|
||||
return self.get_body_params().get('GestureType')
|
||||
|
||||
def set_GestureType(self,GestureType):
|
||||
self.add_body_params('GestureType', GestureType)
|
||||
|
||||
def get_AppId(self):
|
||||
return self.get_body_params().get('AppId')
|
||||
|
||||
def set_AppId(self,AppId):
|
||||
self.add_body_params('AppId', AppId)
|
||||
|
||||
def get_ImageURL(self):
|
||||
return self.get_body_params().get('ImageURL')
|
||||
|
||||
def set_ImageURL(self,ImageURL):
|
||||
self.add_body_params('ImageURL', ImageURL)
|
||||
@@ -0,0 +1,42 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from aliyunsdkcore.request import RpcRequest
|
||||
from aliyunsdkfacebody.endpoint import endpoint_data
|
||||
|
||||
class RecognizePublicFaceRequest(RpcRequest):
|
||||
|
||||
def __init__(self):
|
||||
RpcRequest.__init__(self, 'facebody', '2019-12-30', 'RecognizePublicFace','facebody')
|
||||
self.set_method('POST')
|
||||
if hasattr(self, "endpoint_map"):
|
||||
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
|
||||
if hasattr(self, "endpoint_regional"):
|
||||
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
|
||||
|
||||
|
||||
def get_Tasks(self):
|
||||
return self.get_body_params().get('Task')
|
||||
|
||||
def set_Tasks(self, Tasks):
|
||||
for depth1 in range(len(Tasks)):
|
||||
if Tasks[depth1].get('ImageURL') is not None:
|
||||
self.add_body_params('Task.' + str(depth1 + 1) + '.ImageURL', Tasks[depth1].get('ImageURL'))
|
||||
if Tasks[depth1].get('ImageData') is not None:
|
||||
self.add_body_params('Task.' + str(depth1 + 1) + '.ImageData', Tasks[depth1].get('ImageData'))
|
||||
@@ -0,0 +1,56 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from aliyunsdkcore.request import RpcRequest
|
||||
from aliyunsdkfacebody.endpoint import endpoint_data
|
||||
|
||||
class SearchBodyTraceRequest(RpcRequest):
|
||||
|
||||
def __init__(self):
|
||||
RpcRequest.__init__(self, 'facebody', '2019-12-30', 'SearchBodyTrace','facebody')
|
||||
self.set_method('POST')
|
||||
if hasattr(self, "endpoint_map"):
|
||||
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
|
||||
if hasattr(self, "endpoint_regional"):
|
||||
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
|
||||
|
||||
|
||||
def get_MinScore(self):
|
||||
return self.get_body_params().get('MinScore')
|
||||
|
||||
def set_MinScore(self,MinScore):
|
||||
self.add_body_params('MinScore', MinScore)
|
||||
|
||||
def get_Limit(self):
|
||||
return self.get_body_params().get('Limit')
|
||||
|
||||
def set_Limit(self,Limit):
|
||||
self.add_body_params('Limit', Limit)
|
||||
|
||||
def get_Images(self):
|
||||
return self.get_body_params().get('Images')
|
||||
|
||||
def set_Images(self,Images):
|
||||
self.add_body_params('Images', Images)
|
||||
|
||||
def get_DbId(self):
|
||||
return self.get_body_params().get('DbId')
|
||||
|
||||
def set_DbId(self,DbId):
|
||||
self.add_body_params('DbId', DbId)
|
||||
56
app/lib/facebody/aliyunsdkfacebody/request/v20191230/SearchFaceRequest.py
Executable file
56
app/lib/facebody/aliyunsdkfacebody/request/v20191230/SearchFaceRequest.py
Executable file
@@ -0,0 +1,56 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from aliyunsdkcore.request import RpcRequest
|
||||
from aliyunsdkfacebody.endpoint import endpoint_data
|
||||
|
||||
class SearchFaceRequest(RpcRequest):
|
||||
|
||||
def __init__(self):
|
||||
RpcRequest.__init__(self, 'facebody', '2019-12-30', 'SearchFace','facebody')
|
||||
self.set_method('POST')
|
||||
if hasattr(self, "endpoint_map"):
|
||||
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
|
||||
if hasattr(self, "endpoint_regional"):
|
||||
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
|
||||
|
||||
|
||||
def get_Limit(self):
|
||||
return self.get_body_params().get('Limit')
|
||||
|
||||
def set_Limit(self,Limit):
|
||||
self.add_body_params('Limit', Limit)
|
||||
|
||||
def get_DbNames(self):
|
||||
return self.get_query_params().get('DbNames')
|
||||
|
||||
def set_DbNames(self,DbNames):
|
||||
self.add_query_param('DbNames',DbNames)
|
||||
|
||||
def get_DbName(self):
|
||||
return self.get_body_params().get('DbName')
|
||||
|
||||
def set_DbName(self,DbName):
|
||||
self.add_body_params('DbName', DbName)
|
||||
|
||||
def get_ImageUrl(self):
|
||||
return self.get_body_params().get('ImageUrl')
|
||||
|
||||
def set_ImageUrl(self,ImageUrl):
|
||||
self.add_body_params('ImageUrl', ImageUrl)
|
||||
@@ -0,0 +1,62 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from aliyunsdkcore.request import RpcRequest
|
||||
from aliyunsdkfacebody.endpoint import endpoint_data
|
||||
|
||||
class SwapFacialFeaturesRequest(RpcRequest):
|
||||
|
||||
def __init__(self):
|
||||
RpcRequest.__init__(self, 'facebody', '2019-12-30', 'SwapFacialFeatures','facebody')
|
||||
self.set_method('POST')
|
||||
if hasattr(self, "endpoint_map"):
|
||||
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
|
||||
if hasattr(self, "endpoint_regional"):
|
||||
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
|
||||
|
||||
|
||||
def get_TargetImageURL(self):
|
||||
return self.get_body_params().get('TargetImageURL')
|
||||
|
||||
def set_TargetImageURL(self,TargetImageURL):
|
||||
self.add_body_params('TargetImageURL', TargetImageURL)
|
||||
|
||||
def get_SourceImageData(self):
|
||||
return self.get_body_params().get('SourceImageData')
|
||||
|
||||
def set_SourceImageData(self,SourceImageData):
|
||||
self.add_body_params('SourceImageData', SourceImageData)
|
||||
|
||||
def get_SourceImageURL(self):
|
||||
return self.get_body_params().get('SourceImageURL')
|
||||
|
||||
def set_SourceImageURL(self,SourceImageURL):
|
||||
self.add_body_params('SourceImageURL', SourceImageURL)
|
||||
|
||||
def get_TargetImageData(self):
|
||||
return self.get_body_params().get('TargetImageData')
|
||||
|
||||
def set_TargetImageData(self,TargetImageData):
|
||||
self.add_body_params('TargetImageData', TargetImageData)
|
||||
|
||||
def get_EditPart(self):
|
||||
return self.get_body_params().get('EditPart')
|
||||
|
||||
def set_EditPart(self,EditPart):
|
||||
self.add_body_params('EditPart', EditPart)
|
||||
@@ -0,0 +1,50 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from aliyunsdkcore.request import RpcRequest
|
||||
from aliyunsdkfacebody.endpoint import endpoint_data
|
||||
|
||||
class UpdateFaceEntityRequest(RpcRequest):
|
||||
|
||||
def __init__(self):
|
||||
RpcRequest.__init__(self, 'facebody', '2019-12-30', 'UpdateFaceEntity','facebody')
|
||||
self.set_method('POST')
|
||||
if hasattr(self, "endpoint_map"):
|
||||
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
|
||||
if hasattr(self, "endpoint_regional"):
|
||||
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
|
||||
|
||||
|
||||
def get_EntityId(self):
|
||||
return self.get_body_params().get('EntityId')
|
||||
|
||||
def set_EntityId(self,EntityId):
|
||||
self.add_body_params('EntityId', EntityId)
|
||||
|
||||
def get_Labels(self):
|
||||
return self.get_body_params().get('Labels')
|
||||
|
||||
def set_Labels(self,Labels):
|
||||
self.add_body_params('Labels', Labels)
|
||||
|
||||
def get_DbName(self):
|
||||
return self.get_body_params().get('DbName')
|
||||
|
||||
def set_DbName(self,DbName):
|
||||
self.add_body_params('DbName', DbName)
|
||||
@@ -0,0 +1,56 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from aliyunsdkcore.request import RpcRequest
|
||||
from aliyunsdkfacebody.endpoint import endpoint_data
|
||||
|
||||
class VerifyFaceMaskRequest(RpcRequest):
|
||||
|
||||
def __init__(self):
|
||||
RpcRequest.__init__(self, 'facebody', '2019-12-30', 'VerifyFaceMask','facebody')
|
||||
self.set_method('POST')
|
||||
if hasattr(self, "endpoint_map"):
|
||||
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
|
||||
if hasattr(self, "endpoint_regional"):
|
||||
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
|
||||
|
||||
|
||||
def get_RefData(self):
|
||||
return self.get_body_params().get('RefData')
|
||||
|
||||
def set_RefData(self,RefData):
|
||||
self.add_body_params('RefData', RefData)
|
||||
|
||||
def get_ImageData(self):
|
||||
return self.get_body_params().get('ImageData')
|
||||
|
||||
def set_ImageData(self,ImageData):
|
||||
self.add_body_params('ImageData', ImageData)
|
||||
|
||||
def get_ImageURL(self):
|
||||
return self.get_body_params().get('ImageURL')
|
||||
|
||||
def set_ImageURL(self,ImageURL):
|
||||
self.add_body_params('ImageURL', ImageURL)
|
||||
|
||||
def get_RefUrl(self):
|
||||
return self.get_body_params().get('RefUrl')
|
||||
|
||||
def set_RefUrl(self,RefUrl):
|
||||
self.add_body_params('RefUrl', RefUrl)
|
||||
0
app/lib/facebody/aliyunsdkfacebody/request/v20191230/__init__.py
Executable file
0
app/lib/facebody/aliyunsdkfacebody/request/v20191230/__init__.py
Executable file
Reference in New Issue
Block a user