Pen to Print - Handwriting OCR

ÜCRETSİZ PREMIUM
Taraf Pen-To-Print | Güncelleyen 4 days ago | Visual Recognition
Popülerlik

9.6 / 10

Gecikme

3,965ms

Hizmet Düzeyi

90%

Health Check

N/A

Tüm Tartışmalara Dön

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/

Aşağıya yorum ekleyerek tartışmaya katılın:

Yeni yorumlar göndermek için giriş yapın / kaydolun