智慧工安辨識方案
適用情境應用:智慧工安、科技執法。
文檔索引
應用場域
智慧工安辨識API使用方式
辨識工作區域人員的著裝狀況,可在api_name欄位帶入 [“safetybelt_detection“,“helm_detection“,“safety_detection“,“fireandsmoke_detection“] 辨識區域中的安全帽、安全背心、高空安全帶、火焰和煙霧標籤,若畫面中有相關物件,則該API將回傳物件名稱及座標。
傳送至智慧工安辨識服務
透過 [“safetybelt_detection“,“helm_detection“,“safety_detection“,“fireandsmoke_detection“] 將欲判斷的圖片匯入,該API即會回傳照片中判別到的安全帽、反光背心的標籤及位置。
HTTP方法與請求網址:
POST https://saasv2.intemotech.com/saasapi/detect
Content-type
application/form-data
請求from-data正文:
KEY | VALUE |
---|---|
file | 匯入照片檔案 (image) |
api_name | [“safetybelt_detection”,”helm_detection”,”safety_detection”,”fireandsmoke_detection”] (string) |
cURL:
curl --location --request POST 'https://saas.intemotech.com/saasapi/detect' \
--header 'Authorization: Bearer <TOKEN>' \
--form 'api_name="[\"safetybelt_detection\",\"helm_detection\",\"safety_detection\",\"fireandsmoke_detection\",\"smoke_detection\"]"' \
--form 'file=@"/xxx.png"'
辨識結果文本:
{
"data": [
{
"safetybelt_detection": [
{
"conf": 0.7956718802452087,
"name": "Safety-Rope Vest",
"xywh": [
0.30859375,
0.50341796875,
0.12890625,
0.2275390625
]
}
]
},
{
"helm_detection": [
{
"conf": 0.8873411417007446,
"name": "Hardhat",
"xywh": [
0.13818359375,
0.349609375,
0.0869140625,
0.05859375
]
},
{
"conf": 0.8758893013000488,
"name": "Hardhat",
"xywh": [
0.31884765625,
0.3232421875,
0.0751953125,
0.0625
]
},
{
"conf": 0.8749920129776001,
"name": "Hardhat",
"xywh": [
0.4775390625,
0.3193359375,
0.078125,
0.064453125
]
}
]
},
{
"fireandsmoke_detection": [
{
"conf": 0.49365234375,
"name": "smoke",
"xywh": [
0.5886792540550232,
0.14932885766029358,
0.5943396091461182,
0.29530200362205505
]
},
{
"conf": 0.1839599609375,
"name": "fire",
"xywh": [
0.5249999761581421,
0.5184563994407654,
0.43490564823150635,
0.5939597487449646
]
},
{
"conf": 0.06988525390625,
"name": "fire",
"xywh": [
0.3547169864177704,
0.35486575961112976,
0.11320754885673523,
0.3842281997203827
]
},
{
"conf": 0.0689697265625,
"name": "smoke",
"xywh": [
0.7952830195426941,
0.13590604066848755,
0.1905660331249237,
0.2651006579399109
]
},
{
"conf": 0.036712646484375,
"name": "smoke",
"xywh": [
0.5740566253662109,
0.3758389353752136,
0.12735849618911743,
0.2281879186630249
]
},
{
"conf": 0.019927978515625,
"name": "smoke",
"xywh": [
0.525943398475647,
0.3338926136493683,
0.37452828884124756,
0.3557046949863434
]
},
{
"conf": 0.013336181640625,
"name": "fire",
"xywh": [
0.3849056661128998,
0.7835570573806763,
0.056603774428367615,
0.08053690940141678
]
},
{
"conf": 0.0128326416015625,
"name": "smoke",
"xywh": [
0.3518867790699005,
0.28355705738067627,
0.1339622586965561,
0.38590604066848755
]
},
{
"conf": 0.0106201171875,
"name": "fire",
"xywh": [
0.5712264180183411,
0.1778523474931717,
0.5632075667381287,
0.3557046949863434
]
}
]
},
{
"safety_detection": [
{
"conf": 0.8874533176422119,
"name": "Safety Vest",
"xywh": [
0.11572265625,
0.521484375,
0.1728515625,
0.197265625
]
},
{
"conf": 0.8786574602127075,
"name": "Safety Vest",
"xywh": [
0.48779296875,
0.4873046875,
0.1318359375,
0.185546875
]
}
]
}
],
"states": "Sucessfully"
}
欄位名稱 | 欄位說明 |
---|---|
safety_detection | 安全背心辨識 |
helm_detection | 安全帽辨識 |
safetybelt_detection | 高空安全帶辨識 |
fireandsmoke_detection | 火焰辨識 |
smoke_detection | 煙霧辨識 |
name | 辨識的物件名稱 |
xywh | 辨識到的物件座標 |
states | API呼叫成功、失敗 |
辨識列表:
物件標籤 | 辨識名稱 |
---|---|
NO-Mask | 無遮罩 |
NO-Safety Vest | 無安全背心 |
Safety Vest | 安全背心 |
Hardhat | 安全帽 |
NO-Hardhat | 無安全帽 |
Safety-Rope Vest | 安全繩索背心 |
fire | 火焰 |
smoke | 煙霧 |