TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaSecurityDeepvisionAlgoPersonDetectRequest req = new AlibabaSecurityDeepvisionAlgoPersonDetectRequest();
AlibabaSecurityDeepvisionAlgoPersonDetectRequest.DetectPersonParam obj1 = new AlibabaSecurityDeepvisionAlgoPersonDetectRequest.DetectPersonParam();
obj1.setImage("''");
obj1.setTag1("客户1");
obj1.setRequestId("0558b97ac83f5d7168c2cf305807c0be");
obj1.setSign("0558b97ac83f5d7168c2cf305807c0be");
obj1.setAttributes(""hat","mask"");
obj1.setAppKey("3319132");
obj1.setTenantCode("Hema");
obj1.setTag2("标签2");
obj1.setTag3("标签3");
AlibabaSecurityDeepvisionAlgoPersonDetectRequest.Clothes obj2 = new AlibabaSecurityDeepvisionAlgoPersonDetectRequest.Clothes();
obj2.setScene("clothesRecognize");
obj2.setGroup("salesman");
obj2.setMaxNum("5");
obj2.setThreshold("0.4");
obj2.setVersion(1L);
obj2.setLimit(1L);
obj1.setClothes(obj2);
req.setParam0(obj1);
AlibabaSecurityDeepvisionAlgoPersonDetectResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaSecurityDeepvisionAlgoPersonDetectRequest req = new AlibabaSecurityDeepvisionAlgoPersonDetectRequest();
AlibabaSecurityDeepvisionAlgoPersonDetectRequest.DetectPersonParamDomain obj1 = new AlibabaSecurityDeepvisionAlgoPersonDetectRequest.DetectPersonParamDomain();
obj1.Image = "''";
obj1.Tag1 = "客户1";
obj1.RequestId = "0558b97ac83f5d7168c2cf305807c0be";
obj1.Sign = "0558b97ac83f5d7168c2cf305807c0be";
obj1.Attributes = ""hat","mask"";
obj1.AppKey = "3319132";
obj1.TenantCode = "Hema";
obj1.Tag2 = "标签2";
obj1.Tag3 = "标签3";
AlibabaSecurityDeepvisionAlgoPersonDetectRequest.ClothesDomain obj2 = new AlibabaSecurityDeepvisionAlgoPersonDetectRequest.ClothesDomain();
obj2.Scene = "clothesRecognize";
obj2.Group = "salesman";
obj2.MaxNum = "5";
obj2.Threshold = "0.4";
obj2.Version = 1L;
obj2.Limit = 1L;
obj1.Clothes= obj2;
req.Param0_ = obj1;
AlibabaSecurityDeepvisionAlgoPersonDetectResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaSecurityDeepvisionAlgoPersonDetectRequest;
$param0 = new DetectPersonParam;
$param0->image="''";
$param0->tag1="客户1";
$param0->request_id="0558b97ac83f5d7168c2cf305807c0be";
$param0->sign="0558b97ac83f5d7168c2cf305807c0be";
$param0->attributes="[\"hat\",\"mask\"]";
$param0->app_key="3319132";
$param0->tenant_code="Hema";
$param0->tag2="标签2";
$param0->tag3="标签3";
$clothes = new Clothes;
$clothes->scene="clothesRecognize";
$clothes->group="salesman";
$clothes->max_num="5";
$clothes->threshold="0.4";
$clothes->version="1";
$clothes->limit="1";
$param0->clothes = $clothes;
$req->setParam0(json_encode($param0));
$resp = $c->execute($req);
curl -X POST 'http://gw.api.taobao.com/router/rest' \
-H 'Content-Type:application/x-www-form-urlencoded;charset=utf-8' \
-d 'app_key=12129701' \
-d 'format=json' \
-d 'method=alibaba.security.deepvision.algo.person.detect' \
-d 'partner_id=apidoc' \
-d 'sign=A50EEF9DDC8E726A5D4FCD01CDB5DEB3' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-16+14%3A56%3A31' \
-d 'v=2.0' \
-d 'param0=%27%27'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaSecurityDeepvisionAlgoPersonDetectRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.param0="''"
try:
resp= req.getResponse()
print(resp)
except Exception,e:
print(e)
pTopRequest pRequest = alloc_top_request();
pTopResponse pResponse = NULL;
pTaobaoClient pClient = alloc_taobao_client(url, appkey, appsecret);
set_api_name(pRequest,"alibaba.security.deepvision.algo.person.detect");
add_param(pRequest,"param0","数据结构JSON示例");
pResponse = top_execute(pClient,pRequest,NULL);
printf("ret code:%d\n",pResponse->code);
if(pResponse->code == 0){
pTopResponseIterator ite = init_response_iterator(pResponse);
pResultItem pResultItem = alloc_result_item();
while(parseNext(ite, pResultItem) == 0){
printf("%s:%s\n",pResultItem->key,pResultItem->value);
}
destroy_response_iterator(ite);
destroy_result_item(pResultItem);
}
destroy_top_request(pRequest);
destroy_top_response(pResponse);
destroy_taobao_client(pClient);
TopClient = require('./topClient').TopClient;
var client = new TopClient({
'appkey': 'appkey',
'appsecret': 'secret',
'REST_URL': 'http://gw.api.taobao.com/router/rest'
});
client.execute('alibaba.security.deepvision.algo.person.detect', {
'param0':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})