IVALab Python Libraries
Collection of code for computer vision and robotics with specific API.
Classes | Functions
Surveillance.layers.BlackWorkMat Namespace Reference

Detector for the black mat (planar) workspace. More...

Classes

class  Calibrator
 
class  CfgDetector
 Configuration instance for glove tracking detector. More...
 
class  CfgPuzzlePerceiver
 Configuration instance for glove tracking perceiver. More...
 
class  Detector
 
class  InstPuzzlePerceiver
 Class for collecting visual processing methods needed by the Puzzle pieces perceiver. More...
 
class  PuzzlePerceiver
 

Functions

def defaultBuildCfg ()
 Instantiate a typical builder configuration for black mat puzzle perceiver. More...
 
def defaultBuildCfg_DetectorLoad (detfile)
 

Detailed Description

Detector for the black mat (planar) workspace.

Follows the structure of the Puzzle Scene perceiver, which packages everything into one file since python has individual import facilities, and placing in one uniform location simplifies things. However, the black mat layer part is much simpler as it only performs the color segmentation and does not include depth information. The depth information usually gets coupled with the black mat and the red glove to differentiate the two, and the robot arm. This height based depth check is integrated with the Puzzle Scene perceiver.

Code here is copied from the Puzzle Scene background detection class. The reason that they were all mashed together in Puzzle Scene is to take advantage of common image processing and the depth layer information, and to not separate things such that efforts to reduce repeated computation make the data passing too complex.
Changes should be mirrored across these two files.

If other visual distractors can be in the scene, then this should be run or used only when those distractors are absent. In a sense, the black mat processing only occurs when there is nothing but the black mat in the scene.

What should be contained in this file:

  1. Black mat layer detector from RGBD input.
  2. Multi-centroid track pointer for visualizing objects on mat.
  3. A calibration scheme for the entire process with saving to YAML and HDF5 files.

This single file replaces/supercedes the existing base_bg file in this directory (and by extension possibly others, like tabletop_seg since that only appears to use the OpenCV GMM method).

Note
Would be interesting to compare the SGM and GMM approaches. Maybe try later.

Function Documentation

◆ defaultBuildCfg()

def Surveillance.layers.BlackWorkMat.defaultBuildCfg ( )

Instantiate a typical builder configuration for black mat puzzle perceiver.

Only the detector matters.

Returns
A perceiver build configuration.

◆ defaultBuildCfg_DetectorLoad()

def Surveillance.layers.BlackWorkMat.defaultBuildCfg_DetectorLoad (   detfile)