[Python] Ball tracking with Hough transformation

Discussão em 'Python' iniciado por Stack, Junho 13, 2025.

  1. Stack

    Stack Membro Participativo

    I'm trying to track a small, fast-moving ping pong ball with OpenCV in Python. I'm using a Hough transformation right now, what are the best parameters? Also, is a Hough the best option or something such as an elliptical transform?

    Here is my current function:

    circles= cv.HoughCircles(
    blur, cv.HOUGH_GRADIENT, 1.2, 640,
    param1=100, param2=20, minRadius=10,
    maxRadius=40
    )

    Continue reading...

Compartilhe esta Página