This commit is contained in:
Lukas Wölfer
2019-08-10 10:03:41 +02:00
parent 4e5872f71b
commit bc4dd073dc
2 changed files with 2 additions and 1 deletions

View File

@@ -34,6 +34,7 @@ class Configuration:
self.ADJUSTMENT_FILE_NAME, json.dumps( self.ADJUSTMENT_FILE_NAME, json.dumps(
dataclasses.asdict( dataclasses.asdict(
self.field_adjustment))) self.field_adjustment)))
counter = 0 counter = 0
for square, card in self.catalogue: for square, card in self.catalogue:
counter += 1 counter += 1

View File

@@ -29,7 +29,7 @@ def parse() -> board.Board:
# image = cv2.resize(image, (1000, 629)) # image = cv2.resize(image, (1000, 629))
loaded_config = Configuration.load('test_config.zip') loaded_config = Configuration.load('test_config.zip')
loaded_config.field_adjustment = adjustment.adjust_field(image) # loaded_config.field_adjustment = adjustment.adjust_field(image)
return board_parser.parse_board(image, loaded_config) return board_parser.parse_board(image, loaded_config)