IVALab Python Libraries
Collection of code for computer vision and robotics with specific API.
|
Simple puzzle activity monitor based on specified image regions. More...
Public Member Functions | |
def | __init__ (self, imRegions) |
Constructor for simple puzzle scene activity detector. More... | |
def | measure (self, y) |
def | process (self, x) |
Run entire processing pipeline. More... | |
Static Public Member Functions | |
def | load (fileName, relpath=None) |
Outer method for loading file given as a string (with path). More... | |
def | loadFrom (fptr, relpath="activity.byRegion") |
Inner method for loading internal information from HDF5 file. More... | |
Public Attributes | |
z | |
Simple puzzle activity monitor based on specified image regions.
Purpose of this class is to show how to integrate an activity detector into the puzzle scene monitor in a way compatible with the puzzle scene perceiver. For more specialized processing, create a sub-class.
def __init__ | ( | self, | |
imRegions | |||
) |
Constructor for simple puzzle scene activity detector.
[in] | imRegions | Label-type image. |
|
static |
Outer method for loading file given as a string (with path).
Opens file, preps for loading, invokes loadFrom routine, then closes. Overloaded to invoke coorect loadFrom member function.
[in] | fileName | The full or relative path filename. |
[in] | relpath | The hdf5 (relative) path name to use for loading. Usually class has default, this is to override. |
|
static |
Inner method for loading internal information from HDF5 file.
Load data from given HDF5 pointer. Assumes in root from current file pointer location.
def measure | ( | self, | |
y | |||
) |
@brief Compare signal to expected image region states. @param[in] zsig The 2D pixel coords / 3D pixel coords + depth value.
def process | ( | self, | |
x | |||
) |
Run entire processing pipeline.
The entire pipeline consists of predict, measure, correct, and adapt. At least if there is a measurement. If no measurement, then only predict is executed since there is no measurement to interpret, correct, and adapt with.
z |