# Technical Specifications: Spatial Image Enhancer Pro ## Backend Architecture - **Framework:** Django REST Framework (DRF). - **Core Libraries:** OpenCV (image I/O), NumPy (matrix math), Redis (message broker). - **Processing Logic:** Images are received as Base64/Multipart, processed via NumPy vectorization, and returned for real-time display. ## Frontend Architecture - **Framework:** React.js (SPA). - **State Management:** Local state for real-time slider values (Gamma, Mask Size, Thresholds). - **Visualization:** Dual-pane view (Original vs. Processed) with live Histogram charts using `Recharts`. - **UI Logic:** Debounced API calls (300ms) to ensure smooth user interaction during slider movement. ## Deployment Stack (Dockerized) - **Orchestration:** `docker-compose` for multi-container coordination. - **Web Server/Proxy:** **Caddy** for automatic SSL retrieval and reverse proxying. - **Async Workers:** **Celery** for processing large batches or image averaging sequences [7, 25, 26]. - **Storage:** Short-term frame buffers for active processing sessions [27].