Patent ID: 11908216

Abstract:
Disclosed herein is a method of identifying a line of a stave or a stem of a note in a digital image of a musical score comprising: converting the digital image into a matrix in which at least one cell of the matrix corresponds to a pixel of the digital image; setting the at least one cell of the matrix to a first value if the corresponding pixel of the digital image has a pixel intensity above a threshold intensity; identifying adjacent cells having the first value as linked cells, the adjacent cells corresponding to pixels being adjacent in one of a horizontal direction or a vertical direction of the digital image; identifying linked cells having a number of cells exceeding a threshold as a chain of cells; grouping adjacent chains of cells into a group of chains; determining a dimension of the group of chains; and comparing the dimension with a dimension threshold; wherein, if the dimension is above the dimension threshold, determining that pixels corresponding to linked cells of the group of chains correspond to a line of a stave if the adjacent cells corresponding to pixels being adjacent in a horizontal direction of the digital image or a stem of a note if the adjacent cells correspond to pixels being adjacent in a vertical direction of the digital image.