IVALab Python Libraries
Collection of code for computer vision and robotics with specific API.
|
Perceiver based on glove and work scene/mat detection models. More...
Public Member Functions | |
def | __init__ (self, perCfg=None, perInst=None) |
Constructor for a PuzzlePerceiver. More... | |
def | adapt (self) |
Adapt parts of the process based on measurements and corrections. More... | |
def | correct (self) |
Correct the estimated state based on measured and predicted. More... | |
def | detect (self) |
def | display_cv (self, I, ratio=None, window_name="puzzle pieces") |
def | emptyDebug (self) |
def | emptyState (self) |
Return empty puzzle scene state information. More... | |
def | getDebugState (self) |
def | getState (self) |
Get puzzle scene state information. More... | |
def | measure (self, I) |
Recover track point or track frame based on detector + trackPointer output. More... | |
def | predict (self) |
Predict next measurement, if applicable. More... | |
def | process (self, I) |
Run the tracking pipeline for one step/image measurement. More... | |
![]() | |
def | __init__ (self, theParams, theDetector, theTracker, trackFilter) |
Constructor for the Perceiver class. More... | |
def | displayDebug (self, fh, dbState) |
Display the debug state of the Perceiver. More... | |
def | displayState (self, dState=None) |
Display the current state of the Perceiver. More... | |
def | free (self) |
def | get (self, fname) |
Get the state or parameters of the tracker. More... | |
def | info (self) |
Return the information structure used for saving or otherwise determining the tracker setup for reproducibility. More... | |
def | set (self, fname, fval) |
Set the state or parameters of the rigid body tracker. More... | |
def | setState (self, nstate) |
Sets the state of the tracker. More... | |
Public Attributes | |
haveObs | |
haveRun | |
haveState | |
tMeas | |
![]() | |
detector | |
The detector instance to use. More... | |
filter | |
The track filter to use. More... | |
haveObs | |
Was an observation measured? - e.g. More... | |
haveRun | |
Has not been run before. More... | |
haveState | |
Do we have a state estimate? - e.g. More... | |
I | |
Image passed for processing. More... | |
params | |
Perceiver runtime parameters. More... | |
tMeas | |
The last measured track state of the target. More... | |
tPts | |
Track points. More... | |
tracker | |
The track pointer to use. More... | |
Additional Inherited Members | |
![]() | |
def | displayFull (cstate, dispArgs) |
Fill rigid body display routine. More... | |
def | displaySimple (cstate, dispArgs) |
Basic rigid body display routine. More... | |
Perceiver based on glove and work scene/mat detection models.
Usually the detectors will ignore the robot arm and even parts of the human arm. They act as nusiance elements to the perceiver and subsequent processing, which should be cognizant of that fact.
def __init__ | ( | self, | |
perCfg = None , |
|||
perInst = None |
|||
) |
Constructor for a PuzzlePerceiver.
[in] | perCfg | Perceiver configuration. |
[in] | perInst | Perceiver component instances, if already created. |
def adapt | ( | self | ) |
Adapt parts of the process based on measurements and corrections.
Reimplemented from Perceiver.
def correct | ( | self | ) |
Correct the estimated state based on measured and predicted.
Reimplemented from Perceiver.
def detect | ( | self | ) |
def display_cv | ( | self, | |
I, | |||
ratio = None , |
|||
window_name = "puzzle pieces" |
|||
) |
def emptyDebug | ( | self | ) |
def emptyState | ( | self | ) |
Return empty puzzle scene state information.
Reimplemented from Perceiver.
def getDebugState | ( | self | ) |
def getState | ( | self | ) |
Get puzzle scene state information.
For the puzzle state, we've got the detector information, the hand/glove track state, and the puzzle piece track states. Let's package them all up as best as possible.
Reimplemented from Perceiver.
def measure | ( | self, | |
I | |||
) |
Recover track point or track frame based on detector + trackPointer output.
[in] | I | Image for generating perceived measurement. |
Reimplemented from Perceiver.
def predict | ( | self | ) |
Predict next measurement, if applicable.
Reimplemented from Perceiver.
def process | ( | self, | |
I | |||
) |
Run the tracking pipeline for one step/image measurement.
[in] | I | The image to process. |
Reimplemented from Perceiver.
haveObs |
haveRun |
haveState |
tMeas |