Feature information construction method suitable for construction of loquat music score database
Through image preprocessing and note feature extraction methods, the problem of inaccuracy in the construction of existing pipa music databases is solved, efficient feature information construction of pipa music scores is achieved, and data support of diversity and accuracy is provided.
Patent Information
- Application Number
- CN202410777627.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-10-18
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing Pipa music database is mainly constructed through audio information, resulting in inaccuracy, instability and inconsistency, and cannot effectively construct high-quality feature information.
Using image preprocessing and note image feature extraction methods, the edge detection module and contour extraction technology are used to identify notes, calculate the area and circumference of the notes, and combine the note image feature extraction algorithm unit and note sequence image integration algorithm unit of the pipa score to generate a comprehensive Feature values, and optimize the threshold through a feedback mechanism to improve feature extraction accuracy.
It achieves the accuracy and diversity of feature information construction of Pipa music scores, reduces the limitations of feature information construction, and provides reliable data support for subsequent music retrieval and classification.
Smart Images

Figure CN118799893A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of pipa music score data extraction, and in particular to a feature information construction method suitable for constructing a pipa music score database. Background Art
[0002] With the continuous development of computer technology and the continuous improvement of intelligence level, massive amounts of music data emerge in an endless stream, and the huge and complex music resources need to be retrieved, classified and understood before they can be actually used;
[0003] Among them, the pipa music information retrieval technology is a technical means to fully utilize the pipa music score database, and then it is necessary to build a high-quality pipa music score database. This database can improve the accuracy and efficiency in the field of music retrieval and is of great significance.
[0004] However, the existing pipa music databases are mostly constructed through audio information. When constructing the audio information, most of the data is in the form of input performance, accompaniment or vocals. The audio data recorded by different people are different. Some audio data will also have noise and other bad non-musical noise. In addition, the audio quality will also vary due to the different recording devices of each person. As a result, the existing pipa music database constructed only by audio data is inaccurate, unstable and inconsistent, which makes the feature construction of the database poor. Summary of the invention
[0005] The purpose of the present invention is to provide a feature information construction method suitable for constructing a pipa music score database, which solves the problems raised in the above-mentioned background technology.
[0006] To achieve the above object, the present invention provides the following technical solution: a method for constructing feature information suitable for constructing a pipa music score database, comprising the following steps:
[0007] Image preprocessing: preprocess the input pipa music score image;
[0008] Note image feature extraction: For each preprocessed music score image, use the edge detection module and contour extraction technology to identify and locate each note, and set a threshold T in the edge detection module to determine which pixels belong to the boundary of the note, so as to extract the corresponding image features and sequence features, and calculate the area and perimeter of each note;
[0009] Substitute the perimeter and area of each note into the note image feature extraction algorithm unit of the pipa score to calculate the feature value of each note;
[0010] Substitute the feature value calculated by the Pipa music score note image feature extraction algorithm unit and the area value calculated by the Pipa music score note image feature extraction algorithm unit into the Pipa music score note sequence image integration algorithm unit to calculate the feature index of the note sequence;
[0011] Substituting the characteristic index of the note sequence calculated by the Pipa music score note sequence image integration algorithm unit and the characteristic value of the note calculated by the Pipa music score note image feature extraction algorithm unit into the Pipa music score feature information extraction optimization algorithm unit, the Pipa music score feature information extraction optimization algorithm unit is used to calculate the comprehensive characteristic value of the whole note;
[0012] The comprehensive feature values of the whole notes calculated by the feature information extraction optimization algorithm unit of the pipa music score are compared. If the feature extraction effect is good, it is directly output to the database to complete the feature information construction of the music database. If the extraction is not good, it is fed back to the threshold T to reduce the value of the threshold T to obtain more pixel values to improve the recognition range of the note boundary, thereby affecting the feature values of subsequent notes, the feature index of the note sequence and the comprehensive feature value of the whole note;
[0013] The integrated feature information data is uploaded to the database unit for storage, and then the application and output module is used to prepare for subsequent retrieval of the pipa music score after the feature information is constructed.
[0014] Optionally, it includes a pipa music score data collection module, a pipa music score data processing module, a pipa music score feature information extraction module, a database unit and an application and output module;
[0015] The pipa music score data collection module collects the image data of the pipa music score through public data resources and paper music scores, and performs denoising, binarization and standardization processing on these data through the pipa music score data processing module, and then locates, identifies and extracts each note on the music score through the edge detection module, wherein a threshold T is set in the edge detection module to determine the boundary extraction of the note, and then the extracted note data is subjected to feature extraction through the pipa music score feature information extraction module to obtain a comprehensive feature value of the target pipa music score, the comprehensive feature value integrates the image feature and sequence feature of the note, and can simultaneously consider the local and overall structure of the note, and uploads the integrated feature information data to the database unit for storage, and then through the application and output module for subsequent retrieval of the pipa music score after the feature information is constructed;
[0016] The comprehensive characteristic value finally obtained by the pipa music score feature information extraction module is numerically analyzed to obtain the extraction effect, which is good or bad. When the extraction effect is good, it is output to the database unit. When the extraction effect is not good, the signal is fed back to the pipa music score data processing module. By adjusting the threshold value in the pipa music score data processing module accordingly, the note characteristic value, note sequence characteristic index and comprehensive characteristic value in the pipa music score feature information extraction module are adjusted, and the accuracy of the pipa music score feature information construction is optimized through the feedback mechanism.
[0017] The pipa music score feature information extraction module includes: a pipa music score note image feature extraction algorithm unit, a pipa music score note sequence image integration algorithm unit and a pipa music score feature information extraction optimization algorithm unit.
[0018] Optionally, the note image feature extraction algorithm unit of the pipa music score is as follows:
[0019]
[0020] Where: n is the serial number of the note in the music score;
[0021] NAA n is the eigenvalue of the nth note, and similarly NAA is the eigenvalue of each note;
[0022] NAB n is the area of the nth note;
[0023] NAC n is the circumference of the nth note;
[0024] The shape individual component measures the closeness of the note shape to a circle, with values closer to 0 indicating a shape that is closer to a circle and values closer to 1 indicating a more irregular shape. This captures the variation in note shape and helps distinguish different note types or styles.
[0025] Optionally, the note sequence image integration algorithm unit of the pipa music score is as follows:
[0026]
[0027] Where: j is a pair of adjacent notes in the note sequence;
[0028] NBA j is the index of the sequence feature analysis result between the jth group of adjacent notes;
[0029] NBB j,j+1 is the spacing between adjacent notes;
[0030] NBC is the average of all note areas;
[0031] |NBD j,j+1 | is the change in pitch;
[0032] a and b are weight coefficients used to adjust the impact of area and pitch changes on sequence features.
[0033] Optionally, the feature information extraction optimization algorithm unit of the pipa music score is as follows:
[0034]
[0035] Where: c is the number of note images;
[0036] d represents the number of note sequences;
[0037] e is the weight in NAA and f is the weight in NBA;
[0038] NCA is a value indicating feature importance.
[0039] Optionally, the feature information extraction optimization algorithm unit of the pipa music score is further as follows:
[0040] First, NCA is converted into a percentage, and the feature information extraction optimization algorithm unit of the pipa music score is further calculated:
[0041]
[0042] Of which: NAA n is the eigenvalue of the nth note, then extract the eigenvalues of all notes and compare all the calculated NAA values to find the maximum value, which is the NAA max ;
[0043] Same as NBA j is the index of the sequence characteristic analysis result between the jth group of adjacent notes, and then the NBA value of the sequence characteristic index between all adjacent groups of notes is obtained, and the maximum value is NBA. max ;
[0044] Therefore, NAA e The result is the percentage value of NCA. When NAA e When the value of is within 31%-100%, the corresponding extraction result is very good. eWhen the value of is between 0% and 30%, the corresponding extraction result is not good, which is then fed back to the edge detection module in the pipa music score data processing module to change the T threshold in the edge detection module. By lowering the value of the T threshold, more pixel values are obtained to improve the note boundary recognition range in the pipa music score data processing module. This feedback mechanism is used to continuously adjust the characteristic value of the note, the characteristic index of the note sequence, and the comprehensive characteristic value of the overall note.
[0045] Optionally, the devices used in the pipa music score data collection module include: a computer, a scanner and a storage device, the computer is used to run an image processing algorithm, the scanner is used to scan paper music scores and convert them into digital images, and the storage device is used to cache and process the scanned music score images.
[0046] Optionally, the pipa music score data processing module includes: an image denoising unit, a binarization and standardization unit, an edge detection module and a contour extraction unit.
[0047] Optionally, the image denoising unit is used to eliminate noise and stains in the image to reduce interference factors, the binarization and standardization unit is used to convert the image into a binary image and standardize the image size, the edge detection module and contour extraction unit are used to identify the boundaries of the notes and locate each note, and finally the preprocessed pipa music score image, note contour information and position information are output through the pipa music score data processing module.
[0048] Compared with the prior art, the present invention has the following beneficial effects:
[0049] First, the present invention can calculate the characteristic value of each note through the note image feature extraction algorithm unit of the pipa music score, which has an excellent helping effect on identifying different types of notes, so that the feature data of a small part of the individual notes are collected and constructed first, and then the note sequence image integration algorithm unit of the pipa music score is further calculated and derived based on the note characteristic value calculated by the note image feature extraction algorithm unit of the pipa music score, so that the characteristic index of the calculated note sequence is substituted into it, so that the individual note characteristics are combined with the arrangement relationship characteristics to construct Further note features are constructed, so that certain features can be collected and extracted for the category and style of the music score. Finally, the feature values of the notes and the feature values of the note sequence can be integrated and summarized together through the feature information extraction optimization algorithm unit of the pipa music score to obtain a comprehensive overall note comprehensive feature. This feature value can not only construct the final comprehensive feature value of the target music score, but also can change and influence the note image feature extraction algorithm unit of the pipa music score and the note sequence image integration algorithm unit of the pipa music score through the further evolution of the feature information extraction optimization algorithm unit of the pipa music score. The features calculated and constructed in the system are more accurate and effective, which makes the feature extraction of the music score richer, reduces the limitations of feature information construction, makes the collected features more diverse, and provides necessary data support and guarantee for subsequent retrieval and classification in the database. In terms of overall relevance, the note image feature extraction algorithm unit of the pipa music score, the note sequence image integration algorithm unit of the pipa music score, and the feature information extraction optimization algorithm unit of the pipa music score form a closed-loop system loop, which can continuously output and construct efficient feature information towards the music score database. The note feature values extracted by the note image feature extraction algorithm unit can not only directly participate in the calculation of the pipa music score note sequence image integration algorithm unit, but also continuously adjust the value changes through the feedback mechanism of the pipa music score feature information extraction optimization algorithm unit. At the same time, the fusion of sequence features of the pipa music score note sequence image integration algorithm unit can also participate in the calculation process of the pipa music score feature information extraction optimization algorithm unit, and have a direct connection with the pipa music score note image feature extraction algorithm unit. The interdependence and entanglement between the three algorithms help to extract diverse feature data from the target score. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 This is a system flow chart of the feature information construction method applicable to the construction of pipa music score database;
[0051] Figure 2 The figure is a schematic diagram of the overall structure of the feature information construction method suitable for constructing a pipa music score database. DETAILED DESCRIPTION
[0052] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0053] Example 1: Please refer to Figure 1 to Figure 2 ,This implementation provides a feature information construction method suitable for constructing a pipa music score database, including a pipa music score data collection module, a pipa music score data processing module, a pipa music score feature information extraction module, a database unit and an application and output module;
[0054] The Pipa music score data collection module collects the image data of the Pipa music score through public data resources and paper music scores, and performs denoising, binarization and standardization on these data through the Pipa music score data processing module, and then locates, identifies and extracts each note on the music score through the edge detection module, wherein a threshold T is set in the edge detection module to determine the boundary extraction of the note, and then the extracted note data is subjected to feature extraction through the Pipa music score feature information extraction module to obtain the comprehensive feature value of the target Pipa music score, which integrates the image feature and sequence feature of the note, and can simultaneously consider the local and overall structure of the note, and uploads the integrated feature information data to the database unit for storage, and then through the application and output module for subsequent retrieval of the Pipa music score after the feature information is constructed;
[0055] The comprehensive characteristic value finally obtained by the pipa music score feature information extraction module is numerically analyzed to obtain the extraction effect, which is good or bad. When the extraction effect is good, it is output to the database unit. When the extraction effect is not good, the signal is fed back to the pipa music score data processing module. By adjusting the threshold in the pipa music score data processing module accordingly, the note characteristic value, note sequence characteristic index and comprehensive characteristic value in the pipa music score feature information extraction module are adjusted, and the accuracy of the pipa music score feature information construction is optimized through the feedback mechanism.
[0056] The Pipa music score feature information extraction module includes: a Pipa music score note image feature extraction algorithm unit, a Pipa music score note sequence image integration algorithm unit and a Pipa music score feature information extraction optimization algorithm unit.
[0057] In this embodiment: by using the note image feature extraction algorithm unit of the pipa music score, the area of each note and the size of the note in the image can be substituted into the calculation to obtain the feature value of each note, which is of great help in identifying different types of notes, such as half notes, quarter notes, etc., and the size of the note can usually reflect the duration of the note in the pipa music, and the note representation of the point or line in the pipa music score can be easily distinguished by the shape factor substitution calculation, so that the actual situation and characteristics of each note are efficiently collected, and the note sequence of the pipa music score is used to identify the notes of different types. The use of the column image integration algorithm unit can substitute the spacing of notes and the changes in high and low notes for calculation, and the spacing and high and low notes changes can reflect the rhythm type of the music, and the stability and uniformity of the spacing can also reflect the category and style of the music laterally. The high and low notes can reflect the melody and direction of the music, and then in practical applications, the style of the target pipa music score can be divided, so that the rhythm and style features derived from this part of the sequence features in the score can be concretely represented and the features can be extracted and collected, so as to facilitate subsequent retrieval and use in the database, and the feature information extraction optimization algorithm unit of the pipa music score can extract the feature information of the pipa music score. The characteristic values of the notes and the characteristic indexes of the note sequence are integrated to form a comprehensive and comprehensive feature representation, and then the result calculated by the feature information extraction optimization algorithm unit of the pipa score can take into account the local features and global structure of the notes at the same time, so as to fully extract the characteristics of the individual notes and the overall notes for the characteristic values of the pipa score, thereby making the feature extraction construction of the score richer, reducing the limitations of the feature information construction, making the collected features more diverse, and can also optimize the values of the note image feature extraction algorithm unit of the pipa score to the feature information extraction optimization algorithm unit of the pipa score in the form of feedback, so that the obtained feature results are more reliable and stable, and in subsequent actual use, it is convenient to compare the characteristic values between multiple scores to obtain the corresponding differences and similarities, which improves the excellent value for music creation and teaching. In summary, the above method realizes a comprehensive and in-depth analysis of the pipa score by combining the image features and sequence information of the notes. This method can solve the problems of relying on manual interpretation, low efficiency and error-proneness in traditional score analysis, and provides objective and accurate data support for tasks such as score recognition, classification, and style analysis.
[0058] See also Figure 1 to Figure 2 ,The note image feature extraction algorithm unit of Pipa music score is as follows:
[0059]
[0060] Where: n is the serial number of the note in the music score;
[0061] NAA nis the eigenvalue of the nth note, and similarly NAA is the eigenvalue of each note;
[0062] NAB n is the area of the nth note;
[0063] NAC n is the circumference of the nth note;
[0064] The shape individual component measures the closeness of the note shape to a circle, with values closer to 0 indicating a shape that is closer to a circle and values closer to 1 indicating a more irregular shape. This captures the variation in note shape and helps distinguish different note types or styles.
[0065] In this embodiment, in the analysis process of pipa music score, the existing methods mostly rely on manual interpretation and standardization, which is relatively inefficient. The note image feature extraction algorithm unit of pipa music score can automatically extract the features of the notes from the music score image, providing objective and accurate data support for subsequent music score recognition, classification, retrieval and other tasks. n is the area of the nth note, which reflects the size of the note in the image, and can be used to analyze the relative importance or volume of the note. This formula can identify each note in the pipa score image and extract its features. The extracted features have information such as the size, shape and position of the corresponding note, which plays a role similar to a scanning device and can quickly calculate the information of the note. The note image feature extraction algorithm unit of the pipa score can convert the notes in the image into feature values for subsequent calculation and analysis and comparison.
[0066] See also Figure 1 to Figure 2 , the note sequence image integration algorithm unit of the pipa music score is as follows:
[0067]
[0068] Where: j is a pair of adjacent notes in the note sequence;
[0069] NBA j is the index of the sequence feature analysis result between the jth group of adjacent notes;
[0070] NBB j,j+1 is the spacing between adjacent notes;
[0071] NBC is the average of all note areas;
[0072] |NBD j,j+1 | is the change in pitch;
[0073] a and b are weight coefficients used to adjust the impact of area and pitch changes on sequence features.
[0074] In this embodiment: the notes in the score not only have image features, but also have sequence associations and changes. The note sequence image integration algorithm unit of the pipa score can integrate these different dimensional information to provide a more comprehensive and in-depth feature representation for subsequent score analysis, thereby helping to solve the shortcomings caused by relying only on single dimensional information in tasks such as score recognition, classification, and style analysis, making the feature information construction more accurate. NBC is the average value of the area of all notes. When it is used to normalize the area feature, it makes it comparable with other features, and NBB j,j+1 It reflects the position relationship of notes in the sequence, which is of great significance for analyzing music elements such as rhythm and beat. | NBD j,j+1 | describes the pitch difference between notes, which is the basis of music melody and harmony analysis. The note image feature extraction algorithm unit of the pipa score extracts the image features of a single note, but a piece of music is composed of a series of notes, which are closely related to each other, so we need the note sequence image integration algorithm unit of the pipa score to integrate the features of these notes and consider their positional relationship in the sequence. This formula is like a "translator" that can translate the image features of notes into higher-level sequence features. The note sequence image integration algorithm unit of the pipa score combines the results of the note image feature extraction algorithm unit of the pipa score with the note spacing and pitch changes, making the correlation between the note sequence image integration algorithm unit of the pipa score and the note image feature extraction algorithm unit of the pipa score stronger. This formula comprehensively considers the image features of notes and the spacing, pitch and other change factors in the note sequence, and calculates the sequence feature analysis result index between notes. Through this algorithm, we can combine the image features of notes with sequence information to obtain a more comprehensive feature representation.
[0075] See also Figure 1 to Figure 2 ,The feature information extraction optimization algorithm unit of Pipa music score is as follows:
[0076]
[0077] Where: c is the number of note images;
[0078] d represents the number of note sequences;
[0079] e is the weight in NAA and f is the weight in NBA;
[0080] NCA is a value indicating feature importance.
[0081] In this embodiment: the algorithm can dynamically fuse the feature value of the note and the feature index of the note sequence, so that the feature representation is more in line with the actual feature information construction requirements, and the note image feature extraction algorithm unit of the pipa music score and the note sequence image integration algorithm unit of the pipa music score are based on the extraction and calculation of data and features, so the feature information extraction optimization algorithm unit of the pipa music score integrates the two to calculate and evaluate the actual quality of these features, and outputs the database and re-extracts the feature data according to the actual situation of the features. The feature information extraction optimization algorithm unit of the pipa music score integrates the image features and sequence features of the notes and generates a global comprehensive feature value. This value is not only used to evaluate the effect of the current feature extraction, but also adjusts the value calculated by the note image feature extraction algorithm unit of the pipa music score to the feature information extraction optimization algorithm unit of the pipa music score through a feedback mechanism, so as to optimize the subsequent feature extraction process to provide strong support for the subsequent music score analysis. By iterating this process, we can gradually improve the accuracy and effectiveness of feature extraction. In this way, feature information that is more suitable for the pipa music score database is constructed. This method combines the knowledge of image processing and music analysis, and provides strong support for subsequent music score analysis, classification, retrieval and other tasks. In this way, the pipa music score note image feature extraction algorithm unit, the pipa music score note sequence image integration algorithm unit and the pipa music score feature information extraction optimization algorithm unit form a closed-loop system. The note image features extracted by the pipa music score note image feature extraction algorithm unit not only directly participate in the calculation of the pipa music score note sequence image integration algorithm unit, but also continuously adjust the parameters through the feedback mechanism of the pipa music score feature information extraction optimization algorithm unit. Similarly, the sequence fusion features calculated by the pipa music score note sequence image integration algorithm unit also participate in the calculation of the pipa music score feature information extraction optimization algorithm unit, and are connected with the pipa music score note image feature extraction algorithm unit. This interdependent and iterative relationship helps to extract more accurate and meaningful feature information from the pipa music score image, and provides support for subsequent music score analysis, classification or retrieval tasks.
[0082] The feature information extraction optimization algorithm unit of the pipa music score is further described as follows:
[0083] First, convert NCA into a percentage and perform further calculations on the feature information extraction optimization algorithm unit of the pipa score:
[0084]
[0085] Of which: NAA n is the eigenvalue of the nth note, then extract the eigenvalues of all notes and compare all the calculated NAA values to find the maximum value, which is the NAA max ;
[0086] Same as NBA j is the index of the sequence characteristic analysis result between the jth group of adjacent notes, and then the NBA value of the sequence characteristic index between all adjacent groups of notes is obtained, and the maximum value is NBA. max ;
[0087] Therefore, NAA e The result is the percentage value of NCA. When NAA e When the value of is within 31%-100%, the corresponding extraction result is very good. e When the value is between 0% and 30%, the corresponding extraction result is not good, which is then fed back to the edge detection module in the pipa music score data processing module to change the T threshold in the edge detection module. By lowering the value of the T threshold, more pixel values are obtained to improve the note boundary recognition range in the pipa music score data processing module. This feedback mechanism is used to continuously adjust the characteristic value of the note, the characteristic index of the note sequence, and the comprehensive characteristic value of the overall note.
[0088] In this embodiment: music score analysis often needs to comprehensively consider information from multiple aspects, and different music scores may have different feature importances. The feature information extraction optimization algorithm unit of the pipa music score can automatically optimize the values involved in the calculation through a feedback mechanism, so that the analysis results are more accurate and reliable, which helps to solve the problems of performance degradation or misjudgment caused by the fixed limitations of data collection and improper feature weight setting in music score analysis. This method preferentially normalizes the values calculated by the note image feature extraction algorithm unit of the pipa music score and the values calculated by the note sequence image integration algorithm unit of the pipa music score, so that the two parts of the values have the characteristics of percentages, which makes it easier for the values calculated by the feature information extraction optimization algorithm unit of the pipa music score to have the same percentage characteristics, so as to eAn intuitive comparison of numerical values helps users understand that, in this method, through this feedback mechanism, the threshold T can be continuously optimized and improved according to the actual situation, so that the feature collection of the pipa music score data processing module is continuously improved and changed, and the feedback is given to the subsequent algorithm unit, so that the numerical value of each algorithm is also changed accordingly, and the final integrated characteristic value of the overall note is also continuously optimized and adjusted. In this optimization process, the note feature extraction can be made more accurate and effective, and the result output by the feature information extraction optimization algorithm unit of the pipa music score is further more accurate, so that the final music score database construction is more beneficial and efficient. By changing the numerical value in the pipa music score data processing module, the subsequent three algorithms are affected, and the feature information extraction optimization algorithm unit of the pipa music score is the basis for affecting the numerical optimization in the pipa music score data processing module, so that the mutual influence between the three algorithms is entangled, making the output data more efficient.
[0089] Embodiment 2, based on the above embodiment:
[0090] See also Figure 1 and Figure 2 ,The devices used in the Pipa music score data collection module are : ,computer, scanner and storage device. The computer is used to run the image ,processing algorithm, the scanner is used to scan the paper music score and convert it into ,digital images, and the storage device is used to cache and process the scanned music score ,image.
[0091] In this embodiment: the equipment used in the pipa music score data collection module is used to collect and identify data of the pipa music scores in paper and electronic forms, thereby improving the efficiency of constructing feature information.
[0092] The pipa music score data processing module includes: an image denoising unit, a binarization and standardization unit, an edge detection module and a contour extraction unit. The image denoising unit is used to eliminate noise and stains in the image to reduce interference factors. The binarization and standardization unit is used to convert the image into a binary image and standardize the image size. The edge detection module and the contour extraction unit are used to identify the boundaries of the notes and locate each note. Finally, the preprocessed pipa music score image, note contour information and position information are output through the pipa music score data processing module.
[0093] In this embodiment: by denoising the image of the pipa music score, the noise spots, stains and other interference factors in the image can be filtered out, so that the extracted data is more accurate, and the image is converted into a grayscale image to facilitate subsequent feature extraction and then binarized to separate the notes from the background, and then the image size is standardized so that the music score image has a suitable size, and then the information in the target music score is extracted through the edge detection module and the contour extraction unit to improve the data collection effect of the pipa music score.
[0094] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A method for constructing feature information suitable for constructing a pipa music score database, characterized in that: The following steps are involved: Image preprocessing: preprocess the input pipa music score image; Note image feature extraction: For each preprocessed music score image, use the edge detection module and contour extraction technology to identify and locate each note, and set a threshold T in the edge detection module to determine which pixels belong to the boundary of the note, so as to extract the corresponding image features and sequence features, and calculate the area and perimeter of each note; The characteristic value of each note is calculated by the perimeter and area of each note; The characteristic index of the note sequence is calculated by using the characteristic value of each note and the area value of each note; The comprehensive characteristic value of the whole note is calculated through the characteristic index of the note sequence and the characteristic value of the note; Then the comprehensive feature values of the whole note are compared. If the feature extraction effect is good, it is directly output to the database to complete the construction of the feature information of the music database. If the extraction is not good, it is fed back to the threshold T to reduce the value of the threshold T to obtain more pixel values to improve the recognition range of the note boundary, thereby affecting the feature values of subsequent notes, the feature index of the note sequence and the comprehensive feature value of the whole note. The integrated feature information data is uploaded to the database unit for storage, and then the application and output module is used to prepare for the subsequent retrieval of the pipa music score after the feature information is constructed.
2. The feature information construction method suitable for constructing a pipa music score database according to claim 1, characterized in that: The characteristic information construction method includes a pipa music score data collection module, a pipa music score data processing module, a pipa music score characteristic information extraction module, a database unit and an application and output module. The pipa music score data collection module collects the image data of the pipa music score through public data resources and paper music scores, and performs denoising, binarization and standardization processing on these data through the pipa music score data processing module, and then locates, identifies and extracts each note on the music score through the edge detection module, wherein a threshold T is set in the edge detection module to determine the boundary extraction of the note, and then the extracted note data is subjected to feature extraction through the pipa music score feature information extraction module to obtain a comprehensive feature value of the target pipa music score, the comprehensive feature value integrates the image feature and sequence feature of the note, and can simultaneously consider the local and overall structure of the note, and uploads the integrated feature information data to the database unit for storage, and then through the application and output module for subsequent retrieval of the pipa music score after the feature information is constructed; The comprehensive characteristic value finally obtained by the pipa music score feature information extraction module is numerically analyzed to obtain the extraction effect, which is good or bad. When the extraction effect is good, it is output to the database unit. When the extraction effect is not good, the signal is fed back to the pipa music score data processing module. By adjusting the threshold value in the pipa music score data processing module accordingly, the note characteristic value, note sequence characteristic index and comprehensive characteristic value in the pipa music score feature information extraction module are adjusted, and the accuracy of the pipa music score feature information construction is optimized through the feedback mechanism. The Pipa music score feature information extraction module includes a Pipa music score note image feature extraction algorithm unit, a Pipa music score note sequence image integration algorithm unit and a Pipa music score feature information extraction optimization algorithm unit; The note image feature extraction algorithm unit of the pipa music score is as follows: Where: n is the serial number of the note in the music score; NAA n is the eigenvalue of the nth note, and similarly NAA is the eigenvalue of each note; NAB n is the area of the nth note; NAC n is the circumference of the nth note; The shape individual component measures the closeness of the note shape to a circle, with values closer to 0 indicating a shape that is closer to a circle and values closer to 1 indicating a more irregular shape, thus capturing the variation in note shape; The note sequence image integration algorithm unit of the pipa music score is as follows: Where: j is a pair of adjacent notes in the note sequence; NBA j is the index of the sequence feature analysis result between the jth group of adjacent notes; NBB j,j+1 is the distance between adjacent notes; NBC is the average of all note areas; |NBD j,j+1 | is the change in pitch; a and b are weight coefficients used to adjust the impact of area and pitch changes on sequence features.
3. The feature information construction method suitable for constructing a pipa music score database according to claim 2, characterized in that: The feature information extraction optimization algorithm unit of the pipa music score is as follows: Where: c is the number of note images; d represents the number of note sequences; e is the weight in NAA and f is the weight in NBA; NCA is a value indicating feature importance.
4. The feature information construction method suitable for constructing a pipa music score database according to claim 3, characterized in that: The feature information extraction optimization algorithm unit of the pipa music score is further processed as follows: first, NCA is converted into a percentage, and the feature information extraction optimization algorithm unit of the pipa music score is further processed: Of which: NAA n is the eigenvalue of the nth note, then extract the eigenvalues of all notes and compare all the calculated NAA values to find the maximum value, which is the NAA max ; Same as NBA j is the index of the sequence characteristic analysis result between the jth group of adjacent notes, and then the NBA value of the sequence characteristic index between all adjacent groups of notes is obtained, and the maximum value is NBA. max ; Therefore, NAA e The result is the percentage value of NCA.
5. The feature information construction method suitable for constructing a pipa music score database according to claim 4, characterized in that: When NAA e When the value of is within 31%-100%, the corresponding extraction result is very good. e When the value of is between 0% and 30%, the corresponding extraction result is not good, which is then fed back to the edge detection module in the pipa music score data processing module to change the T threshold in the edge detection module. By lowering the value of the T threshold, more pixel values are obtained to improve the note boundary recognition range in the pipa music score data processing module. This feedback mechanism is used to continuously adjust the characteristic value of the note, the characteristic index of the note sequence, and the comprehensive characteristic value of the overall note.
6. The feature information construction method suitable for constructing a pipa music score database according to claim 2, characterized in that: The devices used in the pipa music score data collection module include a computer, a scanner and a storage device. The computer is used to run an image processing algorithm, the scanner is used to scan paper music scores and convert them into digital images, and the storage device is used to cache and process the scanned music score images.
7. The feature information construction method suitable for constructing a pipa music score database according to claim 2, characterized in that: The pipa music score data processing module includes: an image denoising unit, a binarization and standardization unit, an edge detection module and a contour extraction unit.
8. The feature information construction method suitable for constructing a pipa music score database according to claim 7, characterized in that: The image denoising unit is used to eliminate noise and stains in the image to reduce interference factors, the binarization and standardization unit is used to convert the image into a binary image and standardize the image size, the edge detection module and contour extraction unit are used to identify the boundaries of the notes and locate each note, and finally the preprocessed pipa music score image, note contour information and position information are output through the pipa music score data processing module.
Citation Information
Cited By
Ethnic minority music database construction and application system
WO2026113437A1
