tesseract_ocr v0.1.3 TesseractOcr.Utils View Source

Utilities to run tesseract-ocr

Link to this section Summary

Functions

This function executes the tesseract on system and return the output

This function will mount the options to tesseract OCR

Link to this section Functions

Link to this function

command(path, output, options)

View Source

This function executes the tesseract on system and return the output

Link to this function

command_options(path, output, options)

View Source

This function will mount the options to tesseract OCR

Examples

iex> TesseractOcr.Utils.command_options("test/resources/world.png", "stdout", %{l: "por", oem: "1"}) ["test/resources/world.png", "stdout", "-l", "por", "--oem","1"]

iex> TesseractOcr.Utils.command_options("test/resources/world.png", "stdout", %{l: "por", psm: 1}) ["test/resources/world.png", "stdout", "-l", "por", "--psm", "1"]

iex> TesseractOcr.Utils.command_options("test/resources/world.png", "stdout", %{c: "var=b"}) ["test/resources/world.png", "stdout", "-c", "var=b"]