Tesela
Copyright 2026 Cristian Camilo Robledo Cuellar

Licensed under the Apache License, Version 2.0 (see LICENSE).

This product includes code, data formats and algorithms from third parties:

- terceros/png: a copy of the `png` crate 0.18.1 (https://github.com/image-rs/image-png), dual-licensed MIT OR Apache-2.0,
  Copyright (c) 2015 nwin. Modified with a small patch that makes buffer allocations fallible (terceros/png.diff). Licence texts:
  terceros/png/LICENSE-MIT and terceros/png/LICENSE-APACHE.

- terceros/zune-jpeg: a copy of the `zune-jpeg` crate 0.5.15 (https://github.com/etemesi254/zune-image), tri-licensed
  MIT OR Apache-2.0 OR Zlib, Copyright (c) zune-image developers. Modified with a small patch that makes buffer allocations
  fallible (terceros/zune-jpeg.diff). Licence texts: terceros/zune-jpeg/LICENSE-MIT, LICENSE-APACHE and LICENSE-ZLIB.

- crates/onnx/proto/onnx.proto, and crates/onnx/src/onnx_generado.rs (generated from it): the ONNX protocol buffer schema
  (https://github.com/onnx/onnx), Apache License 2.0, Copyright (c) ONNX Project Contributors. Licence text:
  crates/onnx/proto/LICENSE-ONNX.

- crates/ocr/src/cv/ and crates/pre/src/cv/: reimplementations in Rust of OpenCV 4.x image primitives (bilinear resize,
  perspective warp, contour finding, polygon fill, minimum-area rectangle with rotating calipers, convex hull), written to
  reproduce its fixed-point rounding. OpenCV (https://opencv.org) is licensed under the Apache License 2.0 (since 4.5.0),
  Copyright (c) OpenCV team and contributors. Some routines are ports of the corresponding OpenCV functions (for example
  `rotatingCalipers`); OpenCV is not linked.

- crates/ocr/src/det.rs, crates/ocr/src/rec.rs, crates/ocr/src/ctc.rs: the PP-OCR pre and post-processing (DB box extraction,
  box ordering, unclip, CTC decoding), reproduced from PaddleOCR (https://github.com/PaddlePaddle/PaddleOCR), Apache License 2.0,
  Copyright (c) PaddlePaddle Authors.

- crates/pre/ and crates/ocr/, crates/pagina/ (pipeline decisions): ports of the preprocessing and page pipeline of LegereOCR,
  by the same copyright holder, Apache License 2.0.

- crates/pre/src/skew.rs, crates/pagina/src/recorte.rs and crates/pre/src/cv/: use the same OpenCV fixed-point conventions
  (grayscale conversion, `minAreaRect` side lengths and angles) so that results match the reference implementation.

- crates/rutinas/src/epilogo.rs: the rational polynomial approximation of `erf` uses the coefficients published in Eigen
  (https://eigen.tuxfamily.org, MPL 2.0) and XLA/OpenXLA (Apache License 2.0); only the numeric constants are used, no source code.

Rust dependencies of the workspace are not bundled: they are fetched from crates.io according to Cargo.lock, and `cargo deny check
licenses` (deny.toml) accepts only Apache-2.0, Apache-2.0 WITH LLVM-exception, MIT, BSD-2-Clause, Zlib, 0BSD and Unicode-3.0.

The ONNX models (PP-OCR detection and recognition, text-line orientation, UVDoc, layout and table models, and the public models used
by the benchmarks) are NOT part of this repository. They are downloaded by the user and keep the licences of their authors.
