tesseract_ocr v0.1.0 TesseractOcr View Source

Documentation for TesseractOcr. This Module is a wrapper of 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

This function reads the chars on image by OCR

Link to this section Functions

This function executes the tesseract on system and return the output

Link to this function command_options(path, options) View Source

This function will mount the options to tesseract OCR

Examples

iex> TesseractOcr.command_options(“test/resources/world.png”, %{lang: “por”, oem: “1”}) [“test/resources/world.png”, “stdout”, “—lang por”, “—oem 1”]

iex> TesseractOcr.command_options(“test/resources/world.png”, %{lang: “por”, psm: 1}) [“test/resources/world.png”, “stdout”, “—lang por”, “—psm 1”]

Link to this function read(path, options \\ %{}) View Source

This function reads the chars on image by OCR

Examples

iex> TesseractOcr.read("test/resources/world.png")
"world"