Background music acquisition method and related products

By obtaining the target image features of the short video and using the audio generation model and the music discrimination model to evaluate the matching degree, it solves the problem of low matching degree for ordinary users when choosing soundtracks for short videos, and achieves a higher matching degree between music and video content.

CN113496243BActive Publication Date: 2024-09-20BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010266702.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-04-07
Publication Date
2024-09-20
Estimated Expiration
2040-04-07

AI Technical Summary

Technical Problem

When ordinary users choose soundtracks for short videos, the matching problem is low, resulting in the selected music not matching the video content.

Method used

By obtaining the target image features of the short video, the audio generation model and the music discrimination model are used to evaluate the matching degree between the image and the music, and recommend appropriate background music.

Benefits of technology

Improved the matching between background music and video content, making it easier for users to choose appropriate soundtracks for short videos.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113496243B
    Figure CN113496243B
Patent Text Reader

Abstract

The background music acquisition method and related products proposed in the present disclosure obtain the image features of the target image of the work, and then use the image features to obtain a piece of candidate music using an audio generation model; and determine the recommended music for the background music of the work to be processed by evaluating the degree of matching between the target image and the audio. Based on this, when the selected target image can well reflect the content of the work to be evaluated, the method in the present disclosure can obtain background music with a high degree of matching for the work to be accompanied by music.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of video processing, and in particular to a method for obtaining background music, a method for composing music for a work, a method for recommending background music for a work, and related products. Background Art

[0002] Short video content sharing and social apps have become the most popular application categories on the mobile Internet. Users can shoot and upload their own short videos anytime and anywhere. Before uploading short videos, users can add corresponding background music to the content they shoot, which can improve the rhythm and appeal of the video.

[0003] However, it is difficult for ordinary users to select the right soundtrack for short videos. This is because short videos are mostly improvised by users, with a variety of contents, and the randomly generated or selected soundtracks have a low degree of match with the corresponding video works. Summary of the invention

[0004] The present disclosure provides a background music acquisition method, device, server and storage medium to at least solve the problem in the related art that the soundtrack selected by ordinary users has a low degree of matching with the corresponding work. The technical solution of the present disclosure is as follows:

[0005] According to a first aspect of an embodiment of the present disclosure, a background music acquisition method is provided, comprising:

[0006] Obtaining a work to be processed, wherein the work to be processed is a work that has been filmed and to which background music is to be added;

[0007] Extracting image features of a target image in the work to be processed;

[0008] Acquire candidate music according to the image features, and detect the matching degree between the target image of the work to be processed and the candidate music;

[0009] If the detection result shows that the matching degree between the target image and the candidate music is higher than a predetermined threshold, the candidate music is determined as the recommended music for the background music of the work to be processed.

[0010] In one embodiment, detecting the matching degree between the target image of the work to be processed and the candidate music includes:

[0011] Acquire image features and music features of the candidate music;

[0012] The image features and the music features of the candidate music are processed using a music discrimination model to obtain a matching degree between the target image of the work to be processed and the candidate music.

[0013] In one embodiment, the method further comprises:

[0014] The training samples are input into the original music discrimination model for training to obtain the music discrimination model; wherein the training samples include a plurality of works to which background music has been added, and target images and the matching degree between the target images and the corresponding background music are annotated.

[0015] In one embodiment, obtaining candidate music according to the image features includes:

[0016] The image features are processed using an audio generation model to obtain candidate music; the audio generation model is a model trained using the music discrimination model.

[0017] According to a second aspect of an embodiment of the present disclosure, a method for composing a work is provided, the method comprising:

[0018] Receive requests for music for works;

[0019] In response to the music arrangement request for the work, the background music of the work is acquired by using a background music acquisition method; and the background music of the work is added to the background music of the work to be processed.

[0020] According to a third aspect of an embodiment of the present disclosure, a method for recommending background music for a work is provided, the method comprising:

[0021] Receive background music recommendation requests;

[0022] In response to a background music recommendation request, the background music of the work is acquired using a background music acquisition method; and the background music of the work is displayed at a preset position of an application interface of a terminal.

[0023] According to a fourth aspect of an embodiment of the present disclosure, a background music acquisition device is provided, characterized in that it includes:

[0024] An acquisition module is configured to acquire a work to be processed, wherein the work to be processed is a work that has been filmed and to which background music is to be added;

[0025] An image feature extraction module is configured to extract image features of a target image in the work to be processed;

[0026] A music generation module is configured to obtain candidate music according to the image features, and detect the matching degree between the target image of the work to be processed and the candidate music;

[0027] The evaluation module is configured to determine the candidate music as the recommended music for the background music of the work to be processed if the detection result shows that the matching degree between the target image and the candidate music is higher than a predetermined threshold.

[0028] In one of the embodiments, the music generation module is configured to obtain image features and music features of the candidate music; use a music discrimination model to process the image features and the music features of the candidate music to obtain a degree of matching between the target image of the work to be processed and the candidate music.

[0029] In one embodiment, the music generation module is configured to input training samples into the original music discrimination model for training to obtain the music discrimination model; wherein the training samples include a plurality of works to which background music has been added, and target images and the degree of matching between the target images and the corresponding background music are annotated.

[0030] In one of the embodiments, the music generation module is configured to process the image features using an audio generation model to obtain candidate music; the audio generation model is a model trained using the music discrimination model.

[0031] According to a fifth aspect of an embodiment of the present disclosure, a device for composing music for a work is provided, comprising:

[0032] A communication module, configured to receive a music score request for a work;

[0033] A background music acquisition device is configured to respond to the work soundtrack request and acquire the background music of the work using a background music acquisition method;

[0034] The music arrangement module is configured to add the background music of the work to be processed to the background music of the work.

[0035] According to a sixth aspect of an embodiment of the present disclosure, a background music recommendation device for a work is provided, comprising:

[0036] A communication module, configured to receive a background music recommendation request;

[0037] A background music acquisition device is configured to respond to a background music recommendation request and acquire background music of the work using a background music acquisition method;

[0038] The recommendation module is configured to display the background music of the work at a preset position of the application interface of the terminal.

[0039] According to the seventh aspect of an embodiment of the present disclosure, a server is provided, comprising: a processor; and a memory for storing requests executable by the processor; wherein the processor is configured to execute the request to implement the various steps of the background music acquisition method in the embodiment of the present disclosure.

[0040] According to an eighth aspect of an embodiment of the present disclosure, a server is provided, comprising: a processor; and a memory for storing requests executable by the processor; wherein the processor is configured to execute the requests to implement the various steps of the method for composing music for a work as in the embodiment of the present disclosure.

[0041] According to a ninth aspect of an embodiment of the present disclosure, a server is provided, comprising: a processor; and a memory for storing requests executable by the processor; wherein the processor is configured to execute the requests to implement the various steps of the background music recommendation method for a work as in the embodiment of the present disclosure.

[0042] According to a tenth aspect of an embodiment of the present disclosure, a storage medium is provided, and when a request in the storage medium is executed by a processor of a server, the server can execute the various steps of the background music acquisition method in the embodiment of the present disclosure.

[0043] According to an eleventh aspect of an embodiment of the present disclosure, a storage medium is provided, and when a request in the storage medium is executed by a processor of a server, the server is enabled to execute the various steps of the method for composing music for a work as in the embodiment of the present disclosure.

[0044] According to the twelfth aspect of the embodiments of the present disclosure, a storage medium is provided, and when the request in the storage medium is executed by the processor of the server, the server can execute the various steps of the background music recommendation method for works as in the embodiments of the present disclosure.

[0045] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:

[0046] The background music acquisition method and related products proposed in the present disclosure obtain the image features of the target image of the work, and then use the image features to obtain a piece of candidate music using an audio generation model; and determine the recommended music for the background music of the work to be processed by evaluating the degree of match between the target image and the audio. The method in the present disclosure can obtain background music with a high degree of match for the work that needs to be soundtracked.

[0047] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.

[0049] Figure 1 The figure is a diagram showing an application environment of a method for obtaining background music according to an exemplary embodiment.

[0050] Figure 2 The figure is a flow chart of a method for obtaining background music according to an exemplary embodiment.

[0051] Figure 3 The present invention is a flowchart of a method for composing music for a work according to an exemplary embodiment.

[0052] Figure 4 The present invention is a flowchart of a method for recommending background music for a work according to an exemplary embodiment.

[0053] Figure 5 The figure is a block diagram of a background music acquisition device according to an exemplary embodiment.

[0054] Figure 6 The present invention is a block diagram of a device for composing music for a work according to an exemplary embodiment.

[0055] Figure 7 The present invention is a block diagram of a device for recommending background music for a work according to an exemplary embodiment.

[0056] Figure 8 It is a block diagram of a device according to an exemplary embodiment. DETAILED DESCRIPTION

[0057] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.

[0058] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0059] The background music acquisition method provided by the present disclosure can be applied to Figure 1 In the application environment shown, the terminal 102 communicates with the server 104 through the network. The terminal 102 may be, but is not limited to, various electronic devices such as personal computers, laptops, smart phones, tablet computers, and portable wearable devices, and the server 104 may be implemented as an independent server or a server cluster consisting of multiple servers.

[0060] A service platform is deployed on the server 104. Users can watch works on the service platform through the corresponding application on the terminal 102, and users can also upload works to the service platform through the corresponding application on the terminal 102. The work can be a video, a short video, a picture album, an electronic photo album, etc. When uploading a work, the user can add background music to the work. The user can perform the corresponding music matching operation through the operation interface of the terminal 102 to match the background music for the uploaded work. The operation process of the user matching the work through the operation interface of the terminal 102 is generally: input the selection operation of the background music through the background music selection interface of the terminal 104, and the terminal uses the background music selected by the user as the background music of the user's work based on the user's selection operation. Optionally, after the user enters the selection operation, the user can also understand whether the selected background music is suitable by pre-playing the work with background music. If the user thinks that the selected background music is suitable, the user can enter the confirmation operation through the operation interface of the terminal 104, and the terminal will use the background music selected by the user as the background music of the user's work; if the user thinks that the selected background music is not suitable, the user can enter the cancellation operation through the operation interface of the terminal 104, and the terminal 102 returns to the background music selection interface so that the user can reselect the background music.

[0061] Figure 2 The present invention is a flowchart of a method for obtaining background music according to an exemplary embodiment. The method for obtaining background music is used in a server and includes the following steps.

[0062] In step S11, the work to be processed is obtained.

[0063] In step S12, image features of the target image in the work to be processed are extracted.

[0064] In step S13, candidate music is obtained according to the image features, and the matching degree between the target image of the work to be processed and the candidate music is detected.

[0065] In step S14, if the detection result shows that the matching degree between the target image and the candidate music is higher than a predetermined threshold, the candidate music is determined as the recommended music for the background music of the work to be processed.

[0066] The work to be processed in step S11 is a work that has been shot and to which background music is to be added.

[0067] The target image in step S12 is the image in the image frame of the work to be processed. Optionally, the target image can be the cover image of the work to be processed. Since the cover image of the work is generally an image frame containing more features of the work's expression content, the cover image is set as the target image to extract image features, and the image features are used to obtain candidate music, so that the content of the work can be understood more accurately. It should be noted that using the cover image of the work is only a common solution. The method of this example is not limited to using the cover image of the work, and background music can also be generated based on other image frames in the work to be processed selected by the user. Optionally, the cover image of the default work can be set as the target image obtained when the method of this example is implemented. That is, when the user does not select a target image from the work, the cover image is used as the target image.

[0068] When executing step S12, the image features obtained by processing the target image using the image classification model can be used. Optionally, if the image features of the target image of the work to be processed have been acquired and stored before executing the background music acquisition method of this embodiment, the image features of the work can be directly acquired from the storage location of the image features in step S12.

[0069] Optionally, the image classification model is a trained neural network model, which can extract features from an input image to obtain image features that can represent the image content.

[0070] Optionally, when executing step S13, the audio generation model can be used to process the image features to generate candidate music. Since the image features need to be used as input data of the audio generation model, the format of the image features will be considered when setting the input data format of the audio generation model. If the format of the obtained image features does not conform to the input data format of the audio generation model, the obtained image features need to be format converted to obtain the input data of the audio generation model. Optionally, the audio generation model can be a waveNet model or a WaveGan model.

[0071] Optionally, when executing step S13 to evaluate the degree of match between the candidate music and the target image, the image features and the music features of the candidate music can be first obtained; then the image features and the music features of the candidate music are processed using a music discrimination model to obtain the degree of match between the target image of the work to be processed and the candidate music. Optionally, the Mel-frequency cepstral coefficient (MFCC) features of the candidate music can be extracted as the music features of the candidate music. Optionally, since the image features need to be used as the input of the music discrimination model, the format of the image features is generally set based on the audio discrimination model. If the format of the obtained image features does not conform to the input data format of the audio discrimination model, the obtained image features need to be format-converted based on the input data format of the audio discrimination model. Optionally, before using the music discrimination model to evaluate the degree of match between the target image and the candidate music, the original music discrimination model needs to be trained first. The training process may include: inputting the training samples into the original music discrimination model for training to obtain the music discrimination model; wherein the training samples include a plurality of works to which background music has been added, and the target image and the degree of match between the target image and the corresponding background music are annotated. Optionally, the audio generation model may be a model trained using the music discrimination model.

[0072] Optionally, the image feature can be an embedding vector. The embedding vector can not only measure the similarity between data (such as words) well, but also can be used as input data for a variety of neural network models, which can reduce data conversion when the neural network models are connected in series and save computing resources of the device. Optionally, the image classification model in this example can be a GoogleNet model. It should be noted that the embedding vector can be the input data of the waveNet model or the WaveGan model.

[0073] The background music acquisition method in this embodiment obtains the image features of the target image of the work, and then uses the image features to obtain a piece of candidate music using the audio generation model; and determines the recommended music for the background music of the work to be processed by evaluating the degree of match between the target image and the audio. Based on this, when the selected target image can well reflect the content of the work to be evaluated, the method of this embodiment can obtain background music with a high degree of match for the work to be composed.

[0074] In one embodiment, when implementing steps S13 and S14, the audio generation model and music discrimination model used can be integrated into a generative adversarial network model (GAN). In this example, the audio generation model is used as a generation model (G) for generating a corresponding network model pair, and the music discrimination model is used as a generative adversarial network model discrimination model (D). Optionally, the objective function V(D, G) of the generative adversarial network model can be expressed as:

[0075]

[0076] In this formula, E(*) represents the expected value of the distribution function, P data (x) represents the distribution of real samples, P noise (z) is a noise distribution defined in low dimension, which is mapped to high dimensional data space by G with parameter θg to obtain Pg=G(z,θg).

[0077] In one embodiment, a training method for generating an adversarial network is proposed, comprising:

[0078] First, train the original music discrimination model. The training process includes:

[0079] First, an original music discrimination model and a training sample of the music discrimination model are constructed; wherein the training sample includes a plurality of works to which background music has been added, and target images and the matching degree between the target images and the corresponding background music are annotated. Optionally, the music discrimination model can be a deep neural network constructed by using traditional DNN (Deep Neural Networks), and the discrimination model can be a binary classification model.

[0080] Afterwards, the original music discrimination model constructed by training is constructed using these training samples until the network of the original music discrimination model converges to obtain a music discrimination model.

[0081] Finally, the audio generation model is trained using the music discrimination model. This step is performed until the generation model (G) and the discrimination model (D) meet the above objective function, and the training process of the audio generation model is completed.

[0082] This embodiment uses a generative adversarial network model to obtain the audio generation model to ensure that the obtained audio generation model can output audio that matches the input image. Since the audio generation model of this application is trained using a generative adversarial network model, the obtained evaluation result is objective and reliable.

[0083] Based on the same inventive concept, Figure 3As shown, in one embodiment, a method for composing a work is proposed. Figure 1 Taking the application environment of as an example, the method includes:

[0084] In step S21, a work soundtrack request is received.

[0085] In step S22, in response to the music request for the work, the background music of the work is acquired using a background music acquisition method; and the background music of the work is added as the background music of the work.

[0086] The user can input a music request for the work through the operation interface of the application on the terminal 102, and the server 104 responds to the music request for the work and obtains the background music of the work using the background music acquisition method; and adds the background music of the work as the background music of the work. For details on how to obtain background music using the background music acquisition method, please refer to the corresponding records above, which will not be repeated here.

[0087] The method for composing music for a work in this embodiment obtains a segment of audio through the background music acquisition method, and uses the segment of audio to compose music for the work. The method of this embodiment can obtain background music that matches the content expressed in the work. Therefore, the method of this embodiment can assist users who do not have professional music literacy to compose music for the work.

[0088] Based on the same inventive concept, Figure 4 As shown, in one embodiment, a background music recommendation method for a work is proposed. Figure 1 Taking the application environment of as an example, the method includes:

[0089] In step S31, a background music recommendation request is received.

[0090] In step S32, in response to the background music recommendation request, the background music of the work is acquired using a background music acquisition method; and the background music of the work is displayed at a preset position of the application interface of the terminal.

[0091] The user can input a background music recommendation request through the operation interface of the application on the terminal 102, and the server 104 responds to the background music recommendation request and obtains the background music of the work using the background music acquisition method; and displays the background music of the work at a preset position of the application interface of the terminal. The user can input a selection operation from the preset position of the application interface of the terminal, and select the music in the application interface of the terminal to match the background music for the work. The music in the application interface of the terminal includes the background music obtained using the background music acquisition method. For details on how to obtain background music using the background music acquisition method, please refer to the corresponding records above, which will not be repeated here.

[0092] The background music recommendation method for a work in this embodiment obtains a segment of audio through the background music acquisition method, and uses the segment of audio to compose music for the work. The method of the embodiment can obtain background music that matches the content expressed in the work. Therefore, the method of this embodiment can assist users who do not have professional music literacy to compose music for the work.

[0093] Figure 5 A background music acquisition device 100 according to an exemplary embodiment includes:

[0094] The acquisition module 121 is configured to acquire a work to be processed, wherein the work to be processed is a work that has been filmed and to which background music is to be added;

[0095] An image feature extraction module 122 is configured to extract image features of a target image in the work to be processed;

[0096] The music generation module 123 is configured to obtain candidate music according to the image features, and detect the matching degree between the target image of the work to be processed and the candidate music;

[0097] The evaluation module 124 is configured to determine the candidate music as the recommended music for the background music of the work to be processed if the detection result shows that the matching degree between the target image and the candidate music is higher than a predetermined threshold.

[0098] In one example, the music generation module 123 is configured to obtain image features and music features of the candidate music; use a music discrimination model to process the image features and the music features of the candidate music to obtain a degree of matching between the target image of the work to be processed and the candidate music.

[0099] In one example, the music generation module 123 is configured to input training samples into the original music discrimination model for training to obtain the music discrimination model; wherein the training samples include multiple works to which background music has been added, and the target image and the degree of matching between the target image and the corresponding background music are marked.

[0100] In one example, the music generation module 123 is configured to process the image features using an audio generation model to obtain candidate music; the audio generation model is a model trained using the music discrimination model.

[0101] Figure 6 A device 10 for composing music for a work is shown according to an exemplary embodiment, comprising:

[0102] The communication module 200 is configured to receive a music arrangement request for a work;

[0103] The background music acquisition device 100 is configured to respond to the music request for the work and acquire the background music of the work by using the background music acquisition method;

[0104] The music arrangement module 300 is configured to add the background music of the work to be processed to the background music of the work.

[0105] Figure 6 A background music recommendation device 20 for a work according to an exemplary embodiment includes:

[0106] The communication module 200 is configured to receive a background music recommendation request;

[0107] The background music acquisition device 100 is configured to respond to a background music recommendation request and acquire the background music of the work using a background music acquisition method;

[0108] The recommendation module 400 is configured to display the background music of the work at a preset position of the application interface of the terminal.

[0109] In an exemplary embodiment, a storage medium including a request is also provided, such as a memory including a request, and the request can be executed by a processor of a device to complete the above method. Optionally, the storage medium can be a non-transitory computer-readable storage medium, for example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0110] In one of the embodiments, the storage medium, when the request in the storage medium is executed by the processor of the server, enables the server to execute: obtaining the work to be processed, wherein the work to be processed is a work that has been filmed and to which background music is to be added; extracting image features of a target image in the work to be processed; obtaining candidate music based on the image features, and detecting the degree of match between the target image of the work to be processed and the candidate music; if the detection result shows that the degree of match between the target image and the candidate music is higher than a predetermined threshold, determining the candidate music as the recommended music for the background music of the work to be processed.

[0111] In one of the embodiments, when the request in the storage medium is executed by the processor of the server, the server is able to execute: obtaining image features and music features of the candidate music; processing the image features and music features of the candidate music using a music discrimination model to obtain the degree of matching between the target image of the work to be processed and the candidate music.

[0112] In one embodiment, when the request in the storage medium is executed by the processor of the server, the server is able to execute: inputting the training samples into the original music discrimination model for training to obtain the music discrimination model; wherein the training samples include a plurality of works to which background music has been added, and the target images and the degree of matching between the target images and the corresponding background music are annotated.

[0113] In one of the embodiments, when the request in the storage medium is executed by the processor of the server, the server is enabled to execute: processing the image features using an audio generation model to obtain candidate music; the audio generation model is a model trained using the music discrimination model.

[0114] In one embodiment, the storage medium, when the request in the storage medium is executed by the processor of the server, enables the server to execute: receiving a request for music for a work; in response to the request for music for the work, obtaining background music for the work using a background music obtaining method; and adding the background music of the work to the background music of the work to be processed.

[0115] In one embodiment, the storage medium, when the request in the storage medium is executed by the processor of the server, enables the server to execute: receiving a background music recommendation request; in response to the background music recommendation request, obtaining the background music of the work using a background music acquisition method; and displaying the background music of the work at a preset position of the application interface of the terminal.

[0116] Figure 4 4 is a block diagram of a background music acquisition device 400 according to an exemplary embodiment. For example, the device 400 may be provided as a server. Figure 4 , the apparatus 400 includes a processing component 422, which further includes one or more processors, and a memory resource represented by a memory 432 for storing requests that can be executed by the processing component 422, such as an application. The application stored in the memory 432 may include one or more modules each corresponding to a set of requests. In addition, the processing component 422 is configured to execute the request to perform the steps of the background music acquisition method in the above example.

[0117] In one embodiment, the server includes: a processor; a memory for storing requests executable by the processor; wherein the processor is configured to execute the requests to implement the following steps: obtaining a work to be processed, wherein the work to be processed is a work that has been shot and to which background music is to be added; extracting image features of a target image in the work to be processed; obtaining candidate music based on the image features, and detecting a degree of match between the target image of the work to be processed and the candidate music; if the detection result shows that a degree of match between the target image and the candidate music is higher than a predetermined threshold, determining the candidate music as recommended music for the background music of the work to be processed.

[0118] In one embodiment, the processor is configured to execute the request to implement the following steps: obtaining image features and music features of the candidate music; processing the image features and music features of the candidate music using a music discrimination model to obtain a degree of matching between the target image of the work to be processed and the candidate music.

[0119] In one embodiment, the processor is configured to execute the request to implement the following steps: input the training sample into the original music discrimination model for training to obtain the music discrimination model; wherein the training sample includes a plurality of works to which background music has been added, and the target image and the degree of matching between the target image and the corresponding background music are annotated.

[0120] In one embodiment, the processor is configured to execute the request to implement the following steps: using an audio generation model to process the image features to obtain candidate music; the audio generation model is a model trained using the music discrimination model.

[0121] In one embodiment, the server includes: a processor; a memory for storing requests executable by the processor; wherein the processor is configured to execute the request to implement the following steps: receiving a request for music for a work; in response to the request for music for the work, obtaining background music for the work using a background music acquisition method; and adding the background music for the work as the background music for the work.

[0122] In one embodiment, the server includes: a processor; a memory for storing requests executable by the processor; wherein the processor is configured to execute the request to implement the following steps: receiving a background music recommendation request; in response to the background music recommendation request, obtaining background music for the work using a background music acquisition method; and displaying the background music for the work at a preset position of an application interface of a terminal.

[0123] The device 400 may also include a power supply component 426 configured to perform power management of the device 400, a wired or wireless network interface 450 configured to connect the device 400 to a network, and an input / output (I / O) interface 458. The device 400 may operate based on an operating system stored in the memory 432, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, or the like.

[0124] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0125] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A method for obtaining background music, characterized in that: include: Obtaining a work to be processed, wherein the work to be processed is a work that has been filmed and to which background music is to be added; Extracting image features of a target image in the work to be processed; The image features are processed using an audio generation model to generate candidate music, and the matching degree between the target image of the work to be processed and the candidate music is detected; wherein the matching degree between the target image of the work to be processed and the candidate music is detected, including: obtaining image features and music features of the candidate music; processing the image features and music features of the candidate music using a music discrimination model to obtain the matching degree between the target image of the work to be processed and the candidate music; If the detection result shows that the matching degree between the target image and the candidate music is higher than a predetermined threshold, the candidate music is determined as the recommended music for the background music of the work to be processed.

2. The method according to claim 1, characterized in that The method further comprises: The training samples are input into the original music discrimination model for training to obtain the music discrimination model; wherein the training samples include a plurality of works to which background music has been added, and target images and the matching degree between the target images and the corresponding background music are annotated.

3. The method according to claim 2, characterized in that The audio generation model is a model trained using the music discrimination model.

4. A method for composing music for a work, characterized in that: The method comprises: Receive requests for music for works; In response to the request for music for the work, the background music of the work is obtained by using the background music acquisition method described in any one of claims 1 to 3; and the background music of the work is added to the background music of the work to be processed.

5. A method for recommending background music for a work, characterized in that: The method comprises: Receive background music recommendation requests; In response to a background music recommendation request, the background music of the work is obtained using the background music acquisition method described in any one of claims 1 to 3; and the background music of the work is displayed at a preset position of the application interface of the terminal.

6. A background music acquisition device, characterized in that: include: An acquisition module is configured to acquire a work to be processed, wherein the work to be processed is a work that has been filmed and to which background music is to be added; An image feature extraction module is configured to extract image features of a target image in the work to be processed; The music generation module is configured to process the image features using an audio generation model to generate candidate music and detect the degree of matching between the target image of the work to be processed and the candidate music; the music generation module is configured to obtain image features and music features of the candidate music; process the image features and music features of the candidate music using a music discrimination model to obtain the degree of matching between the target image of the work to be processed and the candidate music; The evaluation module is configured to determine the candidate music as the recommended music for the background music of the work to be processed if the detection result shows that the matching degree between the target image and the candidate music is higher than a predetermined threshold.

7. The device according to claim 6, characterized in that The music generation module is configured to input training samples into the original music discrimination model for training to obtain the music discrimination model; wherein the training samples include multiple works to which background music has been added, and the target image and the degree of matching between the target image and the corresponding background music are marked.

8. The device according to claim 7, characterized in that The audio generation model is a model trained using the music discrimination model.

9. A device for composing music for a work, characterized in that: include: A communication module, configured to receive a music score request for a work; A background music acquisition device, configured to respond to the music request for the work and acquire the background music of the work using the background music acquisition method according to any one of claims 1 to 3; The music arrangement module is configured to add the background music of the work to be processed to the background music of the work.

10. A background music recommendation device for a work, characterized in that: include: A communication module, configured to receive a background music recommendation request; A background music acquisition device, configured to respond to a background music recommendation request and acquire the background music of the work using the background music acquisition method according to any one of claims 1 to 3; The recommendation module is configured to display the background music of the work at a preset position of the application interface of the terminal.

11. A server, characterized in that: include: processor; a memory for storing said processor executable requests; The processor is configured to execute the request to implement the method as claimed in any one of claims 1 to 5.

12. A storage medium, when a request in the storage medium is executed by a processor of a server, enables the server to execute the method according to any one of claims 1 to 5.

13. A computer program product, comprising instructions, characterized in that: When the instructions are executed by a processor of the server, the server is enabled to perform the method according to any one of claims 1 to 5.