Pen to Print - Handwriting OCR

부분 유료
분류별 Pen-To-Print | 업데이트됨 9 days ago | Visual Recognition
인기

9.5 / 10

지연 시간

2,274ms

서비스 수준

99%

Health Check

N/A

모든 토론으로 돌아가기

HTTP body

Rapid account: Modembh
modembh
3 years ago

Dear api creator,
Your Pen to Print api is one of the best to detect handwriting. I’m so thankful for your effort.

I’d like to make use of it with MS Flow. Could you tell me what to include in the body of HTTP post request in Flow?

I’ve tried but couldn’t figure out how to adapt the info you provided in here in rapiapi pages.

I’d be really grateful and that will enable me to use it in my flow.

looking forward to hearing from you soonest,
modembh

**If anyone reading this can help in any way, please do and I’d be so grateful to you.

Rapid account: Modembh
modembh Commented 3 years ago

Finally, I got it to work!

Here’s a screenshot from my flow


https://moebh-my.sharepoint.com/:i:/g/personal/810702754_moe_bh/EY9yvIYRbVJGlUa0VGRtgWMBqwq69yuU8JohUCx892Vgyw?e=5rDhg4

The image content needs to be in binary format and not base64.

This the body of the HTTP post request.

https://moebh-my.sharepoint.com/:i:/g/personal/810702754_moe_bh/EZ3wQe7ZJjZKg3U1ySlRJZoBmfJSB1L2I5Sa68VhpWT3pg?e=3wvkVi

Here’s a text copy of the body with “XXX” and “YYY” to be replaced with filename and binary image content respectively.

{
contenttype":"multipart/formdata","content-type": "multipart/form-data", "multipart”: [
{
“headers”: {
“Content-Disposition”: “form-data; name=“srcImg”; filename=“XXX””,
“content-type": "application/octet-stream" }, "body": { "content-type”: “application/octet-stream”,
"$content": “YYY”
}
}
]
}

I wish this piece of information could help you make use of this api, in case you are struggling with the same or similar issue.

Thanks to SamPo who shared his solution in this post.
https://powerusers.microsoft.com/t5/Building-Flows/HTTP-Post-multipart-form-data/td-p/145181

Thanks to William for addressing similar issue on his blog.
https://willpage.dev/2019/12/20/using-the-http-action-to-post-multipart-form-data-in-power-automate-logic-apps/

아래에 의견을 추가하고 토론에 참여하세요.

새 댓글을 게시하려면 로그인 / 가입