How napat1203/image-processing works
Image-Processing is a Flask image-editing application with browser-based image and webcam workflows, account/admin features, and AI-assisted generation and editing. The visible workflow sends an uploaded or captured image from the browser to Flask, which dispatches supported image jobs and returns a result; recoloring and inpainting can use a selected point. The README provides no further product detail. Edges reflect shown calls/imports or the frontend’s visible API requests; other route wiring and the text-to-image path are not inferred from incomplete excerpts.
Main entry points: process.py Image job dispatch · app.py Flask routes · inpaint.py Image inpainting · forge_client.py Forge client
Components 13
Browser experience
- Image and webcam UI
frontend/static/js/script.js - Application pages
frontend/templates
Application and accounts
- Flask routes
backend/app.py - Account management
backend/app.py
Image processing
- Image job dispatch
ai/process.py - Region recoloring
ai/segment.py - Background removal
ai/remove_background.py - Pose generation
ai/controlnet.py - Image inpainting
ai/inpaint.py
Persistence and AI service
- Forge client
ai/forge_client.py - User database
backend/db.py
Other components
- User
- Forge API
Connections 12
- User → Image and webcam UI: interacts
frontend/static/js/script.js - Image and webcam UI → Flask routes: posts images
frontend/static/js/script.js - Flask routes → Image job dispatch: dispatches jobs
backend/app.py - Flask routes → User database: queries accounts
backend/app.py - Image job dispatch → Region recoloring: calls for recoloring
ai/process.py - Image job dispatch → Background removal: calls for removal
ai/process.py - Image job dispatch → Pose generation: calls for pose
ai/process.py - Image job dispatch → Image inpainting: calls for inpainting
ai/process.py - Image inpainting → Region recoloring: uses segmentation
ai/inpaint.py - Pose generation → Forge client: submits generation
ai/controlnet.py - Image inpainting → Forge client: submits inpainting
ai/inpaint.py - Forge client → Forge API: sends HTTP request
ai/forge_client.py