智慧零售文檔

適用情境應用:顧客分析、人種分析、年齡性別歸類。

應用場域

新零售應用的智能廣告推播

新零售-智能廣告推播

該服務可協助零售業辨識顧客年齡、性別,透過辨識回傳結果,與您的廣告系統連動,即可完成精準的廣告推送目的。
零售業者可特過廣告搜集顧客的性別年齡

顧客反應情蒐

除了辨識年齡性別,也可得知目前臉部情緒狀況,藉此搜集顧客看到廣告、商品時的反應。

智慧零售辨識服務簡介

辨識商場中的消費者,可透過API欄位指定辨識項目,例如 [“api1″,”api2″,”api3″,”api4”]
辨識項目為人臉比對、服飾識別、行人識別、物件識別。若畫面中有相關物件,則該API將回傳物件名稱及座標。

HTTP方法與請求網址:

POST https://saasv2.intemotech.com/saasapi/detect

Content-type

application/form-data

請求from-data正文:

KEYVALUE
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辨識到的物件座標
statesAPI呼叫成功、失敗
回傳欄位說明

衣服辨識列表:

服飾標籤服飾款式服飾標籤服飾款式
Anorak防水外套Jeggings牛仔緊身褲
Blazer西裝外套Jodhpurs乘馬褲
Blouse女襯衫Joggers慢跑褲
Bomber飛行夾克Leggings緊身褲
Button-Down鈕扣襯衫Sarong沙灘裙
Cardigan羊毛衫Shorts短褲
Flannel絨布襯衫Skirt裙子
Halter露肩上衣Sweatpants運動褲
Henley釦領上衣Sweatshorts運動短褲
Hoodie帽TTrunks泳褲
Jacket外套Caftan阿拉伯長袍
Jersey運動衫Cape斗篷
Parka防寒外套Coat大衣
Peacoat海軍大衣Coverup遮蓋物
Poncho斗篷Dress裙裝
Sweater毛衣Jumpsuit連身褲
Tank沖鋒背心Jeans牛仔褲
TeeT恤Kaftan寬鬆長袍
Top上衣Kimono和服
Turtleneck高領衫Nightdress睡裙
Capris七分褲Onesie連身衣
Chinos斜紋褲Robe浴袍
Culottes寬褲Romper連身短褲
Cutoffs短褲Shirtdress襯衫裙
Gauchos闊腿褲Sundress露肩裙
回傳欄位說明