def __init__(self, run): Rect.__init__(self, run) # The number of black pixels in the section self.area = 0 # The average vertical thickness of all the runs in the section self.average_thickness = 0.0 # The runs that make up the section. Each run is a Rect object as # returned by the iterate_*_*_runs plugin method. self.runs = [] # The center points of all the runs. The points together make # up a line down the center of the section. self.center_points = [] # The number of connected sections to the right self.right_connections = [] # The number of connected sections to the left self.left_connections = [] # Marked True by find_potential_stafflines if the section appears to be a thin, straight, horizontal line self.is_filament = False # Marked True by find_stafflines if the section is part of an evenly spaced set of sections self.is_staffline_marker = False # Marked True by remove_stafflines if the section is aligned with a recognized staffline self.is_staffline = False # Add the first run self.add_run(run)
def __init__(self, run): Rect.__init__(run) # The number of black pixels in the section self.area = 0 # The average vertical thickness of all the runs in the section self.average_thickness = 0.0 # The runs that make up the section. Each run is a Rect object as # returned by the iterate_*_*_runs plugin method. self.runs = [] # The center points of all the runs. The points together make # up a line down the center of the section. self.center_points = [] # The number of connected sections to the right self.right_connections = [] # The number of connected sections to the left self.left_connections = [] # Marked True by find_potential_stafflines if the section appears to be a thin, straight, horizontal line self.is_filament = False # Marked True by find_stafflines if the section is part of an evenly spaced set of sections self.is_staffline_marker = False # Marked True by remove_stafflines if the section is aligned with a recognized staffline self.is_staffline = False # Add the first run self.add_run(run)
def __init__(self): Rect.__init__(self)
def __init__(self, filament): Rect.__init__(self, filament) self.is_staffline_marker = False
def __init__(self, filament): Rect.__init__(filament) self.is_staffline_marker = False