Class detects the state of the puzzle solution region and in terms area signal.
More...
|
| 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...
|
| |
| def | __init__ (self, imRegions=None, processor=None) |
| | Constructor for imageRegions class. More...
|
| |
| def | addRegionByMask (self, regMask) |
| | Provide a masked region to use for defining a new state. More...
|
| |
| def | addRegionByPolygon (self, regPoly, imsize=None) |
| | Add a region by specifying the polygon boundary. More...
|
| |
| def | buildFromPolygons (imsize, thePolygons) |
| | Construct an imageRegions instance with provided polygon regions. More...
|
| |
| def | calibrateFromPolygonMouseInputOverImageRGB (theImage, theFile, initRegions=None) |
| | Calibrate a region detector by requesting closed polygon input from user. More...
|
| |
| def | emptyRegions (self) |
| | Delete regions image if exists and return to uninitialized state. More...
|
| |
| def | initRegions (self, imsize) |
| | Initialize regions by providing target image dimensions. More...
|
| |
| def | printState (self) |
| | Print current region detection state (as string). More...
|
| |
| def | regions_close_cv (self, window_name="Activity Regions") |
| | Close the region image window. More...
|
| |
| def | regions_display_cv (self, ratio=1, window_name="Activity Regions") |
| | Display the region image to see labels. More...
|
| |
| def | saveTo (self, fPtr, relpath="activity.byRegion") |
| | Empty method for saving internal information to HDF5 file. More...
|
| |
| def | setRegions (self, imRegions) |
| | Provide a label image where the pixel label indicates the raw activity label. More...
|
| |
| def | specifyPolyRegionsFromImageRGB (self, theImage, doClear=False) |
| | Given an image, get user input as polygons that define the different regions. More...
|
| |
| def | specifyRegionsFromMask (self, theMask, doClear=False) |
| | Given an image, get user input as point clicks that select mask regions. More...
|
| |
| def | stringState (self) |
| | Convert current region detection state to string. More...
|
| |
| def | wipeRegions (self) |
| | Clear the regions image. More...
|
| |
| def | adapt (self) |
| | Adapt detection model, if implemented. More...
|
| |
| def | correct (self) |
| | Correct detection state estimate, if implemented. More...
|
| |
| def | detect (self, x) |
| | Perform detection only, which basically keeps the model static if it would normally update. More...
|
| |
| def | getState (self) |
| | Get the current detection state estimate. More...
|
| |
| def | predict (self) |
| | Predict detection state outcome, if implemented. More...
|
| |
| def | saveTo (self, fPtr) |
| | Save configuration or other data to HDF5 file. More...
|
| |
| def | __init__ (self) |
| | Instantiate a detector Base activity class object. More...
|
| |
| def | emptyDebug (self) |
| | Return empty debug state information. More...
|
| |
| def | emptyState (self) |
| | Return empty state. More...
|
| |
| def | getDebug (self) |
| | Return current/latest debug state information. More...
|
| |
| def | save (self, fileName) |
| | Outer method for saving to a file given as a string. More...
|
| |
Class detects the state of the puzzle solution region and in terms area signal.
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.
Reimplemented from PuzzleActivities.