|
| def | __init__ (self, cfgParams=None) |
| | Constructor for the puzzle Calibrate class. More...
|
| |
| def | addPuzzlePiece (self, theImage, theMask) |
| |
| def | getImage (self) |
| |
| def | getLabels (self) |
| |
| def | process (self, I=None, L=None) |
| |
| def | save (self, fileName) |
| | Outer method for saving calibrated puzzle solution to file. More...
|
| |
| def | setImage (self, theImage) |
| |
| def | setLabels (self, theLabels) |
| |
| def | start (self) |
| |
| def | __init__ (self, *argv) |
| | Constructor for puzzle board. More...
|
| |
| def | addPiece (self, piece, ORIGINAL_ID=False) |
| | Add puzzle piece instance to the board. More...
|
| |
| def | addPieceFromImageAndMask (self, theImage, theMask, cLoc=None) |
| | Given a mask and an image of same base dimensions, use to instantiate a puzzle piece template. More...
|
| |
| def | addPieces (self, pieces) |
| | Add puzzle piece to board. More...
|
| |
| def | boundingBox (self) |
| | Iterate through pieces to get tight bounding box. More...
|
| |
| def | clear (self) |
| |
| def | display_cv (self, theImage=None, fh=None, ID_DISPLAY=False, CONTOUR_DISPLAY=False, BOUNDING_BOX=False, window_name='Puzzle') |
| | Display the puzzle board as an image using matplot library. More...
|
| |
| def | display_mp (self, theImage=None, ax=None, fh=None, ID_DISPLAY=False, CONTOUR_DISPLAY=False, BOUNDING_BOX=False) |
| | Display the puzzle board as an image using matplot library. More...
|
| |
| def | extents (self) |
| | Iterate through puzzle pieces to get tight bounding box extents of the board. More...
|
| |
| def | fromImageAndLabels (self, theImage, theLabels) |
| |
| Template | getPiece (self, id) |
| | Get puzzle piece instance based on id. More...
|
| |
| def | markMissing (self, indSetMeasured) |
| | Given set of indices to measured pieces, mark remaining as unmeasured. More...
|
| |
| def | offset (self, dr) |
| | Offset the location of the entire puzzle in the board. More...
|
| |
| def | pieceLocations (self, isCenter=False) |
| | Returns list/array of puzzle piece locations. More...
|
| |
| def | relabel (self, newLabels, idContinue) |
| | Relabel the puzzle piece IDs in the board using new label reassignments and adjust IDs for those without reassignment. More...
|
| |
| def | rmPiece (self, id) |
| |
| def | size (self) |
| | Number of pieces on the board. More...
|
| |
| def | testAdjacent (self, id_A, id_B, tauAdj) |
| | Check if two puzzle pieces are adjacent or not. More...
|
| |
| def | toImage (self, theImage=None, ID_DISPLAY=False, COLOR=(0, 0, 0), ID_COLOR=(255, 255, 255), CONTOUR_DISPLAY=True, BOUNDING_BOX=True) |
| | Uses puzzle piece locations to create an image for visualizing them. More...
|
| |
Puzzle interface to facilitate calibration.
This class provides an API for some monitoring system to send its processing to a puzzle board for construction of the solution to a puzzle. The monitoring system should be perceive the activities of an agent that is solving the puzzle.