Page:
1018_體態API_測試
Table of Contents
This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
API相關
上傳資料
上傳暫存資料(演算法抓完之後就進行刪除了)
URL : http://211.22.135.143:7200/api/Postural_Analysis_1
Method : POST
Content-Type: application/json
data:{
"img_name": 120241019105623,
"test_id": user_id,
"test_analyst": " ",
"test_time": " ",
"test_date": " ",
"img": img_base64,
"data_creat_time": "2023-01-11T12:53:25.381Z"
}
上傳永久資料(上傳後會永久保存)
URL : http://211.22.135.143:7200/api/Postural_Analysis
Method : POST
Content-Type: application/json
data:{
"img_name": 120241019105623,
"test_id": user_id,
"test_analyst": " ",
"test_time": " ",
"test_date": " ",
"img": img_base64,
"data_creat_time": "2023-01-11T12:53:25.381Z"
}
img需要轉base64的格式 如以下操作
轉換完成後,並將數據打包成JSON 如下圖所示
要有圖片(base64格式)、圖片名稱、及使用者ID
等待演算法完成,再進行抓取資料
由於有正視圖與側視圖,所以必須2個都抓看看,有無資料
正視圖
URL : http://211.22.135.143:7200/api/Postural_Analysis_detail/img_name-120241019105623.jpg
Method : GET
Content-Type: application/json
側視圖
URL : http://211.22.135.143:7200/api/Postural_Analysis_detail_2/img_name-120241019105623.jpg
Method : GET
Content-Type: application/json
記得在img_name後加上".jpg"
若有資料後,即可直接去獲取資料
URL : http://211.22.135.143:7200/api/Postural_Analysis_detail/120241019105623.jpg
Method : GET
Content-Type: application/json
以下是測試時使用到的API