imgocr | R Documentation |
Mathematical formulas and character recognition.
imgocr(img, mode = "latex_ocr")
img |
An image file, supporting jpg, png, bmp format. |
mode |
Set service model. The value can be 'latex_ocr', 'latex_ocr_turbo', or 'simpletex_ocr'. The default value is 'latex_ocr'. The 'latex_ocr' and 'latex_ocr_turbo' are used for formula identification. 'latex_ocr' is better than 'latex_ocr_turbo', but 'latex_ocr_turbo' is faster. 'simpletex_ocr' is suitable for general image recognition. |
Text or mathematical formulas for Markdown and LaTeX.
## Not run:
imgocr("path/to/test.jpg")
imgocr("path/to/test.png", mode = "latex_ocr_turbo")
imgocr("path/to/test.bmp", mode = "simpletex_ocr")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.