Current section
Files
Jump to
Current section
Files
lib/xberg/psm_mode.ex
# This file is auto-generated by alef — DO NOT EDIT.
# alef:hash:b2c29ab80fb9cdb8c5190a7808ad862ad890f416ad887092447b282a5b1b69e0
# To regenerate: alef generate
# To verify freshness: alef verify --exit-code
defmodule Xberg.PSMMode do
@moduledoc "Page Segmentation Mode for Tesseract OCR."
@typedoc "Page Segmentation Mode for Tesseract OCR."
@type t ::
:osd_only
| :auto_osd
| :auto_only
| :auto
| :single_column
| :single_block_vertical
| :single_block
| :single_line
| :single_word
| :circle_word
| :single_char
@osd_only :osd_only
@auto_osd :auto_osd
@auto_only :auto_only
@auto :auto
@single_column :single_column
@single_block_vertical :single_block_vertical
@single_block :single_block
@single_line :single_line
@single_word :single_word
@circle_word :circle_word
@single_char :single_char
@doc "Orientation and script detection only."
@spec osd_only() :: t()
def osd_only, do: @osd_only
@doc "Automatic page segmentation with OSD."
@spec auto_osd() :: t()
def auto_osd, do: @auto_osd
@doc "Automatic page segmentation without OSD or OCR."
@spec auto_only() :: t()
def auto_only, do: @auto_only
@doc "Fully automatic page segmentation with no OSD (default)."
@spec auto() :: t()
def auto, do: @auto
@doc "Assume a single column of text of variable sizes."
@spec single_column() :: t()
def single_column, do: @single_column
@doc "Assume a single uniform block of vertically aligned text."
@spec single_block_vertical() :: t()
def single_block_vertical, do: @single_block_vertical
@doc "Assume a single uniform block of text."
@spec single_block() :: t()
def single_block, do: @single_block
@doc "Treat the image as a single text line."
@spec single_line() :: t()
def single_line, do: @single_line
@doc "Treat the image as a single word."
@spec single_word() :: t()
def single_word, do: @single_word
@doc "Treat the image as a single word in a circle."
@spec circle_word() :: t()
def circle_word, do: @circle_word
@doc "Treat the image as a single character."
@spec single_char() :: t()
def single_char, do: @single_char
end