Difficulty in detected ellipses in image

asked 2018-07-12 01:30:55 -0500

AF gravatar image

I have image with a lot of tomatoes. I need find tomatoes as much as possible . The problem is that after executed some operation i got this edge map:

edge map

So i have a lot of edge points, and where try run Hough ellipses transform, the process run forever(....).

I also try connected components and distance transform and got this: labeled image

After this i findcontour and executed fitEllipse. The results were very bad.

What can I do next? maybe different approach?

edit retag flag offensive close merge delete