Skip to content

Conversation

pepdamar
Copy link
Owner

@pepdamar pepdamar commented Dec 4, 2025

Estos son los cambios en los que trabajamos en paralelo el miercoles y jueves. Reescribe el metodo anterior que subió Adrián y tenemos los metodos rectificar2 y rectificar3 que calculan los centroides de maneras distintas y lo mismo con las distancias. Bajaos la rama y me decís si lo que he subido es lo que vimos ayer o si me falta algo por subir

…text rendering quality; add rectificar2.py for text rectification with curvature detection and rotation adjustments.
- Implemented a comprehensive text rectification script (`rectificar.py`) that handles both straight and curved text with anti-cropping measures.
- Introduced a simple standalone script (`rectificar_simple.py`) for basic text rectification using OpenCV and NumPy.
- Added visualization capabilities to display alignment of centroids in rectified images (`test_alineacion.py`).
- Created batch processing tests for various synthetic images to evaluate rectification performance (`test_batch.py`).
- Included new output images and visualizations for better analysis of rectification results.
- Updated existing functions to improve readability and maintainability, including enhanced error handling and logging.
- Implemented `rectificar3.py` for advanced text rectification handling curved and straight text.
- Created `rectificar_simple.py` for a simpler text rectification approach.
- Removed obsolete test image `test_espaciado.png`.
- Added test suite with `__init__.py`, `test_alineacion.py` for visualizing alignment of centroids, and `test_batch.py` for batch processing multiple test cases.
- Enhanced output visualization and quality metrics reporting in tests.
@pepdamar pepdamar added the enhancement New feature or request label Dec 4, 2025
@pepdamar pepdamar self-assigned this Dec 4, 2025
@pepdamar
Copy link
Owner Author

pepdamar commented Dec 4, 2025

No os preocupeis porque aparezcan una barbaridad de cambios porque he cambiado las carpetas de sitio y aparecen como si los hubiera borrado y escrito de nuevo.

@adrgonlil
Copy link
Collaborator

LGTM

Copy link
Collaborator

@adrgonlil adrgonlil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@adrgonlil adrgonlil merged commit 166e9e3 into main Dec 4, 2025
@adrgonlil adrgonlil deleted the feature/prueba-nuevo-metodo-rectificacion-generacion branch December 4, 2025 19:30
Sign in to join this conversation on GitHub.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants