vkit.engine.char_heatmap.type
1# Copyright 2022 vkit-x Administrator. All Rights Reserved. 2# 3# This project (vkit-x/vkit) is dual-licensed under commercial and SSPL licenses. 4# 5# The commercial license gives you the full rights to create and distribute software 6# on your own terms without any SSPL license obligations. For more information, 7# please see the "LICENSE_COMMERCIAL.txt" file. 8# 9# This project is also available under Server Side Public License (SSPL). 10# The SSPL licensing is ideal for use cases such as open source projects with 11# SSPL distribution, student/academic purposes, hobby projects, internal research 12# projects without external distribution, or other projects where all SSPL 13# obligations can be met. For more information, please see the "LICENSE_SSPL.txt" file. 14from typing import Sequence, Any 15 16import attrs 17 18from vkit.element import Polygon, ScoreMap 19 20 21@attrs.define 22class CharHeatmapEngineRunConfig: 23 height: int 24 width: int 25 char_polygons: Sequence[Polygon] 26 enable_debug: float = False 27 28 29@attrs.define 30class CharHeatmap: 31 score_map: ScoreMap 32 debug: Any = None
class
CharHeatmapEngineRunConfig:
23class CharHeatmapEngineRunConfig: 24 height: int 25 width: int 26 char_polygons: Sequence[Polygon] 27 enable_debug: float = False
CharHeatmapEngineRunConfig( height: int, width: int, char_polygons: Sequence[vkit.element.polygon.Polygon], enable_debug: float = False)
2def __init__(self, height, width, char_polygons, enable_debug=attr_dict['enable_debug'].default): 3 self.height = height 4 self.width = width 5 self.char_polygons = char_polygons 6 self.enable_debug = enable_debug
Method generated by attrs for class CharHeatmapEngineRunConfig.
class
CharHeatmap:
CharHeatmap(score_map: vkit.element.score_map.ScoreMap, debug: Any = None)
2def __init__(self, score_map, debug=attr_dict['debug'].default): 3 self.score_map = score_map 4 self.debug = debug
Method generated by attrs for class CharHeatmap.