June 6, 2022

  • Resolved a critical bug that impacted PDF processing of 2 column PDFs
  • You can now request that only certain subsets of pages are processed in a PDF, via the new page_ranges field
  • Pushed latency improvements that benefit all endpoints, reducing processing time by 30% on average
  • You can now query hour by hour API usage using the following endpoint

April 27, 2022

  • Updated how line data is represented for PDFs from using rectangular regions to polygonal contours (this is helpful for handwritten PDFs where text lines are generally not rectangular)
  • Added page dimensions to the line-by-line data structures
  • There are two available data structures for line-by-line data:
    • Raw PDF lines data: this is the ideal data structure for searching; does not contain contextual annotations for titles, abstracts, etc.
    • Context enhanced PDF mmd lines data: you can use this to re-create the full document, including contextual annotations for titles, abstracts, etc. (see here for syntax)
  • Published a Github repo which contains client-side code for live drawing with the Mathpix digital ink API containing a fully working example of leveraging user actions like scribbling and strikethrough to delete content

April 18, 2022

  • Added an EU server region (AWS region eu-central-1) to decrease latencies for European customer and also for adherance to GDPR
  • You can now use app-tokens for authenticating requests inside client side app code
  • The new app-tokens route provides a include_strokes_session_id flag, which when true, returns a strokes_session_id string that can be used inside calls to v3/strokes, enabling digital ink sessions with live updates
    • Pricing for the strokes endpoint when using session_ids can be found here
  • Add OCR support for basic handwritten PDFs

March 28, 2022

  • You can now get detailed line-by-line data for PDFs, including geometric coordinates, via the new GET v3/pdf/<pdf_id>.lines.json endpoint.
  • Better robustness for our v3/text endpoint:
    • Our ability to correctly interpret complex layouts involving math and text has improved, with much-improved edge case handling and handling of line text for skewed images and other image distortions that occur frequently in consumer photo search applications.

March 14, 2022

  • Our new OCR models feature stringent guarantees of syntactic correctness, resolving a rare but long-standing problem of occasionally malformed LaTeX strings, resulting in rendering errors due to double subscripts, double superscripts, malformed tables, and other syntax issues. This has been fixed at a fundamental level. Syntax issues are essentially completely fixed.
  • Deprecated \atop command in favor of \substack

February 8, 2022

We have recently switched to a new, faster database to save image and PDF data. Next week, we will decommission our old database. This will result in OCR API image results log data from before December 1st, 2021 becoming unavailable via the GET v3/ocr-results endpoint. Note that we have already migrated all PDF data to the new database, so there will be no data loss for PDF data.

November 15, 2021

  • Deployed incremental update to our re OCR engine, resulting in:
    • significantly improved handwriting recognition, including disambiguating symbols based on context
    • improved table parsing accuracy
    • notably fewer errors

September 2, 2021

  • Deployed a core algorithm update for our image parsing module, resulting in significantly better accuracy and edge case behavior for all endpoints
  • Updated CLI with additional conversion types
  • Significant improvements to chemical diagram OCR
  • Support for asynchronous image processing

July 27, 2021

  • Added support for Tamil, Telugu, Gujarati, and Bengali
  • Updated our OCR to use a more effective representation of Chinese characters, leading to higher accuracy, and better coverage.
  • Added support for \bigcirc

July 19, 2021

  • Support for sending image binaries for lower image upload latencies
  • Support for tags which allow you to associate an attribute with your requests and subsequently retrieve the associated requests by using tags in a /v3/ocr-results query
  • PDF processing updates:
    • Fixed a bug where pages were getting skipped
    • Improved processing of PDFs with foreign languages
    • Added support for configurable math delimiters

April 12, 2021

  • Servers in Singapore for faster latencies for API customers in Asia
  • Triangle diagram OCR now supported for diagrams commonly found in trigonometry textbooks
  • Added InChI option for chemical diagram OCR

April 2, 2021

  • Added a include_word_data parameter to the v3/text endpoint, which when set to true, returns word by word information, with separate results, confidences values, and contour coordinates for each word
  • Beta printed chemical diagram OCR to return SMILES format

March 10, 2021

  • New v3/pdf API endpoint (beta)
  • PDF conversion CLI tool
  • Fixed miscellaneous bugs in v3/text processing for messy images
  • Incremental improvements to handwriting recognition and printed table recognition for all endpoints
  • Added support for the following printed characters:
\nvdash
\nvDash
\bigvee
\bigwedge
\fallingdotseq
\risingdotseq
\mho
\unlhd
\unrhd
\overleftrightarrow
\bigodot

February 7, 2021

January 5, 2021

  • Improved math handwriting recognition
  • Improved printed Romanian, Polish, Serbian, Ukrainian recogntion
  • Added support for the following LaTeX characters:
\varsigma
\llcorner
\lrcorner
\uplus
\biguplus
\triangleright
\triangleleft
\dddot
\circledast
\rtimes
\ltimes
\supseteqq
\oiiint
\supsetneqq
\rightsquigarrow
\Vdash
\models

December 1, 2020

November 12, 2020

  • added autorotation for v3/text
Images like this now work in v3/text:
picture
The goal of automatic rotation is to pick correct orientation for received images before any processing is done. The result of auto rotation looks like:
picture
We will soon add these features to v3/latex and v3/batch as well. We implemented a very conservative rotation confidence threshold, meaning you should still try to call the API with a properly oriented image if possible!
API docs on autorotation:

November 9, 2020

  • v3/text general improvements
First of all, we trained our models on a larger dataset, resulting in a general accuracy increase.
Secondly, we improved the precision of predictions, at the potential cost of slightly decreasing prediction recall in some circumstances. Here is an example of an image, where previously our v3/text tried to read the bottom, cut off parts of the image:
image
Now, v3/text ignores these sections, resulting in a much cleaner output than before. The endpoint will still try to read everything in an image (vs the v3/latex endpoint which tries to read the main equation), but will be slightly less aggressive in reading unusual image sections in order to avoid garbage outputs.
  • chemistry diagram detection
We have added a new field in our LineData object, subtype, so that we can return more information about diagrams to API clients. Currently subtype can only be chemistry, but more diagram subtypes are coming soon.
See an example request with chemistry: https://mathpix.com/docs/ocr/examples#chemistry-diagrams.
  • added ability to create and disable new API keys to accounts.mathpix.com OCR dashboard
  • added ability to invite users (to have access to API keys, usage statistics, image results dashboard) to accounts.mathpix.com OCR dashboard

October 14, 2020

  • Add support for the following characters:
«
»
\gtrless
\lessgtr
\nsucceq
\npreceq
\llbracket
\rrbracket
\curvearrowright
\curvearrowleft
№
  • Improved accuracy on:
    • Handwriting (math and text)
    • Hindi language recognition (printed)
    • Tables and matrices
  • We now support backgroundless PNGs with alpha channels

August 14, 2020

August 1, 2020

July 13, 2020

  • Replace \dots with either \ldot or \cdot
  • Predict empty braces when appropriate, like in Chemistry images (eg {}^)
  • Fix v3/text bug where very wide lines of text were getting skipped
  • Improved accuracy on handwritten math
  • Improved accuracy on table predictions
  • Improved accuracy on photo images of printed Hindi and Chinese text
  • Add support for \mid predictions inside set notation
  • Add support for the following languages: Czech, Turkish, Danish

July 9, 2020

July 1, 2020

  • Skip diagrams in v3/text which caused garbage results
Yet another reason to use v3/text over v3/latex! v3/text intelligently skips diagrams!