generated from Parici75/python-poetry-bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Labels
help wantedExtra attention is neededExtra attention is needed
Description
homr processes sheet music in four stages:
- detect individual staffs
- group staffs connected by a brace
- merge paired staffs into grandstaffs
- run symbol recognition on the resulting staff images
Step 3 is weak. Piano notation uses a grandstaff (upper + lower staff). Running recognition on each staff separately reduces accuracy because the model loses vertical context across both staffs.
The task: implement a reliable way to decide whether two adjacent staffs form a grandstaff or are independent voices.
Current state: grandstaff creation is done blindly.
Possible direction:
- Use brace detections from the segmentation model.
- Match brace bounding boxes to staff vertical ranges.
- Derive stable pairing rules from brace-staff alignment instead of fixed ordering.
Relevant code:
_create_grandstaffsinbrace_dot_detection.pycreate_grandstaffsinmodel.py
This issue has an example: #60
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
help wantedExtra attention is neededExtra attention is needed