안녕하세요?
안드로이드로 얼굴인식, 상품인식, 멀티태그생성, 문자인식 API 전부 테스트 중입니다.
모두 같은 함수를 태우고 url만 다르게 해서 호출하는데 문자인식만 911 에러가 납니다.
같은 함수에 같은 이미지 넘기는데 문자인식만 911 에러가 나는 이유가 뭔가요?
아래 로그입니다.
얼굴인식 로그
2021-07-06 12:23:40.693 15047-15476/com.cryingsea.kakaotest D/StandaloneCoroutine: log request url – https://dapi.kakao.com/v2/vision/face/detect
2021-07-06 12:23:40.694 15047-15476/com.cryingsea.kakaotest D/StandaloneCoroutine: log request – --^===***===^
Content-Disposition: form-data; name=“image”; filename="20210706_115133.jpg"
Content-Type: image/jpeg
Content-Transfer-Encoding: binary
[B@f11ed07
--^===***===^
2021-07-06 12:23:42.996 15047-15476/com.cryingsea.kakaotest D/StandaloneCoroutine: log responseCode – 200
2021-07-06 12:23:42.998 15047-15476/com.cryingsea.kakaotest D/StandaloneCoroutine: log dataString – {“rid”: “6a7f1ae59256e5366e8447831cf599ea”, “result”: {“width”: 2048, “height”: 1152, “faces”: []}}
상품인식 로그
2021-07-06 12:26:10.305 15047-15476/com.cryingsea.kakaotest D/StandaloneCoroutine: log request url – https://dapi.kakao.com/v2/vision/product/detect
2021-07-06 12:26:10.305 15047-15476/com.cryingsea.kakaotest D/StandaloneCoroutine: log request – --^===***===^
Content-Disposition: form-data; name=“image”; filename="20210706_115133.jpg"
Content-Type: image/jpeg
Content-Transfer-Encoding: binary
[B@6ffe0da
--^===***===^
2021-07-06 12:26:11.111 15047-15476/com.cryingsea.kakaotest D/StandaloneCoroutine: log responseCode – 200
2021-07-06 12:26:11.115 15047-15476/com.cryingsea.kakaotest D/StandaloneCoroutine: log dataString – {“rid”: “e38f891a190f00eef5eeb4b623410dae”, “result”: {“width”: 2048, “objects”: [], “height”: 1152}}
멀티태그생성 로그
2021-07-06 12:26:33.647 15047-15476/com.cryingsea.kakaotest D/StandaloneCoroutine: log request url – https://dapi.kakao.com/v2/vision/multitag/generate
2021-07-06 12:26:33.647 15047-15476/com.cryingsea.kakaotest D/StandaloneCoroutine: log request – --^===***===^
Content-Disposition: form-data; name=“image”; filename="20210706_115133.jpg"
Content-Type: image/jpeg
Content-Transfer-Encoding: binary
[B@ad70f56
--^===***===^
2021-07-06 12:26:34.270 15047-15476/com.cryingsea.kakaotest D/StandaloneCoroutine: log responseCode – 200
2021-07-06 12:26:34.271 15047-15476/com.cryingsea.kakaotest D/StandaloneCoroutine: log dataString – {“rid”: “eb1da9a2c825f05429da3a6150409f0e”, “result”: {“label_kr”: ["\uba85\ud568"], “label”: [“namecard”]}}
문자인식 로그
2021-07-06 12:27:07.130 15047-15476/com.cryingsea.kakaotest D/StandaloneCoroutine: log request url – https://dapi.kakao.com/v2/vision/text/ocr
2021-07-06 12:27:07.130 15047-15476/com.cryingsea.kakaotest D/StandaloneCoroutine: log request – --^===***===^
Content-Disposition: form-data; name=“image”; filename="20210706_115133.jpg"
Content-Type: image/jpeg
Content-Transfer-Encoding: binary
[B@52ebfea
--^===***===^
2021-07-06 12:27:07.420 15047-15476/com.cryingsea.kakaotest D/StandaloneCoroutine: log responseCode – 400
2021-07-06 12:27:07.421 15047-15476/com.cryingsea.kakaotest D/StandaloneCoroutine: log errorString – {“code”:-911,“msg”:“invalid image”}