火焰偵測
火焰辨識功能簡介
火焰辨識服務可透過API [“fireandsmoke_detection”] 偵測影中是否有火焰,若有辨識到火焰,API則會回傳火焰的位置與框線資訊。
傳送影像至火焰偵測辨識服務
透過 [“fire_detection“] 將欲辨識影像匯入,若AI辨識到影像中有火焰特徵,即會回傳火焰標籤、座標及框線資訊。
HTTP方法與請求網址:
POST https://saas.intemotech.com/saasapi/detect
Content-type
application/form-data
請求from-data正文:
| KEY | VALUE | 
|---|---|
| file | 匯入照片檔案 (image) | 
| api_name | [“fire_detection”] (string) | 
cURL:
curl --location --request POST 'https://saas.intemotech.com/saasapi/detect' \
--header 'Authorization: Bearer <TOKEN>' \
--form 'api_name="[\"fire_detection\"]"' \
--form 'file=@"/xxxx.png"'辨識結果文本:
{
    "data": [
        {
            "fire_detection": [
                {
                    "conf": 0.77783203125,
                    "name": "fire",
                    "xywh": [
                        0.5,
                        0.5087719559669495,
                        1.0,
                        0.9824561476707458
                    ]
                }
            ]
        }
    ],
    "states": "Sucessfully"
}回傳欄位說明
| 欄位名稱 | 欄位說明 | 
|---|---|
| fire_detection | 火焰偵測 | 
| conf | 信心值:0~1分(信心值越高代表越準確) | 
| name | 標籤名稱(fire-火焰) | 
| xywh | 火焰位置與框線 | 
| states | API呼叫成功、失敗 | 


























