Music-based dance motion synthesis method and device, equipment, medium and product
By obtaining music clips and position formations, and selecting individual and walking dance clips, automatic synthesis of collective dances is realized, which solves the problem of time-consuming choreography and is suitable for various dance groups.
Patent Information
- Application Number
- CN202310356078.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-23
- Publication Date
- 2024-09-24
AI Technical Summary
The choreography of collective dances in the existing technology relies on the experience of the choreographer, which is time-consuming and not suitable for dance groups that lack choreography experience. How to quickly generate dance movements is an issue that needs to be solved urgently.
By obtaining music clips and corresponding position formations, single dance clips and walking dance clips are selected based on the music clips to achieve automated synthesis of group dances and improve choreography efficiency.
It realizes the automated synthesis of collective dance movements, reduces choreography time, and is suitable for dance groups that lack choreography experience.
Smart Images

Figure CN118692433A
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computer technology, and in particular to a method, device, equipment, medium and product for synthesizing dance movements based on music. Background Art
[0002] Group dance accompanied by music is a high-level art that combines auditory and visual enjoyment. Dancers in group dance will change their dance moves and positions according to the melody, rhythm and intensity of the music, so as to convey the emotions of the music to the audience through dance.
[0003] In related technologies, professional choreographers will match different dance moves to various parts of the music based on their understanding of the music and dance characteristics such as dance posture, stance, and step intensity.
[0004] However, in the above-mentioned related technologies, the choreography of collective dance mainly depends on the experience of the choreographer, and the manual choreography is quite time-consuming, and it is necessary to repeat the choreography to finally determine the choreography plan. It is not suitable for some dance groups that lack choreography experience and are mainly for entertainment. Therefore, how to quickly generate dance movements for collective dance based on music is an important problem that needs to be solved urgently. Summary of the invention
[0005] The present application provides a method, device, equipment, medium and product for synthesizing dance movements based on music, and the technical solution is as follows:
[0006] According to one aspect of the present application, a method for synthesizing dance movements based on music is provided, the method comprising:
[0007] Obtain at least one music clip corresponding to the music and a standing formation corresponding to the music clip; the music clip is a clip with n music beats as a unit, n is a positive integer; the standing formation refers to a formation formed based on the positions of at least two dancers in the collective dance;
[0008] Selecting dance segments based on the music segments to obtain individual dance segments corresponding to individual dancers in the collective dance; the dance segments refer to segments with n dance beats as units; the dance segments include at least one dance action; the dance segments are in a dance segment database;
[0009] The dance segments are selected based on the individual dance segments and the standing formations to obtain the moving dance segments of the moving dancers in the moving process; the moving dancers refer to the dancers who need to move their positions in the process of switching the standing formations;
[0010] Based on the individual dance segment and the movement dance segment, the collective dance corresponding to the music is obtained.
[0011] According to one aspect of the present application, a music-based dance movement synthesis device is provided, the device comprising:
[0012] An acquisition module, used to acquire at least one music clip corresponding to the music and a standing formation corresponding to the music clip; the music clip is a clip with n music beats as a unit, n is a positive integer; the standing formation refers to a formation formed based on the positions of at least two dancers in a collective dance;
[0013] A selection module is used to select a dance segment based on the music segment to obtain a single dance segment corresponding to a single dancer in the collective dance; the dance segment refers to a segment with n dance beats as a unit; the dance segment includes at least one dance action; the dance segment is one in a dance segment database;
[0014] The selection module is used to select the dance segment based on the single dance segment and the standing formation to obtain a dance segment of a moving dancer in the process of moving; the moving dancer refers to a dancer who needs to move during the switching process of the standing formation;
[0015] A synthesis module is used to obtain the collective dance corresponding to the music based on the individual dance segment and the movement dance segment.
[0016] According to another aspect of the present application, a computer device is provided, which includes: a processor and a memory, wherein at least one computer program is stored in the memory, and the at least one computer program is loaded and executed by the processor to implement the music-based dance movement synthesis method as described above.
[0017] According to another aspect of the present application, a computer storage medium is provided, in which at least one computer program is stored. The at least one computer program is loaded and executed by a processor to implement the music-based dance movement synthesis method as described above.
[0018] According to another aspect of the present application, a computer program product is provided, which includes a computer program stored in a computer-readable storage medium; the computer program is read and executed from the computer-readable storage medium by a processor of a computer device, so that the computer device performs the music-based dance movement synthesis method described above.
[0019] The beneficial effects of the technical solution provided by this application include at least:
[0020] By obtaining at least one music clip corresponding to the music and the standing formation corresponding to the music clip; selecting dance clips based on the music clips to obtain a single dance clip corresponding to a single dancer in the collective dance; selecting dance clips based on the single dance clips and the standing formation to obtain a moving dance clip of the moving dancer in the process of moving; and obtaining a collective dance corresponding to the music based on the single dance clips and the moving dance clips. The present application associates music clips with dance clips based on music clips and standing formations, thereby realizing the automatic synthesis of collective dance movements and improving the efficiency of choreographing dance movements. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0022] Figure 1 is a schematic diagram of a music-based dance action synthesis method provided by an exemplary embodiment of the present application;
[0023] Figure 2 is a schematic diagram of the architecture of a computer system provided by an exemplary embodiment of the present application;
[0024] Figure 3 is a flow chart of a method for synthesizing dance movements based on music provided by an exemplary embodiment of the present application;
[0025] Figure 4 is a flow chart of a method for synthesizing dance movements based on music provided by an exemplary embodiment of the present application;
[0026] Figure 5 is a schematic diagram of collective dance synthesis provided by an exemplary embodiment of the present application;
[0027] Figure 6 is a schematic diagram of a common standing formation provided by an exemplary embodiment of the present application;
[0028] Figure 7 It is a schematic diagram of reasonable / unreasonable movement provided by an exemplary embodiment of the present application;
[0029] Figure 8 is a schematic diagram of obtaining a dance segment provided by an exemplary embodiment of the present application;
[0030] Fig. 9 is a schematic diagram of a synthetic collective dance provided by an exemplary embodiment of the present application;
[0031] Fig.10 This is the workflow of a music-based dance action synthesis system provided by an exemplary embodiment of the present application;
[0032] Fig.11 is a block diagram of a music-based dance movement synthesis device provided by an exemplary embodiment of the present application;
[0033] Fig.12 It is a structural diagram of a computer device provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0034] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0035] The present application embodiment provides a schematic diagram of a method for synthesizing dance movements based on music, such as Figure 1 As shown, the method can be executed by a computer device, and the computer device can be a terminal or a server.
[0036] Exemplarily, the computer device obtains at least one music clip 10 corresponding to the music and the standing formation corresponding to the music clip 10; the computer device selects a dance clip 20 based on the music clip 10, and obtains a single dance clip 30 corresponding to a single dancer in the group dance; the computer device selects dance clips based on the single dance clip 30 and the standing formation, and obtains a moving dance clip of the moving dancer in the process of moving; the computer device obtains a group dance 40 corresponding to the music based on the single dance clip and the moving dance clip.
[0037] The music segment 10 is a segment with n music beats as a unit, where n is a positive integer. For example, each music segment 10 includes 8 music beats, that is, 8 music beats constitute a music segment 10.
[0038] A standing formation is a formation based on the positions of at least two dancers in a group dance.
[0039] The dance segment 20 refers to a segment in units of n dance beats; the dance segment 20 includes at least one dance action. The dance segment 20 is a segment in the dance segment database.
[0040] It should be noted that any two music clips 10 in the embodiment of the present application have the same number of music beats, but the time of the two music clips 10 is not necessarily the same. Similarly, any two dance clips 20 have the same number of dance beats, but the time of the two dance clips 20 is not necessarily the same.
[0041] A moving dancer is one who needs to move when switching between positions.
[0042] The standing formation is the static distribution of dancers' standing positions.
[0043] The switching of the standing formation refers to the formation switching process between at least two standing formations. For example, the music clip 10 includes 8 music beats, the first 4 music beats correspond to the standing formation 1, and the last 4 music beats correspond to the standing formation 2. The dancers who need to move are determined based on the standing formation 1 and the standing formation 2.
[0044] Exemplarily, the step of obtaining the single dance segment 30 based on the music segment by the computer device includes:
[0045] In some embodiments, the computer device obtains at least one candidate dance segment; based on the first matching value, the computer device selects a single dance segment 30 corresponding to a single dancer from the at least one candidate dance segment.
[0046] The first matching value is the matching value between the music segment 10 and the candidate dance segment 20 .
[0047] The individual dance segment 30 refers to the dance process of a dancer in a music segment 10 .
[0048] The first matching degree value includes at least one of a feature distance value, a time difference value, and a connection distance value, but is not limited thereto, and the embodiments of the present application do not make specific limitations on this.
[0049] In some embodiments, the computer device obtains music features corresponding to the music clip 10 and dance features corresponding to the candidate dance clips; the computer device selects a single dance clip 30 corresponding to a single dancer in at least one candidate dance clip based on the feature distance value between the music features and the dance features.
[0050] Optionally, the feature distance value is used to represent the similarity value between the music feature and the dance feature.
[0051] Optionally, the feature distance value includes at least one of Euclidean distance, cosine similarity, normalized Euclidean distance, and Hamming distance, but is not limited thereto and is not specifically limited in the embodiments of the present application.
[0052] In some embodiments, the computer device obtains the music time corresponding to the music clip 10 and the dance time corresponding to the candidate dance clips; the computer device selects a single dance clip 30 corresponding to a single dancer in at least one candidate dance clip based on the time difference value between the music time and the dance time.
[0053] The time difference value is used to represent the difference between the music time corresponding to the music segment of n music beats and the dance time corresponding to the dance segment of n dance beats.
[0054] For example, the music time corresponding to the music clip 10 of 8 music beats is 5 seconds, and the dance time corresponding to the dance clip 20 of 8 dance beats is 7 seconds, and the time difference between the music time and the dance time is 2 seconds.
[0055] In some embodiments, the computer device obtains a pre-dance feature corresponding to a pre-dance segment matching a previous music segment and a dance feature corresponding to a candidate dance segment; the computer device selects a single dance segment 30 corresponding to a single dancer in at least one candidate dance segment based on a connection distance value between the pre-dance feature and the dance feature.
[0056] The connection distance value is used to indicate the connection between two dance segments 20 .
[0057] Exemplarily, the step of obtaining the walking dance segment based on the single-person dance segment 30 and the standing formation by the computer device includes:
[0058] In some embodiments, the computer device determines a moving dancer in a standing formation based on the standing formation corresponding to the music clip 10; the computer device selects a moving dance clip corresponding to the moving dancer from at least one candidate dance clip based on a second matching value between a moving parameter corresponding to the moving dancer and the candidate dance clip.
[0059] The switching of standing positions and formations is based on the rhythm of the music.
[0060] Rhythm card points are the nodes where the rhythm of music changes during playback.
[0061] For example, music includes a verse, a chorus, a prelude, an interlude, etc., and the position formation is changed at the end of each change in the music structure.
[0062] Optionally, the rhythm checkpoint is located at a switching point between two music clips 10, or the rhythm checkpoint is located at any position in the music clip 10, which is not specifically limited in the embodiment of the present application.
[0063] For example, when the rhythm card point is located at the switching point of two music clips 10, when the first music clip corresponds to the first standing formation and the second music clip corresponds to the second standing formation, the dancers moving in the collective dance and the corresponding moving parameters of the dancers moving are determined based on the position changes of the dancers in the first standing formation and the second standing formation. For example, dancer a is in position A in the first standing formation, and dancer a is in position B in the second standing formation. Dancer a performs a solo dance clip corresponding to the first music clip in the first music clip, and dancer a performs a moving dance clip corresponding to the second music clip in the second music clip.
[0064] For example, when the rhythm check point is located at any position in the music clip 10, for example, the music clip 10 includes 8 music beats, the rhythm check point is located at the 4th music beat in the music clip 10, and dancer a is a moving dancer, then dancer a performs a solo dance segment in the first 4 music beats, and dancer a performs a moving dance segment in the last 4 music beats.
[0065] The movement parameters include the movement distance of the dancer in the music clip and the dance movements in the single dance clip.
[0066] The second matching value includes at least one of a walking distance difference and a dance movement similarity value, but is not limited thereto. The embodiment of the present application does not make any specific limitation on this.
[0067] In some embodiments, the computer device obtains the movement distance value of the moving dancer in the standing formation corresponding to the music clip 10; the computer device selects a movement dance clip corresponding to the moving dancer in at least one candidate dance clip based on the movement distance difference between the movement distance value and the movement distance value of the object in the candidate dance clip.
[0068] The walking distance value is used to indicate the distance the dancer needs to move in the standing formation.
[0069] In some embodiments, the computer device obtains a first dance move of a moving dancer in a single dance clip 30, and obtains a second dance move of an object in a candidate dance clip; the computer device selects a moving dance clip corresponding to the moving dancer from at least one candidate dance clip based on a dance move similarity value between the first dance move and the second dance move.
[0070] Optionally, the first dance move includes a first starting dance move and a first ending dance move; and the second dance move includes a second starting dance move and a second ending dance move.
[0071] The computer device selects a moving dance segment corresponding to the moving dancer from at least one candidate dance segment based on a first similarity value between a first starting dance move and a second starting dance move; or, the computer device selects a moving dance segment corresponding to the moving dancer from at least one candidate dance segment based on a second similarity value between a first ending dance move and a second ending dance move; or, the computer device selects a moving dance segment corresponding to the moving dancer from at least one candidate dance segment based on the first similarity value and the second similarity value.
[0072] In summary, the method provided in this embodiment obtains at least one music clip corresponding to the music and the standing formation corresponding to the music clip; selects dance clips based on the music clips to obtain individual dance clips corresponding to individual dancers in the collective dance; selects dance clips based on the individual dance clips and the standing formation to obtain the moving dance clips of the moving dancers in the process of moving; and obtains the collective dance corresponding to the music based on the individual dance clips and the moving dance clips. Based on the music clips and the standing formation, this application associates the music clips with the dance clips, realizes the automatic synthesis of collective dance movements, and improves the efficiency of choreographing dance movements.
[0073] Figure 2 The schematic diagram of the architecture of a computer system provided by an embodiment of the present application is shown. The computer system may include: a terminal 100 and a server 200.
[0074] The terminal 100 may be an electronic device such as a mobile phone, a tablet computer, a vehicle-mounted terminal (vehicle computer), a wearable device, a personal computer (PC), a palm image recognition voice interaction device, a palm image recognition home appliance, a vehicle-mounted terminal, an aircraft, an unmanned vending terminal, etc. The terminal 100 may be installed with a client that runs a target application, and the target application may be an application that references dance movement synthesis, or may be other applications that provide a dance movement synthesis function, which is not limited in this application. In addition, this application does not limit the form of the target application, including but not limited to an application (Application, App) installed in the terminal 100, a mini-program, etc., and may also be in the form of a web page.
[0075] The server 200 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services, cloud database, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), and cloud servers providing basic cloud computing services such as big data and artificial palm image recognition platforms. The server 200 may be a backend server of the above-mentioned target application, used to provide backend services for the client of the target application.
[0076] Among them, cloud technology refers to a hosting technology that unifies hardware, software, network and other resources in a wide area network or local area network to realize data computing, storage, processing and sharing. Cloud technology is a general term for network technology, information technology, integration technology, management platform technology, application technology, etc. based on the cloud computing business model. It can form a resource pool, which is used on demand and flexible and convenient. Cloud computing technology will become an important support. The background services of the technical network system require a large amount of computing and storage resources, such as video websites, picture websites and more portal websites. With the high development and application of the Internet industry, in the future, each item may have its own identification mark, and all need to be transmitted to the background system for logical processing. Data of different levels will be processed separately. All kinds of industry data require strong system backing support, which can only be achieved through cloud computing.
[0077] In some embodiments, the above-mentioned server can also be implemented as a node in a blockchain system. Blockchain is a new application mode of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, the platform product service layer, and the application service layer.
[0078] The terminal 100 and the server 200 may communicate with each other via a network, such as a wired or wireless network.
[0079] In the music-based dance action synthesis method provided in the embodiment of the present application, the execution subject of each step can be a computer device, which refers to an electronic device with data calculation, processing and storage capabilities. Figure 2Taking the implementation environment of the scheme shown as an example, the music-based dance movement synthesis method can be executed by the terminal 100 (such as the client of the target application installed and running in the terminal 100 executes the music-based dance movement synthesis method), or the music-based dance movement synthesis method can be executed by the server 200, or the terminal 100 and the server 200 can interact and cooperate to execute it, and the present application does not limit this.
[0080] Figure 3 is a flowchart of a method for synthesizing dance movements based on music provided by an exemplary embodiment of the present application. The method can be executed by a computer device, which can be Figure 2 The terminal 100 or the server 200 in the embodiment. The method comprises:
[0081] Step 302: Obtain at least one music segment corresponding to the music and the standing formation corresponding to the music segment.
[0082] A music clip is a clip consisting of n music beats, where n is a positive integer.
[0083] For example, each music segment includes 8 music beats, that is, 8 music beats constitute a music segment.
[0084] It should be noted that, in the embodiment of the present application, any two music clips have the same number of music beats, but the duration of the two music clips is not necessarily the same.
[0085] A standing formation is a formation based on the positions of at least two dancers in a group dance.
[0086] Optionally, the format of the music includes at least one of an audio compression format (MPEG Audio Layer3, MP3), a lossless audio compression encoding format (Free Lossless Audio Codec, FLAC), and a waveform sound file format (WaveForm, WAV), but is not limited to these, and the embodiments of the present application do not make specific limitations on this.
[0087] The music is played in at least one of a music player, a mini-program, and a web page, but is not limited to this. The embodiments of the present application do not make specific limitations on this.
[0088] The method of obtaining the music clip includes at least one of the following situations:
[0089] 1. The first terminal records the music clip. For example, the first terminal is a terminal that initiates the recording of the music clip. The music clip is recorded by the first terminal, and after the recording is completed, the music clip is stored.
[0090] 2. Obtain a music clip from a stored database / music library, such as obtaining at least one music clip from a music platform database.
[0091] It is worth noting that the above-mentioned method of obtaining music clips is only an illustrative example and is not limited to this in the embodiments of the present application.
[0092] Exemplarily, the computer device obtains at least one music segment corresponding to the music and a standing formation corresponding to the music segment.
[0093] Step 304: Select dance segments based on the music segments to obtain individual dance segments corresponding to individual dancers in the group dance.
[0094] A dance segment is a segment with n dance beats as a unit; a dance segment includes at least one dance action. A dance segment is a segment in a dance segment database.
[0095] It should be noted that, in the embodiment of the present application, any two dance clips have the same number of dance beats, but the duration of the two dance clips is not necessarily the same.
[0096] A group dance is a dance performed by at least two people.
[0097] A solo dance segment is a dance segment performed by only one dancer.
[0098] Exemplarily, the computer device selects dance segments based on the music segments to obtain individual dance segments corresponding to individual dancers in the collective dance.
[0099] Step 306: dance segments are selected based on the individual dance segments and the standing formations to obtain dance segments of the dancers in the process of moving.
[0100] Movement refers to the movement that dancers need to make when switching from one object to another in a group dance.
[0101] A moving dancer is one who needs to move when switching between positions.
[0102] A walking dance clip is a clip where the dancer dances while walking.
[0103] Optionally, there may be no dancers moving in a group dance, that is, the dancers all perform in fixed positions, or, in a group dance, some dancers move positions and some dancers stay in fixed positions.
[0104] Exemplarily, the computer device selects dance segments based on individual dance segments and standing formations to obtain dance segments of the dancers moving in a process of movement.
[0105] Step 308: Based on the individual dance clips and the movement dance clips, obtain a group dance corresponding to the music.
[0106] Exemplarily, the computer device synthesizes the individual dance segments and the positional dance segments based on the individual dance segments and the positional dance segments to obtain a collective dance corresponding to the music.
[0107] In summary, the method provided in this embodiment obtains at least one music clip corresponding to the music and the standing formation corresponding to the music clip; selects dance clips based on the music clips to obtain individual dance clips corresponding to individual dancers in the collective dance; selects dance clips based on the individual dance clips and the standing formation to obtain the moving dance clips of the moving dancers in the process of moving; and obtains the collective dance corresponding to the music based on the individual dance clips and the moving dance clips. Based on the music clips and the standing formation, this application associates the music clips with the dance clips, realizes the automatic synthesis of collective dance movements, and improves the efficiency of choreographing dance movements.
[0108] Figure 4 is a flowchart of a method for synthesizing dance movements based on music provided by an exemplary embodiment of the present application. The method can be executed by a computer device, which can be Figure 2 The terminal 100 or the server 200 in the embodiment. The method comprises:
[0109] Step 402: Obtain at least one music segment corresponding to the music and the standing formation corresponding to the music segment.
[0110] A music clip is a clip consisting of n music beats, where n is a positive integer.
[0111] For example, each music segment includes 8 music beats, that is, 8 music beats constitute a music segment.
[0112] It should be noted that, in the embodiment of the present application, any two music clips have the same number of music beats, but the duration of the two music clips is not necessarily the same.
[0113] A standing formation is a formation based on the positions of at least two dancers in a group dance.
[0114] Exemplarily, the computer device obtains at least one music segment corresponding to the music and a standing formation corresponding to the music segment.
[0115] Step 404: Based on the first matching value between the music segment and the candidate dance segment, a single dance segment corresponding to a single dancer is selected from at least one candidate dance segment.
[0116] A dance segment is a segment with n dance beats as a unit; a dance segment includes at least one dance action. A dance segment is a segment in a dance segment database.
[0117] It should be noted that, in the embodiment of the present application, any two dance clips have the same number of dance beats, but the duration of the two dance clips is not necessarily the same.
[0118] The dance segment database is a database that breaks down the dance data into segments with measures as the unit. For example, if 2.5 hours of dance data is collected and broken down into dance segments with 8 music beats as one measure, about 4,500 dance segments can be obtained.
[0119] A group dance is a dance performed by at least two people.
[0120] A solo dance segment refers to the dance process of one dancer to a piece of music.
[0121] The first matching value is a matching value between the music segment and the candidate dance segment.
[0122] The computer device obtains at least one candidate dance segment; based on the first matching value, the computer device selects a single dance segment corresponding to a single dancer from the at least one candidate dance segment.
[0123] Optionally, the first matching degree value includes at least one of a feature distance value, a time difference value and a connection distance value, but is not limited thereto and is not specifically limited in the embodiments of the present application.
[0124] The formula for calculating the first matching value can be expressed as:
[0125]
[0126] Among them, feat Used to represent the feature distance value, time Used to express the time difference value, £ conn It is used to indicate the connection distance value, w indicates the weight value, d t is the id of the candidate dance segment in the dance segment database at time t, arg represents the selection of the candidate dance segment with the smallest first matching value from the dance segment database, Used to represent the best dance segment at time t.
[0127] Exemplarily, the step of obtaining a single-person dance segment based on the music segment by a computer device includes:
[0128] In some embodiments, a computer device obtains music features corresponding to a music clip and dance features corresponding to a candidate dance clip; the computer device calculates a feature distance value as a first matching value; and based on the first matching value, the computer device selects a single dance clip corresponding to a single dancer from at least one candidate dance clip.
[0129] Optionally, the feature distance value is used to represent the similarity value between the music feature and the dance feature.
[0130] Optionally, the feature distance value includes at least one of Euclidean distance, cosine similarity, normalized Euclidean distance, and Hamming distance, but is not limited thereto and is not specifically limited in the embodiments of the present application.
[0131] The computer device extracts features from the music clip and the candidate dance clip to obtain music features corresponding to the music clip and dance features corresponding to the candidate dance clip. The purpose of feature extraction is to map the music clip and the dance clip to the same space for comparison.
[0132] Optionally, the feature extractor is a neural network with two attention transformer structures.
[0133] The formula for calculating the feature distance value can be expressed as:
[0134]
[0135] Among them, feat () is used to represent the feature distance value, d t is the id of the candidate dance segment in the dance segment database at time t, m t is the id of the music clip at time t, is the dance characteristic at time t, is the musical feature at time t.
[0136] In some embodiments, the computer device obtains the music time corresponding to the music clip and the dance time corresponding to the candidate dance clip; the computer device calculates the time difference value as a first matching value, and the computer device selects a single dance clip corresponding to a single dancer from at least one candidate dance clip based on the first matching value.
[0137] The time difference value is used to represent the difference between the music time and the dance time, or the difference between the music time corresponding to a music segment of n music beats and the dance time corresponding to a dance segment of n dance beats.
[0138] For example, the music time corresponding to a music clip with 8 music beats is 5 seconds, and the dance time corresponding to a dance clip with 8 dance beats is 7 seconds. Then, the time difference between the music time and the dance time is 2 seconds.
[0139] The formula for calculating the time difference value can be expressed as:
[0140] £ time (d t ,m t )=||f time (m t )-f time (d t )||
[0141] Among them, time () is used to represent the time difference value, d t is the id of the candidate dance segment in the dance segment database at time t, m t is the id of the music clip at time t, f time () is a function that calculates the time of a music clip / dance clip.
[0142] In some embodiments, the computer device obtains a previous dance feature corresponding to a previous dance segment that matches a previous music segment and a dance feature corresponding to a candidate dance segment; the computer device calculates a connection distance value as a first matching value; and based on the first matching value, the computer device selects a single dance segment corresponding to a single dancer from at least one candidate dance segment.
[0143] The connection distance value is used to indicate the connection between two dance segments.
[0144] The formula for calculating the connection distance value can be expressed as:
[0145]
[0146] Among them, conn () is used to indicate the connection distance value, d t is the id of the candidate dance segment in the dance segment database at time t, is the previous dance segment corresponding to time t-1, E conn It is a function that calculates the probability of connecting two dance segments.
[0147] Step 406: dance segments are selected based on the individual dance segments and the standing formations to obtain dance segments of the dancers in the process of moving.
[0148] A moving dancer is one who needs to move when switching between at least two standing formations.
[0149] For example, in the first standing formation, dancer a is at position A, and in the second standing formation, dancer a is at position B, so dancer a is a moving dancer.
[0150] A walking dance clip is a clip where the dancer dances while walking.
[0151] Optionally, there may be no dancers moving in a group dance, that is, the dancers all perform in fixed positions, or, in a group dance, some dancers move positions and some dancers stay in fixed positions.
[0152] The switching of standing positions and formations is based on the rhythm of the music.
[0153] Rhythm card points are the nodes where the rhythm of music changes during playback.
[0154] For example, the music structure includes a verse, a chorus, a prelude, an interlude, etc., and the position formation is switched at the end of each change of the music structure.
[0155] For example, Figure 5 The schematic diagram of collective dance synthesis shown in the figure includes at least one pre-set candidate standing formation 501 in the dance segment database. After determining the pre-set candidate standing formation 501 in the dance segment database, the reasonable movement 502 between the two formations in the dance segment database is calculated. For example, the collective dance includes 5 dancers, numbered 1-5 respectively. When switching from the source standing formation to the target standing formation, dancers 1 and 3 are moved. By calculating the two-by-two formations in the dance segment database, the optimal standing formation 503 corresponding to each object is finally obtained.
[0156] For example, Figure 6 The diagram shows a common standing formation, which shows eight common standing formations. Each circle in the standing formation represents the position of a dancer, and different shades represent different meanings. A light-colored single-sided slash indicates that the dance movements of this position are consistent with the results of the single-person dance clip, and a dark-colored single-sided slash indicates that the dance movements of this position are mirror-symmetrical with the dance movements of the position corresponding to the light-colored single-sided slash. A double slash indicates that this position is a highlighted position and needs to be highlighted, so their movements will be resynthesized. The synthesis method is consistent with the single-person dance clip, but when searching for dance clips, the dance clips used in the original results will be excluded to keep the dance movements of the double-slash position unique.
[0157] For example, Figure 7The schematic diagram of reasonable / unreasonable movement is shown in the figure, and three movement methods are shown in the figure. Reasonable movement means that the movement routes of the dancers in the collective dance from the source station formation 701 to the target station formation 702 will not intersect with each other, thereby forming a collision. The transition station formation 703 is the movement route from the source station formation 701 to the target station formation 702. Since the movement time in the dance performance is very short, the dancers generally walk in a straight line to quickly move to the next formation position. We assume here that all movements are straight-line movements. (a) and (b) in the figure respectively show two unreasonable movement methods. From (a), it can be seen that when positions 1, 2, and 3 move to the target position, they will collide because the routes they walk overlap; from (b), it can be seen that when 1 and 3 move, they will collide because they intersect with each other. And (c) shows a reasonable movement, where 1 and 3 will not collide when they move to the target position. We can use a simple judgment of the overlap or intersection of two straight lines to calculate a reasonable movement combination. If there are reasonable movement combinations in Position Formation 1 and Position Formation 2, then Position Formation 1 and Position Formation 2 can be adjacent.
[0158] Exemplarily, the step of obtaining the walking dance segment based on the single-person dance segment and the standing formation by the computer device includes:
[0159] In some embodiments, the computer device determines a moving dancer in a standing formation based on the standing formation corresponding to the music clip; and the computer device selects a moving dance clip corresponding to the moving dancer from at least one candidate dance clip based on a second matching value.
[0160] The second matching value is the matching value between the movement parameters corresponding to the moving dancer and the candidate dance segment.
[0161] The movement parameters include the movement distance of the dancer in the music clip and the dance movements in the single dance clip.
[0162] The second matching value includes at least one of a walking distance difference and a dance movement similarity value, but is not limited thereto. The embodiment of the present application does not make any specific limitation on this.
[0163] In some embodiments, the computer device obtains the movement distance value of the moving dancer in the standing formation corresponding to the music clip; the computer device calculates the movement distance difference as a second matching value; and the computer device selects a movement dance clip corresponding to the moving dancer from at least one candidate dance clip based on the second matching value.
[0164] The walking distance value is used to represent the distance that the walking dancer needs to move in the standing formation, or the walking distance difference value refers to the difference between the walking distance value and the moving distance value of the object in the candidate dance segment.
[0165] The target position of the dancers in the standing formation can be expressed as:
[0166]
[0167] Among them, F k Indicates the standing formation. Represents the position of the i-th dancer in the standing formation.
[0168] The time when the i-th dancer in the standing formation moves is time b m , the position after the dance segment j is:
[0169] Then, the calculation formula of the travel distance value can be expressed as:
[0170]
[0171] Among them, dist is the movement distance value, i represents the i-th dancer, j represents the j-th movement dance segment, k represents the k-th standing formation, and m represents the movement time.
[0172] In some embodiments, a computer device obtains a first dance move of a moving dancer in a solo dance clip, and obtains a second dance move of an object in a candidate dance clip; the computer device calculates a dance move similarity value as a second matching value; and based on the second matching value, the computer device selects a moving dance clip corresponding to the moving dancer from at least one candidate dance clip.
[0173] The calculation formula of the dance movement similarity value can be expressed as:
[0174]
[0175] in, Indicates the time of movement b m The ID of the dance clip from the previous moment, Indicates the time of movement b m The ID of the dance clip at the next moment, u j Indicates the ID of the dance segment. Smooth is used to indicate whether the dance segment can be connected with the adjacent segments.
[0176] The calculation formula of the second matching value can be expressed as:
[0177] £ trans (i,j,k,m)= smooth £ smooth (i,j,m)+ dist £ dist (i,j,k,m)
[0178] Among them, w smooth and w dist is a constant weight value, take w smooth is 0.3, w dist is 1.
[0179] Based on the second matching value, the calculation formula for the best dance segment can be expressed as:
[0180]
[0181] in, This is the best dance segment.
[0182] It should be noted that the best dance movement clip is a relative concept, not absolute.
[0183] By considering all dancers in the group dance, the matching value of the group dance is form The calculation formula can be expressed as:
[0184]
[0185] The best standing formation can be expressed as:
[0186]
[0187] Among them, O k,m For the time b m Before, the number of times the standing formation k appears, the purpose of k is to prevent the same formation from appearing too many times.
[0188] Movement time b m The judgment is mainly made by analyzing the verse, chorus, prelude, interlude, etc. of the music structure, and changing the formation at the end of each change of the music structure.
[0189] Optionally, the first dance move includes a first starting dance move and a first ending dance move; and the second dance move includes a second starting dance move and a second ending dance move.
[0190] The computer device calculates a first similarity value between a first starting dance move and a second starting dance move, and uses the first similarity value as a second matching value. Based on the second matching value, the computer device selects a walking dance segment corresponding to the walking dancer from at least one candidate dance segment; or, based on a second similarity value between a first ending dance move and a second ending dance move, the computer device uses the second similarity value as a second matching value. Based on the second matching value, the computer device selects a walking dance segment corresponding to the walking dancer from at least one candidate dance segment; or, based on the first similarity value and the second similarity value, the computer device selects a walking dance segment corresponding to the walking dancer from at least one candidate dance segment.
[0191] For example, Figure 8 The schematic diagram of obtaining a dance segment is shown, and the corresponding movement parameters of the dancer include the movement distance 801 of the dancer in the music segment, and the dance movements of the dancer in the single dance segment, and the dance movements include the first starting dance movement 802 and the first ending dance movement 803 of the dancer in the single dance segment. The computer device obtains the movement distance value of the dancer in the standing formation corresponding to the music segment, which is 1m; based on the difference between the movement distance value and the moving distance value of the object in the candidate dance segment, the computer device obtains the candidate dance segment 1 804 and the candidate dance segment 3 806 in the dance segment database because the difference between the candidate dance segment 2 805 and the movement distance value is large. Within the scope of candidate dance clip one 804 and candidate dance clip three 806, a first similarity value between the first starting dance action 802 and the second starting dance action is calculated, and a second similarity value between the first ending dance action 803 and the second ending dance action is calculated. Based on the first similarity value and the second similarity value, the best movement dance clip is selected from candidate dance clip one 804 and candidate dance clip three 806 as: candidate dance clip one 804.
[0192] Step 408: Based on the individual dance clips and the movement dance clips, a group dance corresponding to the music is obtained.
[0193] Exemplarily, the computer device synthesizes the individual dance segments and the positional dance segments based on the individual dance segments and the positional dance segments to obtain a collective dance corresponding to the music.
[0194] For example, Fig. 9Schematic diagram of a synthetic collective dance shown. The collective dance in the figure includes 5 dancers, the positions of the 5 dancers in the source position formation 901 are in a "five-ring" shape, and the positions of the 5 dancers in the target position formation 903 are in an "inverted five-ring" shape. The transition position formation 902 between the source position formation 901 and the target position formation 903 shows the movement process of the 5 dancers when the "five-ring" shape is converted to the "inverted five-ring" shape, wherein the 5 dancers in the collective dance all move in their corresponding movement dance segments.
[0195] It should be noted that, although the embodiment of the present application only uses a five-person dance formation as an example, the same method can actually be applied to the dance formation of any number of people.
[0196] In summary, the method provided in this embodiment obtains at least one music clip corresponding to the music and the standing formation corresponding to the music clip; selects dance clips based on the music clips to obtain individual dance clips corresponding to individual dancers in the collective dance; selects dance clips based on the individual dance clips and the standing formation to obtain the moving dance clips of the moving dancers in the process of moving; and obtains the collective dance corresponding to the music based on the individual dance clips and the moving dance clips. Based on the music clips and the standing formation, this application associates the music clips with the dance clips, realizes the automatic synthesis of collective dance movements, and improves the efficiency of choreographing dance movements.
[0197] The method provided in this embodiment selects a single dance segment corresponding to a single dancer from at least one candidate dance segment by calculating the matching value between the music segment and the candidate dance segment, based on at least one of the characteristic distance value, time difference value and connection distance value between the music segment and the candidate dance segment. The present application obtains the matching value between the music segment and the candidate dance segment from different angles, making the acquisition of the single dance segment more accurate and quick, thereby improving the efficiency of choreographing dance movements.
[0198] The method provided in this embodiment selects the walking dance segment corresponding to the walking dancer from the candidate dance segments based on the music segment and the standing formation. Based on the single dance segment and the walking dance segment, the application enables dancers in different positions in the group dance to show different dance movements, and show the corresponding walking dance segment during the movement, thus realizing the automatic synthesis of the group dance movements and improving the efficiency of choreographing dance movements.
[0199] The method provided in this embodiment calculates the matching value between the movement parameters corresponding to the moving dancer and the candidate dance clips, and selects a movement dance clip from at least one candidate dance clip based on at least one of the movement distance difference and the dance movement similarity value, so that the acquisition of the movement dance clip is more accurate and quick, and the efficiency of choreographing dance movements is improved.
[0200] Fig.10 The workflow of a music-based dance movement synthesis system provided by an exemplary embodiment of the present application is shown, including: the user inputs music 1001, which can be an audio file in any format. First, the system synthesizes a single dance 1002 according to the music, then synthesizes the movement and formation of a multi-person dance 1003 according to the music and the single dance 1002, and finally outputs a multi-person dance animation file 1004.
[0201] The method includes: it can be mainly divided into three modules. The first is the feature extraction of music clips and dance clips. The second is to calculate the feature distance based on the extracted features, index the appropriate dance clips in the database, and thus merge them into single dance clips. The third is to analyze the music structure and add formation changes at the appropriate time, as well as two choreography rules, symmetry and highlight, to make the dance movements of the collective dance richer.
[0202] The feature extraction module is mainly used to map music clips and dance clips to the same space for comparison. The feature extractor is a neural network with two transformer structures. We collected about 2.5 hours of dance data and divided them into segments in units of measures (1 8-beat). Finally, we obtained about 4,500 dance clips, which is our dance clip database. When testing, we will divide the music into segments according to measures and calculate their features. Then we compare the Euclidean distance between them and the dance features in the dance clip database, and match the one with the shortest distance.
[0203] The single-person dance synthesis module mainly matches based on the distance between music features and dance features, and then merges the corresponding dance clips into a complete animation. Before matching, we will first build a dance action graph. The nodes of the graph are dance clips in the database, and the edges are used to measure whether two dance clips can be connected. If the two dance clips are well connected, we will add an edge between them, otherwise there will be no edge. With this action graph, we will determine which dance clip is most suitable for the current music clip based on the feature distance between music and dance, the connection distance of dance clips, and the time difference between music and dance.
[0204] The multi-person dance synthesis module consists of three main steps. First, we need to set the candidate standing formations; then we need to calculate the reasonable movement between the two formations; finally, we build a graph for each formation and use the reasonable movement as the edge to optimize the optimal sequence of different formations.
[0205] When looking for a suitable movement clip, there are two factors to consider, one is the distance of movement, and the other is whether the initial and final movements can be consistent with the final frame of the initial position and the initial frame of the final position. The candidate data for the movement clips are all in our dance clip database, but we will select dance clips with movement as the movement candidates. Therefore, there are two main loss functions. One is to measure whether the movement clip can help the actor walk from the initial position to the final position, and the other is whether the difference between the starting and ending movements of the movement clip and the corresponding movements of the initial position and the final position is small enough to form a continuous movement.
[0206] Fig.11 The schematic diagram of the structure of a music-based dance action synthesis device provided by an exemplary embodiment of the present application is shown. The device can be implemented as all or part of a computer device through software, hardware, or a combination of both. The device includes:
[0207] The acquisition module 1101 is used to acquire at least one music segment corresponding to the music and a standing formation corresponding to the music segment; the music segment is a segment with n music beats as a unit, where n is a positive integer; the standing formation refers to a formation formed based on the positions of at least two dancers in a collective dance;
[0208] A selection module 1102 is configured to select a dance segment based on the music segment to obtain a single dance segment corresponding to a single dancer in the collective dance; the dance segment refers to a segment with n dance beats as a unit; the dance segment includes at least one dance action; and the dance segment is one in a dance segment database;
[0209] A selection module 1102 is used to select the dance segment based on the single dance segment and the standing formation to obtain a dance segment of a moving dancer in a moving process; the moving dancer refers to a dancer who needs to move during the switching process of the standing formation;
[0210] The synthesis module 1103 is used to obtain the collective dance corresponding to the music based on the individual dance segment and the movement dance segment.
[0211] In some embodiments, the acquisition module 1101 is used to acquire at least one candidate dance segment.
[0212] In some embodiments, the selection module 1102 is used to select the single dance segment corresponding to the single dancer from the at least one candidate dance segment based on the first matching value.
[0213] The first matching value is a matching value between the music segment and the candidate dance segment.
[0214] In some embodiments, the acquisition module 1101 is used to acquire music features corresponding to the music clip and dance features corresponding to the candidate dance clip.
[0215] In some embodiments, the selection module 1102 is used to calculate the feature distance value as the first matching value; and based on the first matching value, select the single dance segment corresponding to the single dancer from the at least one candidate dance segment.
[0216] In some embodiments, the acquisition module 1101 is used to acquire the music time corresponding to the music clip and the dance time corresponding to the candidate dance clip.
[0217] In some embodiments, the selection module 1102 is used to calculate the time difference value as the first matching value; the time difference value refers to the difference between the music time and the dance time; based on the first matching value, the single dance segment corresponding to the single dancer is selected from the at least one candidate dance segment.
[0218] In some embodiments, the acquisition module 1101 is used to acquire a previous dance feature corresponding to a previous dance segment matching a previous music segment and a dance feature corresponding to the candidate dance segment.
[0219] In some embodiments, the selection module 1102 is used to calculate a connection distance value as the first matching value; the connection distance value is used to represent the connection between the previous dance segment and the candidate dance segment; based on the first matching value, the single dance segment corresponding to the single dancer is selected from the at least one candidate dance segment.
[0220] In some embodiments, the selection module 1102 is used to determine the moving dancer in the standing formation based on the standing formation corresponding to the music clip; the switching of the standing formation is based on the rhythm point of the music; the rhythm point is the node where the rhythm of the music changes during playback.
[0221] In some embodiments, the selection module 1102 is used to select the movement dance segment corresponding to the movement dancer from the at least one candidate dance segment based on the second matching value.
[0222] The second matching value is the matching value between the movement parameters corresponding to the dancer and the candidate dance segment. The movement parameters include the movement distance of the dancer in the music segment and the dance movements in the single dance segment;
[0223] In some embodiments, the acquisition module 1101 is used to obtain the walking distance value of the dancer in the standing formation corresponding to the music clip.
[0224] In some embodiments, the selection module 1102 is used to calculate the movement distance difference as the second matching value; the movement distance difference refers to the difference between the movement distance value and the movement distance value of the object in the candidate dance segment; based on the second matching value, the movement dance segment corresponding to the movement dancer is selected from the at least one candidate dance segment.
[0225] In some embodiments, the acquisition module 1101 is used to acquire a first dance move of the dancer in the single dance segment, and to acquire a second dance move of the object in the candidate dance segment.
[0226] In some embodiments, the selection module 1102 is used to calculate a dance movement similarity value as the second matching value; the dance movement similarity value refers to a similarity value between the first dance movement and the second dance movement; based on the second matching value, the movement dance segment corresponding to the movement dancer is selected from the at least one candidate dance segment.
[0227] In some embodiments, the first dance action includes a first starting dance action; the second dance action includes a second starting dance action; the selection module 1102 is used to calculate a first similarity value between the first starting dance action and the second starting dance action, and use the first similarity value as the second matching value.
[0228] In some embodiments, the first dance action includes a first ending dance action; the second dance action includes a second ending dance action; the selection module 1102 is used to calculate a second similarity value between the first ending dance action and the second ending dance action, and use the second similarity value as the second matching value.
[0229] Fig.12The structural block diagram of a computer device 1100 shown in an exemplary embodiment of the present application is shown. The computer device can be implemented as the server in the above-mentioned solution of the present application. The image computer device 1100 includes a central processing unit (CPU) 1101, a system memory 1104 including a random access memory (RAM) 1102 and a read-only memory (ROM) 1103, and a system bus 1105 connecting the system memory 1104 and the central processing unit 1101. The image computer device 1100 also includes a large-capacity storage device 1106 for storing an operating system 1109, an application program 1110 and other program modules 1111.
[0230] The mass storage device 1106 is connected to the central processing unit 1101 through a mass storage controller (not shown) connected to the system bus 1105. The mass storage device 1106 and its associated computer readable medium provide non-volatile storage for the image computer device 1100. That is, the mass storage device 1106 may include a computer readable medium (not shown) such as a hard disk or a compact disc read-only memory (CD-ROM) drive.
[0231] Without loss of generality, the computer-readable medium may include computer storage media and communication media. Computer storage media include volatile and non-volatile, removable and non-removable media implemented by any method or technology for storing information such as computer-readable instructions, data structures, program modules or other data. Computer storage media include RAM, Erasable Programmable Read Only Memory (EPROM), Electronically-Erasable Programmable Read-Only Memory (EEPROM) flash memory or other solid-state storage technology, CD-ROM, Digital Versatile Disc (DVD) or other optical storage, cassette, tape, disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that the computer storage medium is not limited to the above. The above-mentioned system memory 1104 and mass storage device 1106 can be collectively referred to as memory.
[0232] According to various embodiments of the present disclosure, the image computer device 1100 can also be connected to a remote computer on a network such as the Internet for operation. That is, the image computer device 1100 can be connected to a network 1108 via a network interface unit 1107 connected to the system bus 1105, or the network interface unit 1107 can be used to connect to other types of networks or remote computer systems (not shown).
[0233] The memory also includes at least one computer program, which is stored in the memory. The central processing unit 1101 implements all or part of the steps in the music-based dance movement synthesis method shown in the above embodiments by executing the at least one program.
[0234] An embodiment of the present application also provides a computer device, which includes a processor and a memory, wherein the memory stores at least one program, and the at least one program is loaded and executed by the processor to implement the music-based dance movement synthesis method provided by the above-mentioned method embodiments.
[0235] An embodiment of the present application also provides a computer-readable storage medium, in which at least one computer program is stored. The at least one computer program is loaded and executed by a processor to implement the music-based dance movement synthesis method provided by the above-mentioned method embodiments.
[0236] An embodiment of the present application also provides a computer program product, which includes a computer program, and the computer program is stored in a computer-readable storage medium; the computer program is read and executed from the computer-readable storage medium by a processor of a computer device, so that the computer device executes to implement the music-based dance movement synthesis method provided in the above-mentioned method embodiments.
[0237] It will be understood that in the specific implementation of the present application, the data involved, historical data, and data related to user data processing such as portraits related to user identity or characteristics, when the above embodiments of the present application are applied to specific products or technologies, need to obtain user permission or consent, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0238] It should be understood that the "plurality" mentioned in this article refers to two or more. "And / or" describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects are in an "or" relationship.
[0239] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0240] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent switching, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for synthesizing dance movements based on music, characterized in that: The method comprises: Obtain at least one music clip corresponding to the music and a standing formation corresponding to the music clip; the music clip is a clip with n music beats as a unit, n is a positive integer; the standing formation refers to a formation formed based on the positions of at least two dancers in the collective dance; Selecting dance segments based on the music segments to obtain individual dance segments corresponding to individual dancers in the collective dance; the dance segments refer to segments with n dance beats as units; the dance segments include at least one dance action; the dance segments are in a dance segment database; The dance segments are selected based on the individual dance segments and the standing formations to obtain the moving dance segments of the moving dancers in the moving process; the moving dancers refer to the dancers who need to move their positions in the process of switching the standing formations; Based on the individual dance segment and the movement dance segment, the collective dance corresponding to the music is obtained.
2. The method according to claim 1, characterized in that The step of selecting a dance segment based on the music segment to obtain a single dance segment corresponding to a single dancer in the collective dance comprises: Obtain at least one candidate dance segment; Based on the first matching value, selecting the single dance segment corresponding to the single dancer from the at least one candidate dance segment; The first matching value is a matching value between the music segment and the candidate dance segment.
3. The method according to claim 2, characterized in that The step of selecting a single dance segment corresponding to the single dancer from the at least one candidate dance segment based on the first matching value includes: Acquire music features corresponding to the music clip and dance features corresponding to the candidate dance clip; Calculating a feature distance value as the first matching degree value; Based on the first matching value, the single dance segment corresponding to the single dancer is selected from the at least one candidate dance segment.
4. The method according to claim 2, characterized in that: The step of selecting a single dance segment corresponding to the single dancer from the at least one candidate dance segment based on the first matching value includes: Obtaining the music time corresponding to the music clip and the dance time corresponding to the candidate dance clip; Calculate a time difference value as the first matching value; the time difference value refers to the difference between the music time and the dance time; Based on the first matching value, the single dance segment corresponding to the single dancer is selected from the at least one candidate dance segment.
5. The method according to claim 2, characterized in that: The step of selecting a single dance segment corresponding to the single dancer from the at least one candidate dance segment based on the first matching value includes: Acquire a previous dance feature corresponding to a previous dance segment matching the previous music segment and a dance feature corresponding to the candidate dance segment; Calculating a connection distance value as the first matching value; the connection distance value is used to indicate the connection between the previous dance segment and the candidate dance segment; Based on the first matching value, the single dance segment corresponding to the single dancer is selected from the at least one candidate dance segment.
6. The method according to any one of claims 1 to 5, characterized in that: The step of selecting the dance segment based on the single-person dance segment and the standing formation to obtain the dance segment of the dancer in the process of moving includes: Based on the standing formation corresponding to the music clip, the dancers in the standing formation are determined; the switching of the standing formation is based on the rhythm of the music; the rhythm is a node where the rhythm of the music changes during the playing process; Based on the second matching value, selecting the movement dance segment corresponding to the movement dancer from the at least one candidate dance segment; Among them, the second matching value is the matching value between the movement parameters corresponding to the moving dancer and the candidate dance segment; the movement parameters include the movement distance of the moving dancer in the music segment, and the dance movements in the single dance segment.
7. The method according to claim 6, characterized in that The step of selecting the dance segment corresponding to the dancer from the at least one candidate dance segment based on the second matching value includes: Obtaining a distance value of the dancer in the standing formation corresponding to the music clip; Calculating a movement distance difference as the second matching value; the movement distance difference refers to a difference between the movement distance value and a movement distance value of an object in the candidate dance segment; Based on the second matching degree value, the movement dance segment corresponding to the movement dancer is selected from the at least one candidate dance segment.
8. The method according to claim 6, characterized in that The step of selecting the dance segment corresponding to the dancer from the at least one candidate dance segment based on the second matching value includes: Acquire a first dance action of the dancer in the single dance segment, and acquire a second dance action of the object in the candidate dance segment; Calculating a dance movement similarity value as the second matching value; the dance movement similarity value refers to a similarity value between the first dance movement and the second dance movement; Based on the second matching value, the movement dance segment corresponding to the movement dancer is selected from the at least one candidate dance segment.
9. The method according to claim 8, characterized in that The first dance action includes a first starting dance action; the second dance action includes a second starting dance action; The step of calculating the dance movement similarity value as the second matching value includes: A first similarity value between the first starting dance action and the second starting dance action is calculated, and the first similarity value is used as the second matching value.
10. The method according to claim 8, characterized in that The first dance action includes a first ending dance action; the second dance action includes a second ending dance action; The step of calculating the dance movement similarity value as the second matching value includes: A second similarity value between the first ending dance action and the second ending dance action is calculated, and the second similarity value is used as the second matching value.
11. A dance movement synthesis device based on music, characterized in that: The device comprises: An acquisition module, used to acquire at least one music clip corresponding to the music and a standing formation corresponding to the music clip; the music clip is a clip with n music beats as a unit, n is a positive integer; the standing formation refers to a formation formed based on the positions of at least two dancers in a collective dance; A selection module is used to select a dance segment based on the music segment to obtain a single dance segment corresponding to a single dancer in the collective dance; the dance segment refers to a segment with n dance beats as a unit; the dance segment includes at least one dance action; the dance segment is one in a dance segment database; The selection module is used to select the dance segment based on the single dance segment and the standing formation to obtain a dance segment of a moving dancer in the process of moving; the moving dancer refers to a dancer who needs to move during the switching process of the standing formation; A synthesis module is used to obtain the collective dance corresponding to the music based on the individual dance segment and the movement dance segment.
12. A computer device, characterized in that: The computer device comprises: a processor and a memory, wherein at least one computer program is stored in the memory, and the at least one computer program is loaded and executed by the processor to implement the music-based dance movement synthesis method according to any one of claims 1 to 10.
13. A computer storage medium, characterized in that: At least one computer program is stored in the computer-readable storage medium, and the at least one computer program is loaded and executed by the processor to implement the music-based dance movement synthesis method according to any one of claims 1 to 10.
14. A computer program product, characterized in that The computer program product includes a computer program, which is stored in a computer-readable storage medium; the computer program is read and executed from the computer-readable storage medium by a processor of a computer device, so that the computer device performs the music-based dance movement synthesis method as described in any one of claims 1 to 10.
