IVALab Python Libraries
Collection of code for computer vision and robotics with specific API.
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
PuzzleActivities Class Reference

Simple puzzle activity monitor based on specified image regions. More...

Inheritance diagram for PuzzleActivities:
Inheritance graph
[legend]
Collaboration diagram for PuzzleActivities:
Collaboration graph
[legend]

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  imRegions 
)

Constructor for simple puzzle scene activity detector.

Parameters
[in]imRegionsLabel-type image.

Member Function Documentation

◆ load()

def load (   fileName,
  relpath = None 
)
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.

Parameters
[in]fileNameThe full or relative path filename.
[in]relpathThe hdf5 (relative) path name to use for loading. Usually class has default, this is to override.

◆ loadFrom()

def loadFrom (   fptr,
  relpath = "activity.byRegion" 
)
static

Inner method for loading internal information from HDF5 file.

Load data from given HDF5 pointer. Assumes in root from current file pointer location.

◆ measure()

def measure (   self,
  y 
)
@brief  Compare signal to expected image region states.

@param[in]  zsig  The 2D pixel coords / 3D pixel coords + depth value.

◆ process()

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.

Member Data Documentation

◆ z

z

The documentation for this class was generated from the following file: