api-examples
api-examples copied to clipboard
Mathpix API examples - converts image to latex
It uses `https://api.mathpix.com/v3/latex` as endpoint which is outdated. It should be `https://api.mathpix.com/v3/text`.
latex {'request_id': 'c590d176a336a9eaa488383fcd8f78c4', 'error': "OpenCV(4.2.0) /io/opencv/modules/imgproc/src/resize.cpp:4048: error: (-215:Assertion failed) inv_scale_x > 0 in function 'resize'\n", 'error_info': {'id': 'sys_exception', 'message': "OpenCV(4.2.0) /io/opencv/modules/imgproc/src/resize.cpp:4048: error: (-215:Assertion failed) inv_scale_x > 0 in function 'resize'\n"}}
> { > "error": "Invalid credentials", > "error_info": { > "id": "http_unauthorized", > "message": "Invalid credentials" > } > } what does this means? I use python3.6, so my code...
{ "error": "Invalid credentials", "error_info": { "id": "http_unauthorized", "message": "Invalid credentials" } }
This is a new api for golang,if you needed.
Could you add an example for PHP, I am stuck with this custom code: $uploadedFile = file_get_contents('ztest.jpg'); $ch = curl_init(); curl_setopt_array($ch, array( CURLOPT_RETURNTRANSFER => true, // receive server response CURLOPT_URL...
Maybe helpful for others: https://github.com/jonocarroll/mathpix You might want to add this to your examples / docs.
How can i use API in python for any other image please mention the required steps
**Dear Mathpix Support Team,** I hope this message is helpful to you. I am a member of the Immersive Translate team, and we have been utilizing Mathpix for our translation...