24 lines
856 B
Elixir
24 lines
856 B
Elixir
|
|
# This file is auto-generated by alef — DO NOT EDIT.
|
||
|
|
# alef:hash:4e15143f4af1ae8bafbdb1506ef057da924484c66a19483966333558ad437e75
|
||
|
|
# To regenerate: alef generate
|
||
|
|
# To verify freshness: alef verify --exit-code
|
||
|
|
# Issues & docs: https://github.com/kreuzberg-dev/alef
|
||
|
|
defmodule Kreuzberg.OcrPipelineConfig do
|
||
|
|
@moduledoc """
|
||
|
|
Multi-backend OCR pipeline with quality-based fallback.
|
||
|
|
|
||
|
|
Backends are tried in priority order (highest first). After each backend
|
||
|
|
produces output, quality is evaluated. If it meets `quality_thresholds.pipeline_min_quality`,
|
||
|
|
the result is accepted. Otherwise the next backend is tried.
|
||
|
|
"""
|
||
|
|
|
||
|
|
@typedoc "Multi-backend OCR pipeline with quality-based fallback."
|
||
|
|
@type t :: %__MODULE__{
|
||
|
|
stages: [map()],
|
||
|
|
quality_thresholds: map()
|
||
|
|
}
|
||
|
|
|
||
|
|
defstruct stages: [],
|
||
|
|
quality_thresholds: nil
|
||
|
|
end
|