Current section
Files
Jump to
Current section
Files
lib/xberg/ocr_element_level.ex
# This file is auto-generated by alef — DO NOT EDIT.
# alef:hash:0ba7524a2759609dc6f17c04fa9ae89940b7a540ae2e9a3708ac3fca410f8701
# To regenerate: alef generate
# To verify freshness: alef verify --exit-code
defmodule Xberg.OcrElementLevel do
@moduledoc """
Hierarchical level of an OCR element.
Maps to Tesseract's page segmentation hierarchy and provides
equivalent semantics for PaddleOCR.
"""
@typedoc "Hierarchical level of an OCR element."
@type t :: :word | :line | :block | :page
@word :word
@line :line
@block :block
@page :page
@doc "Individual word"
@spec word() :: t()
def word, do: @word
@doc "Line of text (default for PaddleOCR)"
@spec line() :: t()
def line, do: @line
@doc "Paragraph or text block"
@spec block() :: t()
def block, do: @block
@doc "Page-level element"
@spec page() :: t()
def page, do: @page
end