POST /upload-image
사용자가 업로드한 약 사진을 분석합니다.
{
"Content-Type": "multipart/form-data"
"Key" : "photo (이미지 파일 업로드)"
}
# 예시
# photo : example-pill.png (약 사진)
{
"detections": [
{
"label": "pill",
"box": [100, 100, 200, 200]
}
],
"images": [
{
"label": "pill",
"image": "iVBORw0KGgoAAAANSUhEUgAAAAUA...",
"color": "빨강",
"shape": "원형",
"descript": "DA"
}
]
}
detections : 감지된 약 객체 정보 (레이블 및 경계 박스)images :
label : 약의 종류image : Base64 인코딩된 이미지color : HSV 기반 감지 색상shape : 감지된 약의 모양descript : Google Vision API를 통한 약 각인 추출값