arthew0

← back

Hough Circles

Hough Circles

cv::HoughCircles is an OpenCV function that detects circles in an image using the Hough Circle Transform (based on the gradient method).

Download TouchDesigner version on my Patreon

It is fast and quite reliable when edge detection is clean, but it is very sensitive to parameter tuning:

ScriptOP using TOP texture as input and output lines coordinates as CHOP:

A Script OP receives any TOP texture — a camera, video file, or rendered image — converts it to grayscale, runs cv::HoughCircles on each frame, and outputs the center coordinates and radius of every detected circle as CHOP channels. From there the data can drive instancing, geometry, or sound: detected circles in the real world become control signals for a generative system.

Use cases

Video