A method and system for recognizing guzheng notation based on convolutional neural network

By combining the convolutional neural network, projection method and edge detection method to extract the characteristics of the Guzheng simple score, the problem of printing quality affecting the recognition accuracy is solved, and high-precision recognition of the Guzheng simple score is achieved.

CN114724151BActive Publication Date: 2024-09-17XIAMEN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210430507.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-22
Publication Date
2024-09-17
Estimated Expiration
2042-04-22

AI Technical Summary

Technical Problem

The traditional method is easily affected by the printing quality when identifying Guzheng musical notation, resulting in low recognition accuracy, especially when the printing is not clear and performs poorly.

Method used

Using a method based on convolutional neural network, combined with projection method, template matching method and edge detection method, the Guzheng simplified musical notation image is preprocessed and divided into rows, the simplified musical notation features of attribute rows and note rows are extracted, and the key signature is identified through the convolutional neural network , time signature, pitch level, fingering and other features, and finally fill in the features into the musicXML template for identification.

Benefits of technology

By adopting different extraction methods for each type of simplified musical notation features, the printing problem is overcome and the recognition accuracy of Guzheng simple musical notation is significantly improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114724151B
    Figure CN114724151B
Patent Text Reader

Abstract

The present invention provides a method and system for recognizing guzheng simple musical notation based on convolutional neural network in the field of musical notation recognition technology, and the method comprises the following steps: step S10, obtaining a guzheng simple musical notation image, and preprocessing the guzheng simple musical notation image; step S20, dividing the preprocessed guzheng simple musical notation image into rows by projection method, and obtaining attribute rows, note rows and Chinese character rows; step S30, combining convolutional neural network, projection method, template matching method and edge detection method, extracting simple musical notation features of the attribute rows and note rows; step S40, filling each simple musical notation feature into music XML template, and completing the recognition of guzheng simple musical notation. The present invention has the advantages of greatly improving the recognition accuracy of guzheng simple musical notation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of music score recognition, and in particular to a method and system for recognizing guzheng musical notation based on a convolutional neural network. Background Art

[0002] Musical notation is a method of recording music with symbols. For music beginners, it is very important to know how to read music notation. If you cannot master the music notation, you cannot play beautiful music. Therefore, there is a need to recognize music notation to assist teaching, similar to how English word readers recognize English words. However, for the recognition of Guzheng notation, the traditional method is easily affected by the printing quality of Guzheng notation. That is, when there is a printing problem or the printing is not clear, the recognition accuracy will be greatly reduced.

[0003] Therefore, how to provide a guzheng notation recognition method and system based on convolutional neural network to improve the recognition accuracy of guzheng notation has become a technical problem that needs to be solved urgently. Summary of the invention

[0004] The technical problem to be solved by the present invention is to provide a method and system for recognizing guzheng notation based on convolutional neural network, so as to improve the recognition accuracy of guzheng notation.

[0005] In a first aspect, the present invention provides a method for recognizing guzheng notation based on a convolutional neural network, comprising the following steps:

[0006] Step S10, obtaining a Guzheng notation image, and preprocessing the Guzheng notation image;

[0007] Step S20, dividing the pre-processed Guzheng simple musical notation image into rows by a projection method to obtain attribute rows, note rows and Chinese character rows;

[0008] Step S30, combining convolutional neural network, projection method, template matching method and edge detection method to extract the musical notation features of the attribute row and note row;

[0009] Step S40: Fill the features of the simplified musical notation into the musicXML template to complete the recognition of the Guzheng simplified musical notation.

[0010] Furthermore, the step S10 is specifically as follows:

[0011] A Guzheng simple musical notation image is obtained, and grayscale binarization preprocessing is performed on the Guzheng simple musical notation image.

[0012] Furthermore, the step S20 is specifically as follows:

[0013] The pre-processed Guzheng simple musical notation image is divided into rows through the horizontal and vertical projection method to obtain attribute rows, note rows and Chinese character rows, and the Chinese character rows are discarded.

[0014] Furthermore, the step S30 is specifically as follows:

[0015] Using a key signature recognition model created by a convolutional neural network, the key signature is recognized from the attribute line;

[0016] Determine the score line of the time signature in the attribute line by a horizontal projection method, and then identify the time signature from the attribute line by a time signature recognition model created by a convolutional neural network;

[0017] Identify notes from the note row by edge detection, identify the note class by a pitch class recognition model created by a convolutional neural network, obtain the note type of the note by projection, and obtain the pitch of the note by edge detection and projection;

[0018] Deleting the identified notes, and then determining the bar lines in the note row by vertical projection;

[0019] determining an appoggiatura based on the note type;

[0020] A distance threshold is set, starting from a black dot on the note row, all black dots within the distance threshold are included in the same outline frame, and the fingering recognition model created by the convolutional neural network is used to recognize the fingering within the outline frame;

[0021] Based on the fingering and the position and size of the legato, legatos are identified from the note row.

[0022] Furthermore, the step S40 is specifically as follows:

[0023] Fill the key signatures, time signatures, notes, bar lines, appoggiaturas, fingerings and legato into the musicXML template to complete the recognition of the Guzheng simple musical notation.

[0024] In a second aspect, the present invention provides a guzheng notation recognition system based on a convolutional neural network, comprising the following modules:

[0025] A Guzheng notation image preprocessing module is used to obtain a Guzheng notation image and preprocess the Guzheng notation image;

[0026] A Guzheng notation image line division module is used to divide the pre-processed Guzheng notation image into lines by a projection method to obtain attribute lines, note lines and Chinese character lines;

[0027] A simplified musical notation feature extraction module, used to extract the simplified musical notation features of the attribute row and the note row by combining a convolutional neural network, a projection method, a template matching method and an edge detection method;

[0028] The musicXML template updating module is used to fill the features of the simplified musical notation into the musicXML template to complete the recognition of the Guzheng simplified musical notation.

[0029] Furthermore, the Guzheng notation image preprocessing module is specifically:

[0030] A Guzheng simple musical notation image is obtained, and grayscale binarization preprocessing is performed on the Guzheng simple musical notation image.

[0031] Furthermore, the Guzheng notation image line division module is specifically:

[0032] The pre-processed Guzheng simple musical notation image is divided into rows through the horizontal and vertical projection method to obtain attribute rows, note rows and Chinese character rows, and the Chinese character rows are discarded.

[0033] Furthermore, the simplified musical notation feature extraction module is specifically:

[0034] Using a key signature recognition model created by a convolutional neural network, the key signature is recognized from the attribute line;

[0035] Determine the score line of the time signature in the attribute line by a horizontal projection method, and then identify the time signature from the attribute line by a time signature recognition model created by a convolutional neural network;

[0036] Identify notes from the note row by edge detection, identify the note class by a pitch class recognition model created by a convolutional neural network, obtain the note type of the note by projection, and obtain the pitch of the note by edge detection and projection;

[0037] Deleting the identified notes, and then determining the bar lines in the note row by vertical projection;

[0038] determining an appoggiatura based on the note type;

[0039] A distance threshold is set, starting from a black dot on the note row, all black dots within the distance threshold are included in the same outline frame, and the fingering recognition model created by the convolutional neural network is used to recognize the fingering within the outline frame;

[0040] Based on the fingering and the position and size of the legato, legatos are identified from the note row.

[0041] Furthermore, the musicXML template update module is specifically:

[0042] Fill the key signatures, time signatures, notes, bar lines, appoggiaturas, fingerings and legato into the musicXML template to complete the recognition of the Guzheng simple musical notation.

[0043] The advantages of the present invention are:

[0044] The acquired Guzheng notation image is preprocessed into grayscale binarization, and then the preprocessed Guzheng notation image is divided into rows through the projection method. Then, the convolutional neural network, projection method, template matching method and edge detection method are combined to extract the notation features of the attribute row and note row obtained by dividing the row. Finally, the notation features are filled into the musicXML template to complete the recognition of Guzheng notation. That is, different methods are adopted to extract each notation feature according to its own characteristics to overcome the printing problem, and ultimately the recognition accuracy of Guzheng notation is greatly improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] The present invention will be further described below in conjunction with embodiments with reference to the accompanying drawings.

[0046] Figure 1 The present invention is a flow chart of a method for recognizing guzheng notation based on a convolutional neural network.

[0047] Figure 2 It is a structural schematic diagram of a guzheng notation recognition system based on a convolutional neural network according to the present invention. DETAILED DESCRIPTION

[0048] The technical solution in the embodiments of the present application has the following overall idea: combining convolutional neural networks, projection method, template matching method and edge detection method to extract the simplified notation features of the attribute rows and note rows obtained by dividing the Guzheng simplified notation image into rows, that is, adopting different methods to extract each type of simplified notation feature according to its own characteristics, so as to overcome printing problems and improve the recognition accuracy of Guzheng simplified notation.

[0049] Please refer to Figure 1 to Figure 2 As shown, a preferred embodiment of the guzheng notation recognition method based on convolutional neural network of the present invention comprises the following steps:

[0050] Step S10, obtaining a Guzheng notation image, and preprocessing the Guzheng notation image;

[0051] Step S20, dividing the pre-processed Guzheng simple musical notation image into rows by a projection method to obtain attribute rows, note rows and Chinese character rows;

[0052] Step S30, combining convolutional neural network, projection method, template matching method and edge detection method to extract the musical notation features of the attribute row and note row;

[0053] Step S40: Fill the features of the simplified musical notation into the musicXML template to complete the recognition of the Guzheng simplified musical notation.

[0054] The step S10 is specifically as follows:

[0055] A Guzheng simple musical notation image is acquired, and grayscale binarization and correction preprocessing is performed on the Guzheng simple musical notation image.

[0056] The step S20 is specifically as follows:

[0057] The pre-processed Guzheng simple musical notation image is divided into rows through horizontal and vertical projection methods to obtain attribute rows, note rows and Chinese character rows, and the Chinese character rows (lyrics rows) are discarded.

[0058] The step S30 is specifically as follows:

[0059] A key signature recognition model created by a convolutional neural network is used to recognize the key signature from the attribute row; generally, the key signature is in the form of "1=A", and the key signature can be obtained by respectively recognizing 1 and a letter through the key signature recognition model;

[0060] The fraction line of the time signature in the attribute line is determined by the horizontal projection method, and then the time signature recognition model created by the convolutional neural network is used to recognize the time signature from the attribute line; the time signature exists in the form of a fraction, which generally causes printing problems, so the fraction line needs to be determined by the horizontal projection method, and then segmented and recognized;

[0061] Identify notes from the note row by edge detection, identify the note class by a pitch class recognition model created by a convolutional neural network, obtain the note type of the note by projection, and obtain the pitch of the note by edge detection and projection;

[0062] Deleting the identified notes, and then determining the bar lines in the note row by vertical projection method (vertical projection peak method);

[0063] Traditionally, the bar lines are obtained by calculating the proportion by using contour box detection or extracting the peak value by using horizontal projection. However, the bar line recognition is not good due to unclear printing and overlapping notes in the Guzheng simple notation. The present invention first removes the notes by using the previous note recognition and then performs projection to obtain the peak value, which greatly improves the recognition accuracy of the bar lines.

[0064] Determine the grace note based on the note type; because the printing is not clear, it is necessary to first determine the note type and then determine the grace note;

[0065] A distance threshold is set, starting from a black dot in the note row, all black dots within the distance threshold are included in the same outline frame, and the fingering within the outline frame is recognized by a fingering recognition model created by a convolutional neural network; this method can effectively overcome the problem of fingering recognition failure caused by unclear printing;

[0066] Based on the fingering and the position and size of the legato, the legato is identified from the note row. Since the legato is very similar to the "hook" in the fingering, it is included in the fingering identification, and the fingering and the legato are distinguished by matching the position and size.

[0067] The step S40 is specifically as follows:

[0068] Fill the key signatures, time signatures, notes, bar lines, appoggiaturas, fingerings and legato into the musicXML template to complete the recognition of the Guzheng simple musical notation.

[0069] A preferred embodiment of a guzheng notation recognition system based on a convolutional neural network of the present invention comprises the following modules:

[0070] A Guzheng notation image preprocessing module is used to obtain a Guzheng notation image and preprocess the Guzheng notation image;

[0071] A Guzheng notation image line division module is used to divide the pre-processed Guzheng notation image into lines by a projection method to obtain attribute lines, note lines and Chinese character lines;

[0072] A simplified musical notation feature extraction module, used to extract the simplified musical notation features of the attribute row and the note row by combining a convolutional neural network, a projection method, a template matching method and an edge detection method;

[0073] The musicXML template updating module is used to fill the features of the simplified musical notation into the musicXML template to complete the recognition of the Guzheng simplified musical notation.

[0074] The Guzheng notation image preprocessing module is specifically:

[0075] A Guzheng simple musical notation image is acquired, and grayscale binarization and correction preprocessing is performed on the Guzheng simple musical notation image.

[0076] The Guzheng notation image branching module is specifically:

[0077] The pre-processed Guzheng simple musical notation image is divided into rows through horizontal and vertical projection methods to obtain attribute rows, note rows and Chinese character rows, and the Chinese character rows (lyrics rows) are discarded.

[0078] The simplified musical notation feature extraction module is specifically:

[0079] A key signature recognition model created by a convolutional neural network is used to recognize the key signature from the attribute row; generally, the key signature is in the form of "1=A", and the key signature can be obtained by respectively recognizing 1 and a letter through the key signature recognition model;

[0080] The fraction line of the time signature in the attribute line is determined by the horizontal projection method, and then the time signature recognition model created by the convolutional neural network is used to recognize the time signature from the attribute line; the time signature exists in the form of a fraction, which generally causes printing problems, so the fraction line needs to be determined by the horizontal projection method, and then segmented and recognized;

[0081] Identify notes from the note row by edge detection, identify the note class by a pitch class recognition model created by a convolutional neural network, obtain the note type of the note by projection, and obtain the pitch of the note by edge detection and projection;

[0082] Deleting the identified notes, and then determining the bar lines in the note row by vertical projection method (vertical projection peak method);

[0083] Traditionally, the bar lines are obtained by calculating the proportion by using contour box detection or extracting the peak value by using horizontal projection. However, the bar line recognition is not good due to unclear printing and overlapping notes in the Guzheng simple notation. The present invention first removes the notes by using the previous note recognition and then performs projection to obtain the peak value, which greatly improves the recognition accuracy of the bar lines.

[0084] Determine the grace note based on the note type; because the printing is not clear, it is necessary to first determine the note type and then determine the grace note;

[0085] A distance threshold is set, starting from a black dot in the note row, all black dots within the distance threshold are included in the same outline frame, and the fingering within the outline frame is recognized by a fingering recognition model created by a convolutional neural network; this method can effectively overcome the problem of fingering recognition failure caused by unclear printing;

[0086] Based on the fingering and the position and size of the legato, the legato is identified from the note row. Since the legato is very similar to the "hook" in the fingering, it is included in the fingering identification, and the fingering and the legato are distinguished by matching the position and size.

[0087] The musicXML template update module is specifically:

[0088] Fill the key signatures, time signatures, notes, bar lines, appoggiaturas, fingerings and legato into the musicXML template to complete the recognition of the Guzheng simple musical notation.

[0089] In summary, the advantages of the present invention are:

[0090] The acquired Guzheng notation image is preprocessed into grayscale binarization, and then the preprocessed Guzheng notation image is divided into rows through the projection method. Then, the convolutional neural network, projection method, template matching method and edge detection method are combined to extract the notation features of the attribute row and note row obtained by dividing the row. Finally, the notation features are filled into the musicXML template to complete the recognition of Guzheng notation. That is, different methods are adopted to extract each notation feature according to its own characteristics to overcome the printing problem, and ultimately the recognition accuracy of Guzheng notation is greatly improved.

[0091] Although the specific implementation modes of the present invention are described above, those skilled in the art should understand that the specific implementation modes described are only illustrative and are not intended to limit the scope of the present invention. Equivalent modifications and changes made by those skilled in the art in accordance with the spirit of the present invention should be included in the scope of protection of the claims of the present invention.

Claims

1. A method for recognizing guzheng notation based on convolutional neural network, characterized in that: The steps include: Step S10, obtaining a Guzheng notation image, and preprocessing the Guzheng notation image; Step S20, dividing the pre-processed Guzheng simple musical notation image into rows by a projection method to obtain attribute rows, note rows and Chinese character rows; Step S30, combining convolutional neural network, projection method, template matching method and edge detection method to extract the musical notation features of the attribute row and note row; Specifically: Using a key signature recognition model created by a convolutional neural network, the key signature is recognized from the attribute line; Determine the score line of the time signature in the attribute line by a horizontal projection method, and then identify the time signature from the attribute line by a time signature recognition model created by a convolutional neural network; Identify notes from the note row by edge detection, identify the note class by a pitch class recognition model created by a convolutional neural network, obtain the note type of the note by projection, and obtain the pitch of the note by edge detection and projection; Deleting the identified notes, and then determining the bar lines in the note row by vertical projection; determining an appoggiatura based on the note type; A distance threshold is set, starting from a black dot on the note row, all black dots within the distance threshold are included in the same outline frame, and the fingering recognition model created by the convolutional neural network is used to recognize the fingering within the outline frame; identifying legato from the note row based on the fingering and the position and size of the legato; Step S40: Fill the features of the simplified musical notation into the musicXML template to complete the recognition of the Guzheng simplified musical notation.

2. A method for recognizing guzheng notation based on convolutional neural network as claimed in claim 1, characterized in that: The step S10 is specifically as follows: A Guzheng simple musical notation image is obtained, and grayscale binarization preprocessing is performed on the Guzheng simple musical notation image.

3. A method for recognizing guzheng notation based on convolutional neural network as claimed in claim 1, characterized in that: The step S20 is specifically as follows: The pre-processed Guzheng simple musical notation image is divided into rows through the horizontal and vertical projection method to obtain attribute rows, note rows and Chinese character rows, and the Chinese character rows are discarded.

4. A method for recognizing guzheng notation based on convolutional neural network as claimed in claim 1, characterized in that: The step S40 is specifically as follows: Fill the key signatures, time signatures, notes, bar lines, appoggiaturas, fingerings and legato into the musicXML template to complete the recognition of the Guzheng simple musical notation.

5. A guzheng notation recognition system based on convolutional neural network, characterized by: Includes the following modules: A Guzheng notation image preprocessing module is used to obtain a Guzheng notation image and preprocess the Guzheng notation image; A Guzheng notation image line division module is used to divide the pre-processed Guzheng notation image into lines by a projection method to obtain attribute lines, note lines and Chinese character lines; The simplified musical notation feature extraction module is used to extract the simplified musical notation features of the attribute row and the note row by combining convolutional neural network, projection method, template matching method and edge detection method; the simplified musical notation feature extraction module is specifically: Using a key signature recognition model created by a convolutional neural network, the key signature is recognized from the attribute line; Determine the score line of the time signature in the attribute line by a horizontal projection method, and then identify the time signature from the attribute line by a time signature recognition model created by a convolutional neural network; Identify notes from the note row by edge detection, identify the note class by a pitch class recognition model created by a convolutional neural network, obtain the note type of the note by projection, and obtain the pitch of the note by edge detection and projection; Deleting the identified notes, and then determining the bar lines in the note row by vertical projection; determining an appoggiatura based on the note type; A distance threshold is set, starting from a black dot on the note row, all black dots within the distance threshold are included in the same outline frame, and the fingering recognition model created by the convolutional neural network is used to recognize the fingering within the outline frame; identifying legato from the note row based on the fingering and the position and size of the legato; The musicXML template updating module is used to fill the features of the simplified musical notation into the musicXML template to complete the recognition of the Guzheng simplified musical notation.

6. A guzheng notation recognition system based on convolutional neural network as claimed in claim 5, characterized in that: The Guzheng notation image preprocessing module is specifically: A Guzheng simple musical notation image is obtained, and grayscale binarization preprocessing is performed on the Guzheng simple musical notation image.

7. A guzheng notation recognition system based on convolutional neural network as claimed in claim 5, characterized in that: The Guzheng notation image branching module is specifically: The pre-processed Guzheng simple musical notation image is divided into rows through the horizontal and vertical projection method to obtain attribute rows, note rows and Chinese character rows, and the Chinese character rows are discarded.

8. A guzheng notation recognition system based on convolutional neural network as claimed in claim 5, characterized in that: The musicXML template update module is specifically: Fill the key signatures, time signatures, notes, bar lines, appoggiaturas, fingerings and legato into the musicXML template to complete the recognition of the Guzheng simple musical notation.