Accessor Functions Requiring HUMANS

#python
self.subscription.subscribe(playmotion.SERVICE_HUMANS)

For configuration parameters available within Calibrate:
    >>see Humans Service Configuration.
For code snippets:
    >>see Blob Labeling / GetHumans

struct VisionInput::humanModel
this structure contains the following members:
 - CvPoint leftHand: the blob's left-most foreground pixel in vision space
 - CvPoint rightHand: the blob's right-most pixel in vision space
 - CvPoint head: the center of the top of the blob's bounding box in vision space
 - CvPoint centroid: the weighted center of the blob in vision space, with white pixels counted as 1, black as 0

vector& VisionInput::getHumans()
Returns a list of segmented blobs with area greater than labelSizeThreshold. Each such blob is considered a "human".

vector VisionInput::getCentroids()
Returns a list of weighted centers of blobs in vision space, with white pixels counted as 1, black as 0. This is a shortcut for getHumans() followed by accessing .centroid.

vector VisionInput::getTopOfBlobs()
Returns a list of tops of blobs' bounding boxes in vision space. This is a shortcut for getHumans() followed by accessing .head.

vector VisionInput::getHands()
Returns an interleaved list of blobs' leftmost and rightmost pixels in vision space. This is a shortcut for getHumans() followed by accessing .leftHand and .rightHand. NOTE: for a given VisionInput::update(), this list will be twice as long as all other SERVICE_HUMANS lists.

See also: