IVALab Python Libraries
Collection of code for computer vision and robotics with specific API.
|
Detection calibrator: Possible that not used due to static calibration methods in the Detector classes proper. More...
Public Member Functions | |
def | __init__ (self, detCfg=None, processors=None, detModel=None) |
Constructor for layered puzzle scene detector. More... | |
def | adapt (self) |
Adapt the layer detection models. More... | |
def | correct (self) |
Apply correction process to the individual detectors. More... | |
def | detect (self, I) |
Apply predict, measure, correct process to source image. More... | |
def | emptyDebug (self) |
def | emptyState (self) |
Get and empty state to recover its basic structure. More... | |
def | getDebug (self) |
def | getState (self) |
Get the complete detector state, which involves the states of the individual layer detectors. More... | |
def | info (self) |
def | measure (self, I) |
Apply detection to the source image pass. More... | |
def | predict (self) |
Generate prediction of expected measurement. More... | |
def | process (self, I) |
Apply entire predict to adapt process to source image. More... | |
def | saveConfig (self, outFile) |
def | saveTo (self, fPtr) |
Save the instantiated Detector to given HDF5 file. More... | |
![]() | |
def | loadFrom (fPtr) |
Public Attributes | |
depth | |
glove | |
phase | |
workspace | |
![]() | |
depth | |
glove | |
hand | |
First, perform any specified pre-processing. More... | |
imGlove | |
Package the processed layers started with the glove. More... | |
imPuzzle | |
mask | |
params | |
workspace | |
Additional Inherited Members | |
![]() | |
def | buildFromCfg (theConfig) |
Instantiate from stored configuration file (YAML). More... | |
def | calibrate2config (theStream, outFile) |
def | load (inFile) |
Detection calibrator: Possible that not used due to static calibration methods in the Detector classes proper.
def __init__ | ( | self, | |
detCfg = None , |
|||
processors = None , |
|||
detModel = None |
|||
) |
Constructor for layered puzzle scene detector.
[in] | detCfg | Detector configuration. |
[in] | processors | Image processors for the different layers. |
[in] | detModel | Detection models for the different layers. |
Reimplemented from PuzzleDetectors.
def adapt | ( | self | ) |
Adapt the layer detection models.
This part is tricky as there may be dependencies across the layers in terms of what should be updated and what should not be. Applying simple filtering to establish what pixels should adapt and which ones shouldn't.
Reimplemented from PuzzleDetectors.
def correct | ( | self | ) |
Apply correction process to the individual detectors.
Apply naive correction on a per detector basis. As a layered system, there might be interdependencies that would impact the correction step. Ignoring that for now since it does not immediately come to mind what needs to be done.
Reimplemented from PuzzleDetectors.
def detect | ( | self, | |
I | |||
) |
Apply predict, measure, correct process to source image.
Running detect alone elects not to adapt or update the underlying models. The static model is presumed to be sufficient and applied to the RGBD stream.
[in] | I | Source RGB-D image (structure/dataclass). |
Reimplemented from PuzzleDetectors.
def emptyDebug | ( | self | ) |
Reimplemented from PuzzleDetectors.
def emptyState | ( | self | ) |
Get and empty state to recover its basic structure.
[out] | estate | The empty state. |
Reimplemented from PuzzleDetectors.
def getDebug | ( | self | ) |
Reimplemented from PuzzleDetectors.
def getState | ( | self | ) |
Get the complete detector state, which involves the states of the individual layer detectors.
[out] | state | The detector state for each layer, by layer. |
Reimplemented from PuzzleDetectors.
def info | ( | self | ) |
Reimplemented from PuzzleDetectors.
def measure | ( | self, | |
I | |||
) |
Apply detection to the source image pass.
[in] | I | An RGB-D image (structure/dataclass). |
Reimplemented from PuzzleDetectors.
def predict | ( | self | ) |
Generate prediction of expected measurement.
The detectors are mostly going to be static models, which means that prediction does nothing. Just in case though, the prediction methods are called for them.
Reimplemented from PuzzleDetectors.
def process | ( | self, | |
I | |||
) |
Apply entire predict to adapt process to source image.
[in] | I | Source RGB-D image (structure/dataclass). |
Reimplemented from PuzzleDetectors.
def saveConfig | ( | self, | |
outFile | |||
) |
def saveTo | ( | self, | |
fPtr | |||
) |
Save the instantiated Detector to given HDF5 file.
The save process saves the necessary information to re-instantiate a PuzzleDetectors class object.
[in] | fPtr | An HDF5 file point. |
Reimplemented from PuzzleDetectors.
depth |
glove |
phase |
workspace |