智慧工安辨識方案
適用情境應用:智慧工安、工地科技執法。
應用場域
智慧工安辨識API使用方式
當需要辨識工地畫面中特定區域人員的著裝狀況時,可在api_name欄位帶入 [“safety_detection”,”helm_detection”] 來辨識區域中的安全帽及反光背心標籤,若畫面中有相關物件,則該API將回傳物件名稱及座標。
傳送至智慧工安辨識服務
透過 [“safety_detection”,”helm_detection”] 將欲判斷的圖片匯入,該API即會回傳照片中判別到的安全帽、反光背心的標籤及位置。
HTTP方法與請求網址:
POST https://saas.intemotech.com/saasapi/detect
Content-type
application/form-data
請求from-data正文:
KEY | VALUE |
---|---|
file | 匯入照片檔案 (image) |
api_name | [“safety_detection”,”helm_detection”] (string) |
cURL:
curl --location --request POST 'https://saas.intemotech.com/saasapi/detect' \
--header 'Authorization: Bearer <TOKEN>' \
--form 'api_name="[\"safety_detection\",\"helm_detection\"]"' \
--form 'file=@"/xxx.png"' \
辨識結果文本:
{
"data": [
{
"safety_detection": [
{
"conf": 0.861328125,
"name": "reflective_clothes",
"xywh": [
0.375,
0.6851851940155029,
0.3830275237560272,
0.6234567761421204
]
},
{
"conf": 0.837890625,
"name": "reflective_clothes",
"xywh": [
0.7373853325843811,
0.5910493731498718,
0.3738532066345215,
0.7993826866149902
]
}
]
},
{
"helm_detection": [
{
"conf": 0.91455078125,
"name": "helmet",
"xywh": [
0.4266054928302765,
0.2561728358268738,
0.22018349170684814,
0.395061731338501
]
},
{
"conf": 0.86083984375,
"name": "head",
"xywh": [
0.7626146674156189,
0.13117283582687378,
0.18577980995178223,
0.26234567165374756
]
}
]
}
],
"states": "Sucessfully"
}
欄位名稱 | 欄位說明 |
---|---|
safety_detection | 安全背心辨識 |
helm_detection | 安全帽辨識 |
conf | 信心值 |
name | reflective_clothes=安全背心 other_clothes=其他衣著(表示沒穿安全背心) helmet=安全帽 head=頭部(表示沒戴安全帽) |
xywh | 辨識到的物件座標 |
states | API呼叫成功、失敗 |