[API] Storage Upload
http://localhost:8800/storage/upload
描述
上傳影像至Local API Server,支援post方式的multipart夾帶檔案上傳(檔案名稱image),可得到一組img_id,後續face detection 或 human detection使用。因為Local API Server會將該影像暫時儲存於記憶體,但使用過face detection 或 human detection的API後會刪除。(目前只暫存15張影像)
參數
"image"
- 上傳影像至Local API Server,得到一組img_id代表影像唯一ID,方便後續操作使用。
回傳值
"img_id"
- 經由上傳影像後,由Server回傳的影像唯一ID
"state"
- 回傳狀態
- STATE_SUCCESSFUL 執行成功
- STATE_FAIL 尚未分類的錯誤
- STATE_REQUEST_METHOD_ERROR Request方式不是使用POST
- STATE_PARAMETER_ERROR Request少給參數或給錯參數
- STATE_PROCESS_ERROR 處理上傳檔案發生錯誤
JSON格式
{
"img_id":"ecf726939c4f480c87da93aa432ca2e2",
"state":1000
}