- fixed RS marker generation

This commit is contained in:
2025-11-30 17:20:45 +01:00
parent a2351d4188
commit 2018454411
2 changed files with 4 additions and 1 deletions
+2 -1
View File
@@ -17,8 +17,9 @@ class BoardDetectorAruco(BoardDetector):
def __init__(self, name: str, dict_type: int, board_id: str, board_size: tuple[int, int]):
self.dict_type = dict_type
self.board_size = board_size
self.detector, self.board = factory(dict_type, board_size, ids=self.ids)
self.detector, self.board = factory(dict_type, board_size)
BoardDetector.__init__(self, name, board_id, len(self.board.getIds()))
self.detector, self.board = factory(dict_type, board_size, ids=self.ids)
def get_board_name(self):
grid_size = self.board.getGridSize()
+2
View File
@@ -18,7 +18,9 @@ class BoardDetectorCharuco(BoardDetector):
self.detector, self.board = factory(dict_type, board_size, ids=self.ids)
self.dict_type = dict_type
self.board_size = board_size
self.detector, self.board = factory(dict_type, board_size)
BoardDetector.__init__(self, name, board_id, len(self.board.getIds()))
self.detector, self.board = factory(dict_type, board_size, ids=self.ids)
def get_board_name(self):
grid_size = self.board.getChessboardSize()