Node.js find blob on image using connected components


I am trying to x y coordinates of blobs in an image.

Following suggestions from this question:<a href="https://stackoverflow.com/questions/14377463/connected-component-labeling-with-imagemagick" rel="nofollow">Connected-component labeling with ImageMagick</a>

I have this piece of code.

The end result correctly highlights the blobs.

However, I am unable to get the "verbose" output programmatically. I need the x y coordinates. AM I missing something?

gm('difference.png') .out('-colorspace') .out('gray') .out('-threshold') .out('90%') .out('-define') .out('connected-components:verbose=true') .out('-connected-components') .out('4') .out('-auto-level') .write("out.png", function(err){ console.log(err); //how to get the verbose output about the blob positions?? });`enter code here`


I found the way to get the output from the gm operations

gm(imagePath) .out('-define') .out('connected-components:verbose=true') .out('-connected-components') .out('4') .out('-auto-level') .write('out.png', function(err, stdout){ //details in stdout });


  • Call to native DLL fails from a .NET Windows service
  • problems occurring with fgets when a program is executed from command prompt
  • Regex for country code
  • Javascript regex. Need to extract value from a SVG string
  • Regex: get every number that doesn't has an other number before or after itself
  • Implementing search&highlight - how can I avoid delays when highlight is slow?
  • How to get Getopt::Long + pod2usage working?
  • Starting a syn region with a keyword
  • No server chosen by WritableServerSelector from cluster
  • Specify datetime format for WCF Data Service
  • How can I export a gbm model in R?
  • Controlling volume of running applications in Mac OS X via Objective-C
  • Entity Framework Core 2.0 add-migration not generating anything
  • iOS Validation failed -> Bundle is invalid (Xcode 6.2, iOS 8.2)
  • MultiLevel ExpandableListView not highlighting properly
  • Create a link to a web page that runs a Javascript function on the page
  • Java color detection
  • Multicolored edittext hint
  • Redux Form - Not able to type anything in input
  • Unable to install Git-core+svn by MacPorts
  • Unable to decode certificate at client new X509Certificate2()
  • zope_i18n_compile_mo_files doesn't work on a Zeo configuration
  • OOP Javascript - Is “get property” method necessary?
  • How can I sort a a table with VBA with given text condition?
  • The plugin 'org.apache.maven.plugins:maven-jboss-as-plugin' does not exist or no valid ver
  • Scrapy recursive link crawler
  • All Classes Conforming to Protocol Inherit Default Implementation
  • Launch Runnable Jar from Web Start
  • Deserializing XML into class C#
  • Function pointer “assignment from incompatible pointer type” only when using vararg ellipsis
  • php design question - will a Helper help here?
  • AngularJs get employee from factory
  • Why joiner is not used after Sequence generator or Update statergy
  • Exception on Android 4.0 `android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode)`
  • File not found error Google Drive API
  • IndexOutOfRangeException on multidimensional array despite using GetLength check
  • Authorize attributes not working in MVC 4
  • python draw pie shapes with colour filled
  • Is it possible to post an object from jquery to bottle.py?
  • How to Embed XSL into XML