Menu
  • HOME
  • TAGS

Morphological text analysis with Python using *.dic *.aff

python,hunspell,morphological-analysis

As said before hunspell is the library you require. Examples from https://code.google.com/p/pyhunspell/wiki/UsingPyHunspell: import hunspell hobj = hunspell.HunSpell('/usr/share/myspell/en_US.dic', '/usr/share/myspell/en_US.aff') hobj.spell('spookie') >>>>False hobj.suggest('spookie') >>>>['spookier', 'spookiness', 'spooky', 'spook', 'spoonbill'] hobj.spell('spooky') >>>>True hobj.analyze('linked') >>>>[' st:link fl:D'] hobj.stem('linked') >>>>['link'] ...

using python to pick out morphology of different pieces on an object in an image

python,image-processing,morphological-analysis,mathematical-morphology,astropy

If i have understood the problem right you would like to keep the blobs while removing the long strands that pass around or through the object. The simplest test i would suggest is using a simple morphological opening (erode and then dilate) that has a radius larger than the thickness...

ios making Masked BlurView with Stroke

ios,gpuimage,morphological-analysis

You can use "CAShapeLayer" to clip (or mask) the blur image. For this you need a CGPath of the masking (or clipping) shape. CAShapeLayer *pathLayer = [CAShapeLayer layer]; pathLayer.frame=CGRectMake(-imageView.frame.origin.x, -imageView.frame.origin.y, imageView.frame.size.width, imageView.frame.size.height); pathLayer.path = yourClippingPath.CGPath; pathLayer.strokeColor = [[UIColor blackColor] CGColor]; pathLayer.fillColor = [[UIColor clearColor] CGColor]; pathLayer.lineWidth = 6.0; pathLayer.lineJoin =...