Pixelated Akihabara Walk with Object Detection
5.0
0 reviewsDescription
What's this?
I came across this super cool object detection dithering effect posted on Reddit (using TouchDesigner): Object detection dithering effect
Inspired by that, I tried recreating a similar effect in ComfyUI.
While it doesn’t come close to TouchDesigner in terms of performance or flexibility, I hope this serves as a fun demonstration of what’s possible in ComfyUI! ✨
Workflow
- 🟥 Webcam Capture node grabs visuals from Google Street View.
- 🟩 YOLO-World detects specific objects — in this case, human and car — and outputs bounding boxes.
- 🟪 Pixelation Process:
- Background is reduced to a limited color palette.
- Detected objects are rendered in grayscale using a mask.
- 🟨 Bounding Boxes and Labels as Mask:
- The image output by the YOLO node includes the background, bounding boxes, and labels all together, which means you can’t isolate just the boxes and labels directly.
- To work around this:
- Use Image Blend with the "difference" mode to subtract the input image from the YOLO output. Matching areas turn black; differences remain visible. As a result, the only visible elements are the bounding boxes and labels.
- Convert this result into a mask using ImageColorToMask.
- This technique unfortunately requires running two identical YOLO nodes — one for processing, and one just to extract the overlay — which is admittedly wasteful but necessary for now.
Discussion
(No comments yet)
Loading...
Resources (1)
Reviews
No reviews yet
Versions (1)
- latest (7 months ago)
Node Details
Primitive Nodes (4)
ComfyUIPixelate (2)
MaskPreview (1)
PrimitiveString (1)
Custom Nodes (18)
ComfyUI
- ImageColorToMask (1)
- InvertMask (1)
- ImageBlend (1)
- PreviewImage (2)
- ImageScale (2)
- ImageCompositeMasked (2)
- LoadImage (1)
- GetImageSize+ (1)
- BboxDetectorCombined_v2 (1)
- ToBinaryMask (1)
- WebcamCapture (1)
- ESAM_ModelLoader_Zho (1)
- Yoloworld_ModelLoader_Zho (1)
- Yoloworld_ESAM_DetectorProvider_Zho (1)
- Yoloworld_ESAM_Zho (1)
Model Details
Checkpoints (0)
LoRAs (0)