Hi,
I have previously been using the -connect components element of ImageMagick simply by calling magick in the command prompt. I'm using it to identify ~400 dots. Usually there are a few error objects (not the dots), I have to weed these out manually, and then I sort them manually based on the relative position of the dots. This has become rather tedious so I'm trying to make this all automated by using Wand in python.
I have been looking on their website for an analogous way to detect objects in an image without any luck. Could anyone provide any guidance as to a possible way to identify the centroid of objects using Wand?
Thanks!
Wand -connected components?
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Wand -connected components?
I do not know if Python Wand has included -connected-components processing. But OpenCV has a similar functionality that you can call via Python. Or you can use subprocess in Python to make a call to ImageMagick or a bash shell script that calls imagemagick. Or use PythonMagick to do the connected components, provided it has been upgrade to include connected components.