智慧零售文檔
適用情境應用:顧客分析、人種分析、年齡性別歸類。
文檔索引
應用場域
新零售-智能廣告推播
該服務可協助零售業辨識顧客年齡、性別,透過辨識回傳結果,與您的廣告系統連動,即可完成精準的廣告推送目的。
顧客反應情蒐
除了辨識年齡性別,也可得知目前臉部情緒狀況,藉此搜集顧客看到廣告、商品時的反應。
智慧零售辨識服務簡介
辨識商場中的消費者,可透過API欄位指定辨識項目,例如 [“api1″,”api2″,”api3″,”api4”] 。
辨識項目為人臉比對、服飾識別、行人識別、物件識別。若畫面中有相關物件,則該API將回傳物件名稱及座標。
HTTP方法與請求網址:
POST https://saasv2.intemotech.com/saasapi/detect
Content-type
application/form-data
請求from-data正文:
KEY | VALUE |
---|---|
file | 匯入照片檔案 (image) |
api_name | [“find_face”,”clothing_detection”,”find_person”,”object_detection”] (string) |
cURL:
curl --location --request POST 'https://saas.intemotech.com/saasapi/detect' \
--header 'Authorization: Bearer <TOKEN>' \
--form 'api_name="[\"find_face\",\"clothing_detection\",\"find_person\",\"object_detection\"]"' \
--form 'file=@"/xxx.png"'
辨識結果文本:
{
"data": [
{
"clothing_detection": [
{
"point": {
"bottom": 76,
"left": 198,
"right": 242,
"top": 30
},
"short sleeve top": 0.8691180944442749
},
{
"point": {
"bottom": 102,
"left": 40,
"right": 106,
"top": 43
},
"short sleeve top": 0.6764985918998718
},
{
"long sleeve top": 0.3765753209590912,
"point": {
"bottom": 104,
"left": 39,
"right": 106,
"top": 43
}
},
{
"point": {
"bottom": 151,
"left": 201,
"right": 236,
"top": 67
},
"trousers": 0.7866423726081848
},
{
"point": {
"bottom": 162,
"left": 39,
"right": 97,
"top": 94
},
"trousers": 0.4900176227092743
}
]
},
{
"find_face": []
},
{
"object_detection": [
{
"conf": 0.90478515625,
"name": "person",
"xywh": [
0.23225806653499603,
0.5245398879051208,
0.21290323138237,
0.9386503100395203
]
},
{
"conf": 0.9033203125,
"name": "person",
"xywh": [
0.7080644965171814,
0.5214723944664001,
0.14516128599643707,
0.9325153231620789
]
},
{
"conf": 0.3408203125,
"name": "handbag",
"xywh": [
0.1483870893716812,
0.6349693536758423,
0.07741935551166534,
0.1779141128063202
]
},
{
"conf": 0.09649658203125,
"name": "wine glass",
"xywh": [
0.6677419543266296,
0.4079754650592804,
0.032258063554763794,
0.16564416885375977
]
}
]
},
{
"find_person": [
{
"count": 1,
"data": [
{
"id": "1490",
"p": 16.3357096318628
},
{
"id": "1419",
"p": 17.4510337546655
},
{
"id": "7946",
"p": 17.6816330797932
},
{
"id": "7945",
"p": 17.6816330797932
},
{
"id": "7944",
"p": 17.6816330797932
},
{
"id": "1492",
"p": 18.0591356961467
},
{
"id": "1449",
"p": 18.1561364737987
},
{
"id": "1179",
"p": 18.4261809783391
},
{
"id": "1107",
"p": 18.5897092557061
},
{
"id": "1182",
"p": 18.6176814968023
}
]
}
]
}
],
"states": "Sucessfully"
}
欄位名稱 | 欄位說明 |
---|---|
find_face | 人臉比對 |
clothing_detection | 服飾識別 |
find_person | 行人比對 |
object_detection | 物件辨識 |
id | 資料庫人臉 & 行人編號 |
p | 與現有行人特徵相符分數,分數越接近0表示越相近 |
xywh | 辨識到的物件座標 |
states | API呼叫成功、失敗 |
衣服辨識列表:
服飾標籤 | 服飾款式 | 服飾標籤 | 服飾款式 |
---|---|---|---|
Anorak | 防水外套 | Jeggings | 牛仔緊身褲 |
Blazer | 西裝外套 | Jodhpurs | 乘馬褲 |
Blouse | 女襯衫 | Joggers | 慢跑褲 |
Bomber | 飛行夾克 | Leggings | 緊身褲 |
Button-Down | 鈕扣襯衫 | Sarong | 沙灘裙 |
Cardigan | 羊毛衫 | Shorts | 短褲 |
Flannel | 絨布襯衫 | Skirt | 裙子 |
Halter | 露肩上衣 | Sweatpants | 運動褲 |
Henley | 釦領上衣 | Sweatshorts | 運動短褲 |
Hoodie | 帽T | Trunks | 泳褲 |
Jacket | 外套 | Caftan | 阿拉伯長袍 |
Jersey | 運動衫 | Cape | 斗篷 |
Parka | 防寒外套 | Coat | 大衣 |
Peacoat | 海軍大衣 | Coverup | 遮蓋物 |
Poncho | 斗篷 | Dress | 裙裝 |
Sweater | 毛衣 | Jumpsuit | 連身褲 |
Tank | 沖鋒背心 | Jeans | 牛仔褲 |
Tee | T恤 | Kaftan | 寬鬆長袍 |
Top | 上衣 | Kimono | 和服 |
Turtleneck | 高領衫 | Nightdress | 睡裙 |
Capris | 七分褲 | Onesie | 連身衣 |
Chinos | 斜紋褲 | Robe | 浴袍 |
Culottes | 寬褲 | Romper | 連身短褲 |
Cutoffs | 短褲 | Shirtdress | 襯衫裙 |
Gauchos | 闊腿褲 | Sundress | 露肩裙 |