r/imageprocessing • u/muaz65 • Aug 19 '19
Detecting Ellipse/Circle/Arc from a soccer stream frames
I am currently working on soccer stream translation to a 2D reference plane. Segmentation approach for my soccer field translation is to detect the circle in the frame and according to the radius of the original circle i ll' translate the distance of 1 px to meters. I have segmented the lines using LSD(Line Segment Detector) approach. Although LSD is segmenting each line in the frame but it makes LSD OUTPUT. In order to fill the empty spaces i dilated the output image with 5x5 kernel and 10x10 kernel. I am currently trying to detect the Ellipse/circle in the image so that i can translate 1 pixel distance to meters and track the player on a reference (120,90) 2D Cartesian plane. Any method that can detect this circle or curve in the frame will help. Note: Issue with contours is that, due to dilation the contours is unable to detect the ellipse and on applying canny the ellipse once again gets missing points. Issue with Hough Circle & Ellipse Both not working using scikit-image code ref.
View all comments
Show parent comment
2
u/srinath2468 Aug 19 '19 edited Aug 19 '19
This snippet of code should find the ball You still have to do a few things for a better visual result:
Link to test_image:
https://pasteboard.co/ItnZNIM.png