|
IVALab Python Libraries
Collection of code for computer vision and robotics with specific API.
|
A class for associating puzzle pieces across boards. More...


Public Member Functions | |
| def | __init__ (self, solution, theParams=ManagerParms) |
| def | greedyAssignment (self, scoreTable_shape, scoreTable_color, scoreTable_edge_color) |
| Run the greedyAssignment for the score table. More... | |
| def | hungarianAssignment (self, scoreTable_shape, scoreTable_color, scoreTable_edge_color) |
| Run the hungarianAssignment for the score table. More... | |
| def | matchPieces (self) |
| Match all the measured puzzle pieces with the ground truth in a pairwise manner to get meas to sol. More... | |
| def | measure (self, *argv) |
| Get the match based on the input. More... | |
| def | process (self, *argv) |
| Run the tracking pipeline for image measurement or directly work on a measured board. More... | |
Public Attributes | |
| assignmentMethod | |
| bMeas | |
| matcher | |
| pAssignments | |
| pAssignments_rotation | |
| scoreTable_shape | |
| scoreType | |
| skipList | |
| solution | |
A class for associating puzzle pieces across boards.
It "manages" the puzzle interpretation process over time, where each sensing cycle generates a new board instance.
A puzzle manager is a base class for recovering and identifying or associating puzzle pieces across different board measurements, usually reflecting measurements at different times. A calibrated solution board can also be associated to a given measured board, which then provides information about how to solve the board.
There are different scoring systems for matching puzzle pieces. This class manages that matching process based on a given puzzle piece Matcher instance and compatible feature generator from puzzle piece image patches.
| def __init__ | ( | self, | |
| solution, | |||
theParams = ManagerParms |
|||
| ) |
@brief Constructor for the puzzle piece manager class.
Args:
solution: A solution/calibrated board instance.
theParams: Any additional parameters in a structure.
| def greedyAssignment | ( | self, | |
| scoreTable_shape, | |||
| scoreTable_color, | |||
| scoreTable_edge_color | |||
| ) |
Run the greedyAssignment for the score table.
Args: scoreTable_shape: The score table for the pairwise comparison (shape). scoreTable_color: The score table for the pairwise comparison (color). scoreTable_edge_color: The score table for the pairwise comparison (edge_color).
Returns: matched_id: The matched pair dict.
| def hungarianAssignment | ( | self, | |
| scoreTable_shape, | |||
| scoreTable_color, | |||
| scoreTable_edge_color | |||
| ) |
Run the hungarianAssignment for the score table.
Args: scoreTable_shape: The score table for the pairwise comparison (shape). scoreTable_color: The score table for the pairwise comparison (color). scoreTable_edge_color: The score table for the pairwise comparison (edge_color).
Returns: matched_id: The matched pair dict.
| def matchPieces | ( | self | ) |
Match all the measured puzzle pieces with the ground truth in a pairwise manner to get meas to sol.
| def measure | ( | self, | |
| * | argv | ||
| ) |
Get the match based on the input.
Args: I: RGB image. M: Mask image. board: The measured board.
| def process | ( | self, | |
| * | argv | ||
| ) |
Run the tracking pipeline for image measurement or directly work on a measured board.
Assume two modes: 1. I & M or 2. A measured board. Args: I: RGB image. M: Mask image. board: The measured board.
| assignmentMethod |
| bMeas |
| matcher |
| pAssignments |
| pAssignments_rotation |
| scoreTable_shape |
| scoreType |
| skipList |
| solution |