Run in Apifox
Note that only the alias, bg_color and fg_color attributes of the label can be set, and the other parameters should be consistent with the values obtained.
Request Body Params application/json
{
"id" : "GSF_ID_SVP_LABEL" ,
"op" : "G1C0S0" ,
"data" : {
"count" : 1 ,
"vec" : [
{
"idx" : 0 ,
"name" : "nohelmet" ,
"alias" : "未戴安全帽" ,
"fg_color" : 33488896 ,
"bg_color" : 16842496 ,
"flag" : 1
}
]
}
} Request Code Samples
curl --location --request POST 'http://192.168.0.168/api/intelligent/config' \
--header 'Cookie: access_token=;access_token=' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": "GSF_ID_SVP_LABEL",
"op": "G1C0S0",
"data": {
"count": 1,
"vec": [
{
"idx": 0,
"name": "nohelmet",
"alias": "未戴安全帽",
"fg_color": 33488896,
"bg_color": 16842496,
"flag": 1
}
]
}
}' Responses application/json Generate Code
{
"code" : 0 ,
"data" : {
"count" : 0 ,
"vec" : [ ]
}
} Modified at 2024-12-27 09:08:52