FastOCR icon indicating copy to clipboard operation
FastOCR copied to clipboard

[Feature Request] Please support Mathpix API

Open sukanka opened this issue 3 years ago • 1 comments

Describe the feature Could you please add support for mathpix API so that users can use this to copy and paste math formulars? Reference: https://mathpix.com/ocr

sukanka avatar May 26 '22 06:05 sukanka

mathpix api is requesting an accessible url of image, so we need to support an image pastebin first. Using a public pastebin is kind of risky. bad news. TT

BruceZhang1993 avatar May 26 '22 09:05 BruceZhang1993

mathpix api is requesting an accessible url of image, so we need to support an image pastebin first. Using a public pastebin is kind of risky. bad news. TT

According to their API references: "... For backward compatibility a client also may post a JSON body containing the base64 encoding of the image in the src field."

We can get the base64 coding of the image passed to the API.

WhiredPlanck avatar Dec 26 '22 18:12 WhiredPlanck

Implemented in https://github.com/BruceZhang1993/FastOCR/commit/ee4f3a92d61db95f35a1c0e2fcb56068e6ec13a6, but no account to test.

BruceZhang1993 avatar Jan 28 '23 08:01 BruceZhang1993