0 a 0 todo222 - smart1004/doc GitHub Wiki

안녕하세요.

구글클라우드 플랫폼에 아래와 같이 api를 호출하시면 됩니다.

curl로 rest api 테스트 예제를 송부드리니 확인 부탁드립니다.

curl -X POST -F image=@skin_c0_20130228_151548a.jpg -F 'model_type=0' 'http://34.105.94.255:5000/predict' curl -X POST -F image=@tooth_c0.jpg -F 'model_type=1' 'http://34.105.94.255:5000/predict'

[ model_type ] model_type=0 : 피부병 model_type=1 : 치아

[ image ] image=@ 뒤에는 이미지 파일이름 입니다.

[주의사항] 테스트하기 전에 미리 말씀해주시면 서버를 기동해 두겠습니다.

(base) w720899@smart1004-2: curl -X POST -F image=@skin_c0_20130228_151548a.jpg -F 'model_type=0' 'http://34.105.94.255:5000/predict' {"predictions":[{"predict":"0","probability":"0.86"}],"success":true}

[예측결과 ]

predict(피부병) '0': '세균성', '1': '곰팡이', '2': '기생충' "probability": 모델이 확신하는 정도 , 0.86 --> 86% 0(세균성)이라고 확신함

감사합니다.