Bases: SimpleCV.Segmentation.SegmentationBase.SegmentationBase
Perform color segmentation based on a color model or color provided. This class uses ColorModel.py to create a color model.
Bases: SimpleCV.Segmentation.SegmentationBase.SegmentationBase
This method will do image segmentation by looking at the difference between two frames.
grayOnly - use only gray images. threshold - The value at which we consider the color difference to be significant enough to be foreground imagery.
The general usage is
>>> segmentor = DiffSegmentation()
>>> cam = Camera()
>>> while(1):
>>> segmentor.addImage(cam.getImage())
>>> if(segmentor.isReady()):
>>> img = segmentor.getSegmentedImage()
Bases: SimpleCV.Segmentation.SegmentationBase.SegmentationBase
RunningSegmentation performs segmentation using a running background model. This model uses an accumulator which performs a running average of previous frames where: accumulator = ((1-alpha)input_image)+((alpha)accumulator)
Bases: object
Right now I am going to keep this class as brain dead and single threaded as possible just so I can get the hang of abc in python. The idea behind a segmentation object is that you pass it frames, it does some sort of operations and you get a foreground / background segemnted image. Eventually I would like these processes to by asynchronous and multithreaded so that they can raise specific image processing events.