Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
OpenCV, segment image
#2
You want to find circles?
You should probably start with a Hough method.
Basically you create an edge image; then every point in the edge image votes for all points a given radius away (all possible circles it is a member of).  After all edge points have voted you look for local maxima.  Vaild circles will have been voted for by multiple points letting you pinpoint circles.

Implementing it yourself is an absolute pain in the ass (trust me), but opencv comes with both a Canny edge detector and a Hough circles implementation.

This tutorial should get you started:
http://opencv-python-tutroals.readthedoc...rcles.html
Reply


Messages In This Thread
OpenCV, segment image - by Standard_user - Jan-01-2017, 02:19 PM
RE: OpenCV, segment image - by Mekire - Jan-01-2017, 06:37 PM
RE: OpenCV, segment image - by Standard_user - Jan-01-2017, 06:53 PM
RE: OpenCV, segment image - by Mekire - Jan-01-2017, 07:02 PM
RE: OpenCV, segment image - by Standard_user - Jan-01-2017, 07:15 PM
RE: OpenCV, segment image - by Mekire - Jan-01-2017, 08:07 PM
RE: OpenCV, segment image - by Standard_user - Jan-01-2017, 08:29 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Using OpenCV and image path is invalid AudunNilsen 5 629 Mar-18-2024, 05:28 PM
Last Post: snippsat
  Python code a Max7219/7221 7 segment driver Aggie64 11 3,249 Dec-01-2022, 02:24 AM
Last Post: Larz60+
  How to extract MSS (maximum size segment) from a pcap file ? salwa17 0 1,719 Jun-29-2020, 09:06 AM
Last Post: salwa17
  how to detect horizontal dotted lines in an image using OpenCV pframe 0 4,921 Apr-15-2020, 08:53 PM
Last Post: pframe
  Display the bottom image of the line and cut the upper image using Opencv jenkins43 1 3,288 May-27-2019, 06:56 AM
Last Post: heiner55

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020