- Implemented OCR functionality using pytesseract for image and PDF text extraction. - Added Background Removal service using rembg for image processing. - Developed PDF Editor service for applying text annotations to PDF files. - Created corresponding API routes for OCR, Background Removal, and PDF Editor. - Added frontend components for OCR and Background Removal tools. - Integrated feature flagging for new tools, ensuring they are disabled by default. - Implemented comprehensive unit tests for OCR service, PDF editor, and background removal. - Updated documentation to reflect new features and usage instructions. - Added translations for new features in English, Arabic, and French.
18 lines
614 B
Python
18 lines
614 B
Python
"""Celery worker entry point."""
|
|
from app import create_app
|
|
from app.extensions import celery
|
|
|
|
app = create_app()
|
|
|
|
# Import all tasks so Celery discovers them
|
|
import app.tasks.convert_tasks # noqa: F401
|
|
import app.tasks.compress_tasks # noqa: F401
|
|
import app.tasks.image_tasks # noqa: F401
|
|
import app.tasks.video_tasks # noqa: F401
|
|
import app.tasks.pdf_tools_tasks # noqa: F401
|
|
import app.tasks.flowchart_tasks # noqa: F401
|
|
import app.tasks.maintenance_tasks # noqa: F401
|
|
import app.tasks.ocr_tasks # noqa: F401
|
|
import app.tasks.removebg_tasks # noqa: F401
|
|
import app.tasks.pdf_editor_tasks # noqa: F401
|