Method for finding the staff lines.
Signature:
find_staves(with_trimming=True, with_deletion=True, with_staff_fixing=True, enable_strong_staff_pixels=False)
with
- with_trimming:
Trims staff sets where white space or ornamentations are found.
- with_deletion:
If true, the image will be processed once and will create an image comprised of only found staves and then the code is run again. More accurate for images with a lot of lyrics or ornamentation.
- with_staff_fixing:
Uses the slopes of staff sets to fix staff lines that differ wildly from the slope at specific intervals.
- enable_strong_staff_pixels:
Experimental method that reduces the weights of vertical runs that are the exact width of staffline_height and are exactly staffspace_height away from the closest black pixel.
This method fills the self.linelist attribute for further
processing.