Skip to content
TOC

AutoOCR

AutoOCR's primary job is to perform online corrections for foreign languages, which are automatically performed when excerpting. Formula recognition can only be called manually using MagicAction for Text and cannot be executed automatically at the time of excerpting.

Get API key

Like AutoTranslate, AutoOCR also uses a third-party service and requires you to obtain the key yourself.

Baidu OCR

Notice

Search for How to apply the Baidu OCR API by yourself, the exact price and amount is subject to the official website, and any fees incurred are not related to OhMyMN.

AutoOCR uses a high-precision version with a low free credit. The service will be stopped automatically when the quota is used up.

MathPix

Notice

Search for How to apply the Mathpix API by yourself, the exact price and amount is subject to the official website, and any fees incurred are not related to OhMyMN.

It should be noted that MathPix prices change frequently and are not cheap.

Foreign Language Online Correction

TIP

Both Auto Execution on Excerpt and Language Recognition are valid for the current document so that they can be set separately for different documents.

MarginNote's OCR Pro does not support many foreign languages, making it impossible to excerpt properly, such as Russian (Supported now). AutoOCR uses Baidu's OCR service to correct excerpts online.

In combination with Autotranslate, auto-translation for foreign languages is also possible.

MagicAction for Text

Formula Recognition

WARNING

Formula recognition can only be called manually using MagicAction for Text and cannot be executed automatically at the time of excerpting. Do not select more than two lines of text, which tends to fail and will not be displayed completely on the card.

You need to use Markdown plugins to display formulas, so you must install Markdown plugins in advance. Currently, there are 3 Markdown plugins and I recommend using Milkdown.

This feature has three options

  • pure latex: MarkDown Please select this option for the plugins, including when Milkdown's MarkDown compatibility is enabled. Please note that the Milkdown and MarkDown plugins have different syntaxes for formulas. Please think carefully before choosing whether they are compatible.
  • $$latex$$ $latex$: myMarkdown and Milkdown are both viable options. You can check the differences between the two yourself if interested.

Please be prepared that although it looks cool, it is complicated to implement:

  1. Apply for Baidu OCR or MathPix API key.
  2. Fill it in AutoOCR and select the corresponding formula recognition service provider.
  3. Install any Markdown plugin and select the corresponding Markdown plugin.
  4. MagicAction for Text - in the pop-up menu for more options, turn on Set as Commnet.
  5. first select an excerpt or card (otherwise you can only copy the result to the clipboard), then drag to select, and click Formula Recognition. The recognized Latex of the formula is automatically written to the previously selected card. Use the Gesture module to invoke the execution for a better experience.

Text Recognition

Perform text recognition on the selected text or area and copy the result to the clipboard.

Handwriting recognition

Use Baidu OCR service for handwriting recognition. Please note the free trial.

QR code recognition

Use Baidu OCR service for QR code recognition. Please note the free trial.

Released under the MIT License.