My stuff

  • My Workflows

  • Liked Workflows

  • Following Workflows

Go to OpenArt main site
Upload workflow

Pixelated Akihabara Walk with Object Detection

5.0

0 reviews
2
882
115
3
Description

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...

Author

33
64.1K
960
332.9K
    db9f3512c55a4c8f88fac5d8361a785f.png (5.9 kB)

No reviews yet

  • - latest (7 months ago)

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)

ComfyUI Essentials

  • - 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)

Checkpoints (0)

LoRAs (0)