Add OCR, Background Removal, and PDF Editor features with tests
- 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.
This commit is contained in:
@@ -90,6 +90,9 @@ def create_app(config_name=None):
|
||||
from app.routes.flowchart import flowchart_bp
|
||||
from app.routes.v1.tools import v1_bp
|
||||
from app.routes.config import config_bp
|
||||
from app.routes.ocr import ocr_bp
|
||||
from app.routes.removebg import removebg_bp
|
||||
from app.routes.pdf_editor import pdf_editor_bp
|
||||
|
||||
app.register_blueprint(health_bp, url_prefix="/api")
|
||||
app.register_blueprint(auth_bp, url_prefix="/api/auth")
|
||||
@@ -106,5 +109,8 @@ def create_app(config_name=None):
|
||||
app.register_blueprint(download_bp, url_prefix="/api/download")
|
||||
app.register_blueprint(v1_bp, url_prefix="/api/v1")
|
||||
app.register_blueprint(config_bp, url_prefix="/api/config")
|
||||
app.register_blueprint(ocr_bp, url_prefix="/api/ocr")
|
||||
app.register_blueprint(removebg_bp, url_prefix="/api/remove-bg")
|
||||
app.register_blueprint(pdf_editor_bp, url_prefix="/api/pdf-editor")
|
||||
|
||||
return app
|
||||
|
||||
Reference in New Issue
Block a user