🧠 Concept
Camera-To-ComfyUI captures a live webcam feed in Processing, sends frames to ComfyUI via REST API, and displays the generated output beside the original feed — creating a feedback loop of live AI-driven image generation.
🎨 Features
- Real-time camera capture with Processing’s Video library
- Live connection to ComfyUI API on
http://127.0.0.1:8000 - Continuous or single-frame generation modes
- Side-by-side display of live and AI-generated frames
- Keyboard controls for camera, saving, and automation loops
- Cross-platform Processing source and compiled Windows app
▶️ How to Run
Option 1: Run in Processing
- Open
CameraAI.pdein Processing 4.x - Ensure ComfyUI API is active at
http://127.0.0.1:8000 - Load the workflow
CameraToComfy.jsonfrom ComfyUI_Workflow folder - Press Run
Option 2: Run the exported Windows app
- Download and unzip the build below
- Launch the executable inside
windows-amd64 - Ensure ComfyUI API is running locally
🧩 ComfyUI Workflow
Import the provided workflow:
CameraToComfy.json.
Open in ComfyUI → File → Load, verify nodes and checkpoints, and ensure the
server runs with --listen enabled.