tesseract_ocr v0.1.5 TesseractOcr.Utils View Source
Utilities to run tesseract-ocr
binary.
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
This function executes the tesseract on system and return the output.
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"]