WO2022028241A1 - Preview cover generation method and electronic device - Google Patents

Preview cover generation method and electronic device Download PDF

Info

Publication number
WO2022028241A1
WO2022028241A1 PCT/CN2021/107089 CN2021107089W WO2022028241A1 WO 2022028241 A1 WO2022028241 A1 WO 2022028241A1 CN 2021107089 W CN2021107089 W CN 2021107089W WO 2022028241 A1 WO2022028241 A1 WO 2022028241A1
Authority
WO
WIPO (PCT)
Prior art keywords
cover
virtual element
preview
target
text
Prior art date
Application number
PCT/CN2021/107089
Other languages
French (fr)
Chinese (zh)
Inventor
李银辉
刘旭东
Original Assignee
北京达佳互联信息技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京达佳互联信息技术有限公司 filed Critical 北京达佳互联信息技术有限公司
Publication of WO2022028241A1 publication Critical patent/WO2022028241A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/40Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
    • G06F16/44Browsing; Visualisation therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements

Definitions

  • the present disclosure relates to the field of Internet technologies, and in particular, to a method for generating a preview cover and an electronic device.
  • the user manually sets a background image and a virtual element to be displayed on the background image for the multimedia resource according to the content of the multimedia resource, and adds the virtual element to the background image to obtain a multimedia resource. Cover of the resource.
  • the present disclosure provides a method, device, electronic device and storage medium for generating a preview cover.
  • a method for generating a preview cover comprising:
  • the preview cover is displayed.
  • the method further includes: identifying a target position in the background image; adding the target virtual element to the background image to obtain a preview cover of the multimedia resource, including: adding the target virtual element to the background image The target virtual element is added to the target position to obtain the preview cover of the multimedia resource.
  • the identifying the target position in the background image includes: identifying the position of the target object in the background image, where the target object includes text content, a human face, or an object belonging to a target type At least one of; determining the target position, and the target position and the position of the target object do not overlap.
  • the method further includes: in response to the preview cover generation instruction, acquiring cover text corresponding to the multimedia resource, where the cover text is used to describe the content of the multimedia resource; Adding the target virtual element to the background image to obtain the preview cover of the multimedia resource includes: adding the cover text and the target virtual element to the background image to obtain the preview cover of the multimedia resource.
  • the obtaining the cover text corresponding to the multimedia resource includes: obtaining the cover text input in the preview cover generation interface; or, identifying the cover text corresponding to each image in the multimedia resource Image content, and the cover text is generated based on the identified image content.
  • the adding the cover text and the target virtual element to the background image to obtain the preview cover of the multimedia resource includes: adding the target virtual element to the background image to obtain a first image; add the cover text to the upper layer of the target virtual element in the first image to obtain the preview cover.
  • the acquiring a target virtual element includes: acquiring a virtual element type, where the virtual element type matches the resource tag, and determining any virtual element belonging to the virtual element type as the target virtual element element.
  • the acquiring a virtual element type includes: acquiring a virtual element type matching the resource tag based on a target correspondence relationship, where the target correspondence relationship includes a resource tag and a corresponding virtual element type.
  • determining any virtual element that belongs to the virtual element type as the target virtual element includes: identifying the target color of the background image; Any virtual element with different target colors is determined as the target virtual element.
  • identifying the background image of the multimedia resource includes: acquiring a plurality of images in the multimedia resource; and selecting an image that meets a target condition from the plurality of images as the background of the multimedia resource image.
  • the method further includes: receiving a resource acquisition instruction through a preview cover setting interface; and selecting the multimedia resource from a resource library in response to the resource acquisition instruction.
  • the preview interface includes an element adjustment area, the element adjustment area includes the target virtual element and at least one candidate virtual element, the at least one candidate virtual element is different from the target virtual element;
  • the method further includes: in response to a selection operation of any candidate virtual element in the element adjustment area of the preview interface, determining the selected candidate virtual element as the adjusted target virtual element.
  • the method further includes: in response to a moving operation on the target virtual element in the preview interface, changing the moved target virtual element The position is determined as the adjusted target position.
  • the preview interface includes a text adjustment area
  • the text adjustment area includes the cover text and at least one alternative cover text
  • the at least one alternative cover text is different from the cover text
  • the The method further includes: in response to a selection operation of any candidate cover text in the text adjustment area of the preview interface, determining the selected candidate cover text as the adjusted cover text.
  • the method further includes: in response to a selection operation of any animation effect in the animation effect setting area of the preview interface, determining the selected animation effect as the target animation effect of the preview cover; In the preview interface, the preview cover is displayed based on the target dynamic effect.
  • the background image includes multiple
  • the target virtual element includes multiple
  • the adding the target virtual element to the background image to obtain the preview cover of the multimedia resource includes: for For each target virtual element, the target virtual element is respectively added to at least one background image among the plurality of background images to obtain the preview cover of the multimedia resource.
  • an apparatus for generating a preview cover comprising:
  • a generation instruction receiving unit configured to receive the preview cover generation instruction of the multimedia resource through the preview cover generation interface of the multimedia resource
  • an identification processing unit configured to identify the background image and the resource label of the multimedia resource in response to the preview cover generation instruction
  • a preview cover acquiring unit configured to acquire a target virtual element matching the resource tag, and adding the target virtual element to the background image to obtain a preview cover of the multimedia resource
  • the preview cover display unit is configured to display the preview cover in the preview interface.
  • an electronic device comprising:
  • processors one or more processors
  • volatile or nonvolatile memory for storing the one or more processor-executable instructions
  • processors are configured to execute the instructions to implement the following steps:
  • the preview cover is displayed.
  • a non-transitory computer-readable storage medium when instructions in the storage medium are executed by a processor of an electronic device, the electronic device can perform the following steps:
  • the preview cover is displayed.
  • a computer program product when instructions in the computer program product are executed by a processor of an electronic device, the electronic device can perform the following steps:
  • the preview cover is displayed.
  • FIG. 1 is a flowchart of a method for generating a preview cover according to an exemplary embodiment
  • FIG. 2 is a flowchart of another method for generating a preview cover according to an exemplary embodiment
  • FIG. 3 is a schematic diagram of generating a preview cover according to an exemplary embodiment
  • Fig. 4 is another schematic diagram of generating a preview cover according to an exemplary embodiment
  • FIG. 5 is another schematic diagram of generating a preview cover according to an exemplary embodiment
  • FIG. 6 is a schematic diagram of another generation of a preview cover according to an exemplary embodiment
  • FIG. 7 is a block diagram of an apparatus for generating a preview cover according to an exemplary embodiment
  • FIG. 8 is a block diagram of another preview cover generation apparatus according to an exemplary embodiment
  • FIG. 9 is a block diagram of a terminal for generating a preview cover according to an exemplary embodiment
  • Fig. 10 is a block diagram of a server according to an exemplary embodiment.
  • FIG. 1 is a flowchart of a method for generating a preview cover according to an exemplary embodiment. Referring to FIG. 1 , the method is applied to a terminal and includes the following steps:
  • step 101 a preview cover generation instruction of the multimedia resource is received through a preview cover generation interface of the multimedia resource.
  • step 102 in response to the preview cover generation instruction, the background image and the resource label of the multimedia resource are identified.
  • step 103 the target virtual element is acquired, the target virtual element matches the resource tag, the target virtual element is added to the background image, and the preview cover of the multimedia resource is obtained.
  • step 104 in the preview interface, the preview cover is displayed.
  • the method provided by the embodiments of the present disclosure only needs to trigger the preview cover generation instruction on the preview cover generation interface of the multimedia resource, and the preview cover of the multimedia resource can be automatically generated.
  • the user does not need to perform other operations, which is more convenient and intelligent, and is compatible with the Compared with the manual production of the preview cover by the user, the above-mentioned automatic generation method generates the preview cover faster, improves the efficiency of generating the preview cover, and reduces the cost.
  • the method further includes: identifying the target position in the background image; adding the target virtual element to the background image to obtain a preview cover of the multimedia resource, including: adding the target virtual element to the target position to obtain the multimedia resource preview cover.
  • recognizing the target location in the background image includes: recognizing the location of the target object in the background image, where the target object includes at least one of text content, human face, or objects belonging to the target type; determining the target position, there is no overlap between the target position and the position of the target object.
  • the method further includes: in response to the preview cover generation instruction, obtaining cover text corresponding to the multimedia resource, where the cover text is used to describe the content of the multimedia resource; adding the target virtual element to the background image to obtain a preview of the multimedia resource
  • the cover includes: adding the cover text and target virtual elements to the background image to obtain the preview cover of the multimedia resource.
  • acquiring the cover text corresponding to the multimedia resource includes: acquiring the cover text input in the preview cover generation interface; or, recognizing the image content corresponding to each image in the multimedia resource, and generating the cover based on the recognized image content text.
  • adding the cover text and the target virtual element to the background image to obtain the preview cover of the multimedia resource includes: adding the target virtual element to the background image to obtain the first image; adding the cover text to the first image In the upper layer of the target virtual element, get the preview cover.
  • obtaining the target virtual element includes: obtaining a virtual element type, where the virtual element type matches a resource tag, and determining the target virtual element based on at least one virtual element belonging to the virtual element type.
  • acquiring a virtual element type includes: acquiring a virtual element type matching a resource tag based on a target correspondence relationship, where the target correspondence relationship includes a resource tag and a corresponding virtual element type.
  • determining the target virtual element based on at least one virtual element belonging to the virtual element type includes: identifying a target color of the background image; determining the target based on at least one virtual element belonging to the virtual element type and having a color different from the target color virtual elements.
  • identifying the background image of the multimedia resource includes: acquiring multiple images in the multimedia resource; and selecting an image that satisfies the target condition from the multiple images as the background image of the multimedia resource.
  • the method further includes: receiving a resource acquisition instruction through the preview cover setting interface; and selecting a multimedia resource from a resource library in response to the resource acquisition instruction.
  • the preview interface includes an element adjustment area
  • the element adjustment area includes a target virtual element and at least one candidate virtual element, the at least one candidate virtual element is different from the target virtual element; the method further includes: in response to adjusting the element The selection operation of any candidate virtual element in the adjustment area is to determine the selected candidate virtual element as the adjusted target virtual element.
  • the method further includes: in response to the moving operation on the target virtual element of the preview interface, determining the position of the moved target virtual element as the adjusted target position.
  • the preview interface includes a text adjustment area, and the text adjustment area includes cover text and at least one candidate cover text; the method further includes: in response to a selection operation on any candidate cover text in the text adjustment area, adjusting The selected alternative cover text is determined as the adjusted cover text.
  • the background image includes multiple
  • the target virtual element includes multiple
  • adding the target virtual element to the background image to obtain the preview cover of the multimedia resource includes: for each target virtual element, adding the target virtual element at most At least one background image among the background images is obtained to obtain the preview cover of the multimedia resource.
  • Fig. 2 is a flow chart of another method for generating a preview cover according to an exemplary embodiment. Referring to Fig. 2, the method is applied in a terminal, and includes the following steps:
  • the terminal receives a preview cover generation instruction of the multimedia resource through a preview cover generation interface of the multimedia resource.
  • the terminal acquires the multimedia resource input by the user, and after receiving the preview cover generation instruction of the multimedia resource, identifies the background image, virtual element and cover text of the multimedia resource, and then combines the background image, virtual element and cover Text to generate a preview cover for this multimedia resource.
  • a cover generation application is installed on the terminal, and the cover generation application acquires a multimedia resource uploaded by a user, identifies the multimedia resource, and generates a preview cover for the multimedia resource.
  • the terminal is installed with a video application
  • the video application acquires the multimedia resource uploaded by the user, generates a preview cover for the multimedia resource, and subsequently displays the preview cover to the user through the video application, in response to the user triggering the preview cover operation to play the multimedia resource corresponding to the preview cover.
  • the preview cover generation interface includes multimedia resources.
  • Multimedia resources are video, audio or other types of resources.
  • Multimedia resources can be of any size.
  • Multimedia resources are MPEG (Moving Picture Experts Group, Moving Picture Experts Group), AVI (Audio Video Interleaved, audio and video interleaved), WMV (Windows Media Video) , a streaming media format) or resources in other formats, which are not limited in this disclosure.
  • the preview cover generation instruction is used to instruct to generate a corresponding preview cover for the multimedia resource.
  • the preview cover generation interface includes a preview cover generation button
  • the terminal generates a preview cover generation instruction in response to a user triggering the preview cover generation button
  • the terminal receives the preview cover generation instruction through the preview cover generation interface.
  • the trigger operation is a click operation, a sliding operation or other operations.
  • the terminal before displaying the preview cover generation interface of the multimedia resource, displays the preview cover setting interface, and receives a resource acquisition instruction through the preview cover setting interface, where the resource acquisition instruction is used to instruct acquisition of the multimedia resource; in response to the resource Get instructions to select multimedia resources from the resource library.
  • the resource library stores multiple multimedia resources, and the resource library is a resource library in the terminal or a resource library in the server.
  • the terminal displays a plurality of multimedia resources stored in the resource library of the terminal, and the user selects the multimedia resources for which a preview cover needs to be generated from the plurality of multimedia resources.
  • the terminal sends a resource acquisition request to the server in response to the resource acquisition instruction, and the server acquires multiple multimedia resources from the resource library in response to the resource acquisition request, sends the multimedia resources to the terminal, and the terminal displays the received multiple multimedia resources, It is used to select the multimedia resource that needs to generate a preview cover from multiple multimedia resources.
  • the preview cover setting interface includes a resource acquisition button, and the terminal generates a resource acquisition instruction in response to a user's triggering operation on the resource acquisition button.
  • the trigger operation is a click operation, a sliding operation or other operations.
  • the resource acquisition instruction includes a first resource acquisition instruction and a second resource acquisition instruction
  • the first resource acquisition instruction is used to instruct to select multimedia resources from a resource library of the terminal
  • the second resource acquisition instruction is used to instruct the server Select multimedia resources from the resource library.
  • the preview cover setting interface includes a first resource acquisition button and a second resource acquisition button, and the terminal generates a first resource acquisition instruction in response to the triggering operation of the first resource acquisition button, and responds to the triggering of the second resource acquisition button. operation to generate a second resource acquisition instruction.
  • the preview cover setting interface includes a size setting option
  • the size setting option is used to set the size of the multimedia resource when displayed
  • the terminal sets the acquired multimedia resource to the corresponding size in response to the setting operation of the option.
  • the size setting options include two options: 9:16 and 16:9. In response to the selection operation for 9:16, the size of the acquired multimedia resource is converted to 9:16.
  • the terminal acquires the cover text corresponding to the multimedia resource in response to the preview cover generation instruction.
  • the terminal in response to the received preview cover generation instruction, obtains the resource label, cover text, background image and virtual element corresponding to the multimedia resource, so as to generate the preview cover. During this process, the terminal can automatically generate a preview cover for the multimedia resource without the need for the user to perform other operations.
  • the preview cover generation interface includes a cover text setting area
  • the user can input one or more cover texts in the cover text setting area
  • the terminal responds to the preview cover generation instruction to obtain the information entered by the user in the preview cover generation interface. Cover text.
  • the terminal in response to the preview cover generation instruction, identifies image content corresponding to each image in the multimedia resource, and generates cover text based on the identified image content.
  • the image content includes text content, characters, items and other content.
  • the terminal acquires multiple images in the multimedia resource, identifies the text content, characters, items and other information in each image, obtains the image content, further identifies the image content corresponding to the multiple images, determines the core content of the image content, and processes the core content Get cover text.
  • the core content refers to at least one of the text content, characters or items that appear most frequently in the multiple images, or the core content is obtained by combining the text content, characters or items that appear the most frequently. For example, if diapers appear in multiple images, diapers are considered to be the core content; or, if diapers and babies appear in multiple images, babies and diapers are considered as the core content.
  • the multimedia resource is a video related to diapers, identify multiple images in the video, obtain images of the baby, images of diapers, text descriptions about diapers, etc., and determine that the core content of the image content is the baby's diapers, so as to obtain the cover text , the cover text is "Xiaobao Diapers", "Baby's Diapers", etc.
  • the terminal performs face recognition on the image to obtain the face in the image; performs still life recognition on the image to obtain the item in the image; performs scene recognition on the image to determine the scene in the current image; performs copywriting on the image Recognition, to determine the text content in the image.
  • the terminal generates one or more cover texts based on the image content corresponding to the multiple images.
  • the core contents corresponding to the multiple cover texts are the same, and only different texts are used to describe the core content. content.
  • the terminal invokes the cover text generation model, identifies the multimedia resource, and obtains the cover text corresponding to the multimedia resource.
  • the cover text generation model is a trained model for generating cover text for multimedia resources. This embodiment of the present disclosure does not limit the training process of the cover text generation model.
  • the embodiments of the present disclosure do not limit the manner of recognizing images.
  • the terminal recognizes faces in images based on a face recognition model, and recognizes text content in images based on a text recognition model.
  • the terminal identifies the background image and the resource label of the multimedia resource in response to the preview cover generation instruction.
  • the terminal recognizes the background image and the resource tag of the multimedia resource in response to the instruction for generating the preview cover of the multimedia resource, so as to obtain the background image, the cover text and the target virtual element, and combine the background image, the cover text and the target virtual element. element, so as to generate a preview cover of multimedia resources with one click.
  • the background image is an image reflecting the content of the multimedia resource
  • the resource tag is used to represent the resource content of the multimedia resource
  • the resource tag includes a video tag or other tags
  • the video tag is used to indicate the tag to which the video content belongs.
  • the video tag includes Game videos, e-commerce videos, food videos, etc.
  • the terminal acquires multiple images in the multimedia resource; from the multiple images, an image that satisfies a preset condition is selected as the background image of the multimedia resource.
  • the preset conditions include at least one condition, such as clear image, the person or item in the image has a complete and clear outline, the text in the image is displayed completely, the person in the image cannot close their eyes, and the image does not include a watermark.
  • the at least one condition refers to one or more of the above-mentioned conditions.
  • the preset condition is that the image is clear, or the preset condition is that the image is clear and the image does not contain a watermark.
  • the preset condition may be referred to as the target condition.
  • the terminal selects an image that satisfies the target condition from a plurality of images as the background image of the multimedia resource.
  • the terminal after determining the background image, the terminal identifies the target position in the background image.
  • the target position is the position where the virtual element or cover text is added, and the target position is any position in the background image.
  • the terminal recognizes the position of the target object in the background image, and determines the target position based on the position of the target object, so that there is no overlap between the target position and the position of the target object, that is, the target position and the target object There is no overlapping area between the positions at all, preventing dummy elements or cover text from obscuring the original target object in the background image when adding a dummy element or cover text to the target position.
  • the target object includes at least one of text content, human face, or objects belonging to the target type, and at least one refers to one or more of the above-mentioned multiple objects, for example, the target object is text content, human face or Any of the items belonging to the target type, or the target object is text content, a face, or any two of the items belonging to the target type, or the target object is text content, a face, and an item belonging to the target type.
  • the text content refers to the text in the background image
  • the objects belonging to the target type refer to the objects of the target type in the background image
  • the target type includes at least one type.
  • the target type is determined according to the content of the multimedia resource, and the target type is different when the content of the multimedia resource is different.
  • the multimedia resource is an advertisement about diapers, then “diapers” is the subject in the background image, and the target type is diapers; if the multimedia resource is an advertisement about electronic products, then “electronic products” is the subject in the background image, and the target type is diapers.
  • the multimedia resource is an advertisement about electronic products, then “electronic products” is the subject in the background image, and the target type is diapers.
  • Types of electronic products such as mobile phones and computers.
  • the target location is located next to, adjacent to, eg, above, below, etc. the location of the target object.
  • the target position is determined so that the target position does not overlap with the position of the target object and does not affect the overall display effect of the background image.
  • the terminal identifies information such as text content, characters, items, etc. in the multimedia resource, obtains content for describing the multimedia resource, further analyzes the content, and determines a resource tag representing the resource content of the multimedia resource.
  • the embodiment of the present disclosure only takes the cover text obtained first, and then the background image and the resource label as an example for description.
  • the background image and the resource label are obtained first, and then the cover text is obtained, or
  • the cover text, the background image, and the resource label are obtained at the same time, and the embodiment of the present disclosure does not limit the sequence of obtaining the cover text, the background image, and the resource label.
  • the terminal acquires a virtual element type matching the resource tag, and selects a target virtual element from at least one virtual element belonging to the virtual element type.
  • the terminal determines the target virtual element based on at least one virtual element belonging to the virtual element type. In the case where there is one virtual element belonging to the virtual element type, the one virtual element is determined as the target virtual element; in the case where there are multiple virtual elements belonging to the virtual element type, one virtual element is selected from the multiple virtual elements Determined as the target virtual element.
  • the virtual element types include e-commerce types, game types, financial types, etc., and there is a corresponding relationship between virtual elements and resource tags.
  • the target virtual element is an element used to reflect the content of the multimedia resource, and the virtual element is a sticker, an avatar, a virtual item, and the like.
  • the terminal acquires the virtual element type matching the resource type according to the preset correspondence, so as to ensure that the acquired virtual element matches the multimedia resource.
  • the preset correspondence includes resource tags and corresponding virtual element types. For example, if the resource type is an e-commerce type, the virtual elements of the e-commerce type are obtained by querying the preset corresponding relationship.
  • the preset correspondence may be referred to as target correspondence
  • the resource type may be referred to as resource label
  • the terminal obtains a virtual element type matching the resource label based on the target correspondence.
  • the target correspondence includes resource tags and corresponding virtual element types.
  • the terminal after acquiring the virtual element type matching the resource tag, the terminal identifies the target color of the background image; from at least one virtual element belonging to the virtual element type, selects the target virtual element whose color is different from the target color, and also selects the target virtual element whose color is different from the target color. That is, the terminal determines the target virtual element based on at least one virtual element belonging to the virtual element type and having a color different from the target color.
  • the target color refers to the main color of the background image, and the target virtual element with a different color from the target color is selected to ensure that the color of the target virtual element is different from the main color of the background image, and the target virtual element is clearly displayed in the background image.
  • the main color of the background image is black, and the color of the selected target virtual element can be white.
  • the terminal adds the cover text and the target virtual element to the background image to obtain a preview cover of the multimedia resource.
  • the terminal combines the cover text, the target virtual element and the background image to obtain the preview cover of the multimedia resource.
  • the terminal adds the target virtual element to the target position to obtain the preview cover of the multimedia resource. Or, the terminal adds the cover text and the target virtual element to the target position to obtain a preview cover of the multimedia resource, where the cover text is located on the upper layer of the target virtual element.
  • the terminal adds the target virtual element to the background image to obtain the first image; adds the cover text to the upper layer of the target virtual element in the first image, and determines the obtained image as the preview cover, that is, the preview cover is obtained .
  • the terminal adding the target virtual element to the background image to obtain the first image includes: the terminal adding the target virtual element to the target position to obtain the first image.
  • the terminal displays the preview cover in the preview interface.
  • the terminal displays the preview cover on the preview interface, and the user checks the display effect of the preview cover. If the user is not satisfied with the display effect of the preview cover, the user further adjusts the preview cover.
  • the preview interface includes an element adjustment area
  • the element adjustment area includes a target virtual element and at least one other virtual element except the target virtual element
  • the terminal displays the target virtual element and the target virtual element in the element adjustment area in the preview interface.
  • At least one other virtual element in response to a selection operation on any other virtual element in the element adjustment area, determines the selected virtual element as the adjusted target virtual element.
  • the other virtual elements are other virtual elements except the target virtual element currently displayed in the preview cover. That is, the terminal acquires multiple candidate virtual elements, the target virtual element currently displayed in the preview cover is one of the multiple candidate virtual elements, and the terminal displays the target element and at least one candidate virtual element in the element adjustment area.
  • the user selects any candidate virtual element from at least one candidate virtual element except the target virtual element, and replaces the currently displayed target virtual element with the selected candidate virtual element, and the candidate virtual element to be selected is used. It is determined as the adjusted target virtual element, and the adjustment of the target virtual element is realized, and the position of the adjusted target virtual element does not change.
  • the candidate virtual element may be a preset virtual element, or may be a virtual element determined in the above manner.
  • the terminal in response to a moving operation on the target virtual element of the preview interface, determines the position of the moved target virtual element as the adjusted target position, so that the target virtual element is located at the adjusted target position.
  • the adjusted target position and the target object may not overlap or may overlap.
  • the preview interface further includes a text adjustment area
  • the text adjustment area includes the cover text and at least one other cover text except the cover text
  • the terminal displays the cover text in the current preview cover and at least one other cover text in the text adjustment area.
  • One other cover text in response to a selection operation on any other cover text in the text adjustment area, the selected cover text is determined as the adjusted cover text.
  • the other cover text includes other cover text except the cover text currently displayed in the preview cover.
  • the terminal acquires multiple cover texts, the currently displayed cover text in the preview cover is one of the multiple cover texts, and the user selects one cover text from other cover texts to replace the currently displayed cover text, so as to adjust the cover text, and The position of the adjusted cover text does not change.
  • other cover texts may be referred to as alternative cover texts
  • the text adjustment area includes cover texts and at least one alternative cover text, the at least one alternative cover text being different from the cover text displayed in the currently previewed cover.
  • the terminal determines the selected candidate cover text as the adjusted cover text.
  • the terminal in response to an editing operation on the currently displayed cover text in the preview cover, edits the currently displayed cover text, obtains the edited cover text, and determines the edited cover text as the adjusted cover text.
  • the terminal displays multiple motion effects in the motion effect setting area of the preview interface, and in response to a selection operation on any motion effect in the motion effect setting area of the preview interface, determines the selected motion effect as the preview cover
  • the target animation in the preview interface, the preview cover is displayed according to the target animation.
  • the dynamic effects include fading in and out, corner switching, sliding up, page turning, etc.
  • the target motion effect is sliding up
  • the preview cover is displayed in the preview interface by sliding up.
  • the embodiment of the present disclosure only takes obtaining a preview cover of a multimedia resource as an example for description.
  • the terminal may obtain multiple preview covers of a multimedia resource, and the acquisition method of each preview cover is the same as The acquisition method of the preview cover shown in the embodiment of the present disclosure is the same.
  • the background image acquired by the terminal includes a plurality of target virtual elements
  • the terminal adds the plurality of target virtual elements to at least one background image of the plurality of background images respectively to obtain multiple preview covers of the multimedia resource.
  • the terminal adds the target virtual element to at least one background image among the multiple background images, respectively, to obtain a preview cover of the multimedia resource.
  • a target virtual element is added to each background image, that is, each preview cover includes a target virtual element. For example, if there are 5 target virtual elements and 1 background image, then each target virtual element is added to the background image to obtain 5 preview covers.
  • any target virtual element and any background image are combined to obtain a preview cover, and multiple target virtual elements and multiple background images can be combined in pairs to obtain multiple preview covers. For example, if the terminal obtains 5 background images and 5 target virtual elements, a maximum of 120 preview covers can be obtained.
  • the terminal when there are multiple background images acquired by the terminal and there is one target virtual element, the terminal combines the target virtual element with multiple background images respectively to obtain multiple preview covers.
  • the terminal acquires multiple background images, multiple target virtual elements, and multiple cover texts, and the terminal adds multiple cover texts and multiple target virtual elements to at least one of the multiple background images, respectively. Background images to get multiple preview covers of multimedia resources.
  • each obtained preview cover includes a target virtual element and a cover text.
  • two background images, two target virtual elements, and two cover texts are obtained, and combined with each other, a maximum of eight preview covers are obtained.
  • the terminal may add multiple target virtual elements and multiple cover texts to the target position of at least one background image among the multiple background images, so as to obtain multiple preview covers of the multimedia resource.
  • the preview cover generation interface includes a preview cover quantity setting area
  • the user inputs the number of preview covers to be generated in the preview cover setting area
  • the terminal generates a corresponding number of preview covers for the multimedia resource according to the quantity input by the user
  • the preview The corresponding number of generated preview covers are displayed in the interface at the same time, which realizes batch generation of preview covers, improves the generation efficiency of preview covers, and the user can view multiple generated preview covers at the same time.
  • the multimedia resource is input in the preview cover setting interface 301
  • the cover text is input in the cover text setting area of the preview cover generation interface 302
  • the response The user triggers the preview cover generation button in the preview cover generation interface, and in the preview interface 303, the generated preview cover is displayed.
  • FIG. 3 it is only an example of inputting cover text 1 and cover text 2 in the cover text setting area to generate the corresponding preview cover 1 and preview cover 2.
  • the user can input other quantities in the cover text setting area.
  • the number of cover texts input by the user in the cover text setting area is not limited.
  • a corresponding adjustment button is provided below each preview cover, and in response to the triggering operation of the adjustment button, the generated preview is further adjusted in the preview interface 304 cover.
  • the preview interface 304 displays the animation effect setting area, the cover text adjustment area and the virtual element adjustment area, and based on these areas, the display animation effect, cover text and target virtual element of the preview cover are adjusted respectively.
  • the multimedia resource is input in the preview cover setting interface 501, and in response to the triggering operation of the preview cover generation button in the preview cover generation interface 502 by the user, in the preview cover generation interface 502 In the preview interface 503, the generated preview cover is displayed.
  • the generated preview cover 2 is further adjusted in the preview interface 504 to obtain the adjusted preview cover 2.
  • the terminal displays the preview interface 504
  • the adjusted preview cover 2 is displayed in .
  • the terminal displays the preview cover 2 before adjustment.
  • multiple adjusted preview covers 2 can be obtained, and the terminal can display other preview covers 2 in response to the sliding operation of the currently displayed preview cover 2.
  • the display effects of the multiple preview covers 2 are compared, and the preview cover 2 with the best display effect is determined.
  • the preview interface includes a save button, and in response to a triggering operation of the save button, the terminal stores the generated preview cover corresponding to the multimedia resource.
  • the preview interface includes a release button, and the terminal releases the generated preview cover and multimedia resources in response to a triggering operation of the release button, so that any terminal that logs in to the video application displays multimedia.
  • the multimedia resource corresponding to the preview cover is acquired, and the multimedia resource is played.
  • the terminal displays any one of the multiple preview covers, and the preview covers can be changed at any time.
  • steps 202 to 205 may be applied to a server. That is, the terminal displays a preview generation interface of the multimedia resource, the terminal sends a preview cover generation instruction to the server, the preview cover generation instruction carries the multimedia resource, the server generates a corresponding preview cover according to the multimedia resource, and the server sends the generated preview cover to the terminal.
  • the terminal displays the preview cover in the preview interface.
  • the embodiment of the present disclosure only takes the generation of the preview cover of the multimedia resource according to the acquired background image, virtual element and cover text of the multimedia resource as an example for description.
  • the background images and virtual elements of the acquired multimedia resources are generated, and the preview cover of the multimedia resources is generated without acquiring the cover text.
  • the user manually sets the preview cover, the user needs to select the background image, the target virtual element, set the cover text, and then add the cover text and the target virtual element to the background image, which takes a long time and costs a lot of time. , and if the user does not know what kind of background image, target virtual element and cover text are more attractive to the user, the display effect of the set preview cover will also be poor.
  • the method provided by the embodiments of the present disclosure only needs to trigger the preview cover generation instruction on the preview cover generation interface of the multimedia resource, and the preview cover of the multimedia resource can be automatically generated.
  • the user does not need to perform other operations, which is more convenient and intelligent, and is compatible with the Compared with the manual production of the preview cover by the user, the above-mentioned automatic generation method generates the preview cover faster, improves the efficiency of generating the preview cover, and reduces the cost.
  • the cover text in response to the preview cover generation instruction, can be obtained, the cover text and the target virtual element can be added to the background image, and the preview cover can be obtained.
  • the user does not need to manually set the cover text, and is generated according to the background image, the target virtual element and the cover text.
  • the user does not need to perform any operation, and can generate the preview cover of the multimedia resource with one click, which improves the efficiency of generating the preview cover and reduces the cost.
  • multiple preview covers of multimedia resources can be obtained at the same time, and batch generation of preview covers can be realized, which further improves the efficiency of obtaining preview covers and reduces costs.
  • the generated preview cover can be further adjusted, which improves flexibility.
  • Fig. 7 is a block diagram of an apparatus for generating a preview cover according to an exemplary embodiment.
  • the device includes:
  • the generation instruction receiving unit 701 is configured to receive the preview cover generation instruction of the multimedia resource through the preview cover generation interface of the multimedia resource;
  • the identification processing unit 702 is configured to identify the background image and the resource label of the multimedia resource in response to the preview cover generation instruction;
  • the preview cover obtaining unit 703 is configured to obtain the target virtual element, the target virtual element matches the resource tag, and the target virtual element is added to the background image to obtain the preview cover of the multimedia resource;
  • the preview cover display unit 704 is configured to display the preview cover in the preview interface.
  • the device provided by the embodiment of the present disclosure can automatically generate the preview cover of the multimedia resource only by triggering the preview cover generation instruction on the preview cover generation interface of the multimedia resource.
  • the user does not need to perform other operations, which is more convenient and intelligent, and is compatible with the Compared with the manual production of the preview cover by the user, the above-mentioned automatic generation method generates the preview cover faster, improves the efficiency of generating the preview cover, and reduces the cost.
  • the apparatus further includes:
  • a target position determination unit 705, configured to identify the target position in the background image
  • the preview cover obtaining unit 703 is configured to add the target virtual element to the target position to obtain the preview cover of the multimedia resource.
  • the target position determination unit 705 is configured to:
  • the target object includes at least one of text content, human face or objects belonging to the target type;
  • the target position is determined, and there is no overlap between the target position and the position of the target object.
  • the apparatus further includes:
  • the cover text obtaining unit 706 is configured to, in response to the preview cover generation instruction, obtain cover text corresponding to the multimedia resource, where the cover text is used to describe the content of the multimedia resource;
  • the preview cover obtaining unit 703 is configured to add the cover text and the target virtual element to the background image to obtain the preview cover of the multimedia resource.
  • the cover text obtaining unit 706 includes:
  • the first obtaining subunit 7061 is configured to obtain the cover text input in the preview cover generation interface; or,
  • the second obtaining subunit 7062 is configured to identify image content corresponding to each image in the multimedia resource, and generate cover text based on the identified image content.
  • the preview cover obtaining unit 703 is configured to:
  • the cover text is added to the upper layer of the target virtual element in the first image to obtain a preview cover.
  • the preview cover obtaining unit 703 includes:
  • the virtual element acquiring subunit 7031 is configured to acquire a virtual element type, which matches the resource tag; and determine a target virtual element based on at least one virtual element belonging to the virtual element type.
  • the virtual element obtaining subunit 7031 is configured to obtain the virtual element type matching the resource tag based on the target correspondence relationship, and the target correspondence relationship includes the resource type and the corresponding virtual element label.
  • the virtual element acquisition subunit 7031 is configured to:
  • a target virtual element is determined based on at least one virtual element of a virtual element type and having a color different from the target color.
  • the identification processing unit 702 is configured to:
  • an image that satisfies the target condition is selected as the background image of the multimedia resource.
  • the apparatus further includes:
  • the acquisition instruction receiving unit 707 is configured to receive the resource acquisition instruction through the preview cover setting interface
  • the resource obtaining unit 708 is configured to select the multimedia resource from the resource library in response to the resource obtaining instruction.
  • the preview interface includes an element adjustment area
  • the element adjustment area includes a target virtual element and at least one candidate virtual element
  • the at least one candidate virtual element is different from the target virtual element
  • the apparatus further includes:
  • the virtual element adjustment unit 709 is configured to, in response to a selection operation of any candidate virtual element in the element adjustment area of the preview interface, determine the selected candidate virtual element as the adjusted target virtual element.
  • the apparatus further includes:
  • the target position adjustment unit 710 is configured to, in response to the moving operation on the target virtual element of the preview interface, determine the position of the moved target virtual element as the adjusted target position.
  • the preview interface includes a text adjustment area
  • the text adjustment area includes cover text and at least one alternative cover text
  • the at least one alternative cover text is different from the cover text
  • the apparatus further includes:
  • the cover text adjustment unit 711 is configured to, in response to a selection operation of any candidate cover text in the text adjustment area of the preview interface, determine the selected candidate cover text as the adjusted cover text.
  • the background image includes multiple
  • the target virtual element includes multiple
  • the preview cover obtaining unit 703 is configured to, for each target virtual element, add the target virtual element to at least one background of the multiple background images, respectively. image to get the preview cover of the multimedia resource.
  • FIG. 9 is a block diagram of a terminal 900 for generating a preview cover according to an exemplary embodiment.
  • the terminal 900 is used to perform the steps performed by the terminal in the above-mentioned preview cover generation method, and may be a portable mobile terminal, such as a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, a moving picture expert compressed standard audio Layer 3), MP4 (Moving Picture Experts Group Audio Layer IV, Moving Picture Experts Compression Standard Audio Layer 4) player, laptop or desktop computer.
  • Terminal 900 may also be called user equipment, portable terminal, laptop terminal, desktop terminal, and the like by other names.
  • the terminal 900 includes: one or more processors 901 and one or more memories 902 .
  • the processor 901 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like.
  • the processor 901 can use at least one hardware form among DSP (Digital Signal Processing, digital signal processing), FPGA (Field-Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array, programmable logic array) accomplish.
  • the processor 901 may also include a main processor and a co-processor.
  • the main processor is a processor used to process data in the wake-up state, also called CPU (Central Processing Unit, central processing unit); the co-processor is A low-power processor for processing data in a standby state.
  • the processor 901 may be integrated with a GPU (Graphics Processing Unit, image processor), and the GPU is used for rendering and drawing the content that needs to be displayed on the display screen.
  • the processor 901 may further include an AI (Artificial Intelligence, artificial intelligence) processor, where the AI processor is used to process computing operations related to machine learning.
  • AI Artificial Intelligence, artificial intelligence
  • Memory 902 may include one or more computer-readable storage media, which may be non-transitory.
  • the memory 902 may also include volatile memory or non-volatile memory, such as one or more disk storage devices, flash memory storage devices.
  • a non-transitory computer-readable storage medium in the memory 902 is used to store at least one instruction for being possessed by the processor 901 to implement the preview cover provided by the method embodiments of the present application Generate method.
  • the terminal 900 may optionally further include: a peripheral device interface 903 and at least one peripheral device.
  • the processor 901, the memory 902 and the peripheral device interface 903 may be connected through a bus or a signal line.
  • Each peripheral device can be connected to the peripheral device interface 903 through a bus, a signal line or a circuit board.
  • the peripheral device includes: at least one of a radio frequency circuit 904 , a display screen 905 , a camera 906 , an audio circuit 907 , a positioning component 908 and a power supply 909 .
  • the peripheral device interface 903 may be used to connect at least one peripheral device related to I/O (Input/Output) to the processor 901 and the memory 902 .
  • processor 901, memory 902, and peripherals interface 903 are integrated on the same chip or circuit board; in some other embodiments, any one of processor 901, memory 902, and peripherals interface 903 or The two can be implemented on a separate chip or circuit board, which is not limited in this embodiment.
  • the radio frequency circuit 904 is used for receiving and transmitting RF (Radio Frequency, radio frequency) signals, also called electromagnetic signals.
  • the radio frequency circuit 904 communicates with the communication network and other communication devices through electromagnetic signals.
  • the radio frequency circuit 904 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals.
  • radio frequency circuitry 904 includes an antenna system, an RF transceiver, one or more amplifiers, tuners, oscillators, digital signal processors, codec chipsets, subscriber identity module cards, and the like.
  • the radio frequency circuit 904 may communicate with other terminals through at least one wireless communication protocol.
  • the wireless communication protocols include, but are not limited to, metropolitan area networks, mobile communication networks of various generations (2G, 3G, 4G and 5G), wireless local area networks and/or WiFi (Wireless Fidelity, wireless fidelity) networks.
  • the radio frequency circuit 904 may further include a circuit related to NFC (Near Field Communication, short-range wireless communication), which is not limited in this application.
  • the display screen 905 is used to display a UI (User Interface).
  • the UI can include graphics, text, icons, video, and any combination thereof.
  • the display screen 905 also has the ability to acquire touch signals on or above the surface of the display screen 905 .
  • the touch signal may be input to the processor 901 as a control signal for processing.
  • the display screen 905 may also be used to provide virtual buttons and/or virtual keyboards, also referred to as soft buttons and/or soft keyboards.
  • the display screen 905 may be a flexible display screen, disposed on a curved surface or a folding surface of the terminal 900 . Even, the display screen 905 can also be set as a non-rectangular irregular figure, that is, a special-shaped screen.
  • the display screen 905 can be prepared by using materials such as LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, organic light emitting diode).
  • the camera assembly 906 is used to capture images or video.
  • the camera assembly 906 includes a front camera and a rear camera.
  • the front camera is arranged on the front panel of the terminal, and the rear camera is arranged on the back of the terminal.
  • there are at least two rear cameras which are any one of a main camera, a depth-of-field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth-of-field camera to realize the background blur function, the main camera It is integrated with the wide-angle camera to achieve panoramic shooting and VR (Virtual Reality, virtual reality) shooting functions or other integrated shooting functions.
  • camera assembly 906 may also include a flash.
  • the flash can be a single color temperature flash or a dual color temperature flash. Dual color temperature flash refers to the combination of warm light flash and cold light flash, which can be used for light compensation under different color temperatures.
  • Audio circuitry 907 may include a microphone and speakers.
  • the microphone is used to collect the sound waves of the user and the environment, convert the sound waves into electrical signals, and input them to the processor 901 for processing, or to the radio frequency circuit 904 to realize voice communication.
  • the microphone may also be an array microphone or an omnidirectional collection microphone.
  • the speaker is used to convert the electrical signal from the processor 901 or the radio frequency circuit 904 into sound waves.
  • the loudspeaker can be a traditional thin-film loudspeaker or a piezoelectric ceramic loudspeaker.
  • the speaker When the speaker is a piezoelectric ceramic speaker, it can not only convert electrical signals into sound waves audible to humans, but also convert electrical signals into sound waves inaudible to humans for distance measurement and other purposes.
  • the audio circuit 907 may also include a headphone jack.
  • the positioning component 908 is used to locate the current geographic location of the terminal 900 to implement navigation or LBS (Location Based Service, location-based service).
  • the positioning component 908 may be a positioning component based on the GPS (Global Positioning System, global positioning system) of the United States, the Beidou system of China, the Grenas system of Russia, or the Galileo system of the European Union.
  • GPS Global Positioning System, global positioning system
  • the power supply 909 is used to power various components in the terminal 900 .
  • the power source 909 may be alternating current, direct current, primary batteries, or rechargeable batteries.
  • the rechargeable battery can support wired charging or wireless charging.
  • the rechargeable battery can also be used to support fast charging technology.
  • terminal 900 also includes one or more sensors 910 .
  • the one or more sensors 910 include, but are not limited to, an acceleration sensor 911 , a gyro sensor 912 , a pressure sensor 913 , a fingerprint sensor 914 , an optical sensor 915 , and a proximity sensor 916 .
  • the acceleration sensor 911 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the terminal 900 .
  • the acceleration sensor 911 can be used to detect the components of the gravitational acceleration on the three coordinate axes.
  • the processor 901 may control the display screen 905 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 911 .
  • the acceleration sensor 911 can also be used for game or user movement data collection.
  • the gyroscope sensor 912 can detect the body direction and rotation angle of the terminal 900 , and the gyroscope sensor 912 can cooperate with the acceleration sensor 911 to collect 3D actions of the user on the terminal 900 .
  • the processor 901 can implement the following functions according to the data collected by the gyro sensor 912 : motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
  • the pressure sensor 913 may be disposed on the side frame of the terminal 900 and/or the lower layer of the display screen 905 .
  • the processor 901 can perform left and right hand identification or shortcut operations according to the holding signal collected by the pressure sensor 913.
  • the processor 901 controls the operability controls on the UI interface according to the user's pressure operation on the display screen 905.
  • the operability controls include at least one of button controls, scroll bar controls, icon controls, and menu controls.
  • the fingerprint sensor 914 is used to collect the user's fingerprint, and the processor 901 identifies the user's identity according to the fingerprint collected by the fingerprint sensor 914, or the fingerprint sensor 914 identifies the user's identity according to the collected fingerprint. When the user's identity is identified as a trusted identity, the processor 901 authorizes the user to perform relevant sensitive operations, including unlocking the screen, viewing encrypted information, downloading software, making payments, and changing settings.
  • the fingerprint sensor 914 may be provided on the front, back or side of the terminal 900 . When the terminal 900 is provided with a physical button or a manufacturer's logo, the fingerprint sensor 914 can be integrated with the physical button or the manufacturer's logo.
  • Optical sensor 915 is used to collect ambient light intensity.
  • the processor 901 may control the display brightness of the display screen 905 according to the ambient light intensity collected by the optical sensor 915 . Specifically, when the ambient light intensity is high, the display brightness of the display screen 905 is increased; when the ambient light intensity is low, the display brightness of the display screen 905 is decreased.
  • the processor 901 may also dynamically adjust the shooting parameters of the camera assembly 906 according to the ambient light intensity collected by the optical sensor 915 .
  • a proximity sensor 916 also called a distance sensor, is usually provided on the front panel of the terminal 900 .
  • the proximity sensor 916 is used to collect the distance between the user and the front of the terminal 900 .
  • the processor 901 controls the display screen 905 to switch from the bright screen state to the off screen state; when the proximity sensor 916 detects When the distance between the user and the front of the terminal 900 gradually increases, the processor 901 controls the display screen 905 to switch from the closed screen state to the bright screen state.
  • FIG. 9 does not constitute a limitation on the terminal 900, and may include more or less components than shown, or combine some components, or adopt different component arrangements.
  • FIG. 10 is a schematic structural diagram of a server according to an exemplary embodiment.
  • the server 1000 may vary greatly due to different configurations or performance, and may include one or more processors (Central Processing Units, CPU) 1001 and one or more memories 1002, wherein at least one instruction is stored in the memory 1002, and the at least one instruction is loaded and executed by the processor 1001 to implement the methods provided by the foregoing method embodiments.
  • the server may also have components such as a wired or wireless network interface, a keyboard, and an input/output interface for input and output, and the server may also include other components for implementing device functions, which will not be described here.
  • the server 1000 may be configured to perform the steps performed by the server in the above-mentioned method for generating a preview cover page.
  • an electronic device comprising: one or more processors; volatile or non-volatile memory for storing one or more processor-executable instructions; Wherein, one or more processors are configured to execute the instruction, and realize the following steps: receiving a preview cover generation instruction of the multimedia resource through the preview cover generation interface of the multimedia resource; in response to the preview cover generation instruction, identifying the background image of the multimedia resource and resource label; obtain the target virtual element, match the target virtual element with the resource label, add the target virtual element to the background image, and obtain the preview cover of the multimedia resource; in the preview interface, display the preview cover.
  • the one or more processors are configured to execute instructions to implement the steps of: identifying a target location in the background image; adding the target virtual element to the target location to obtain a preview cover of the multimedia resource.
  • the one or more processors are configured to execute instructions for identifying the location of a target object in the background image, the target object comprising at least one of textual content, a human face, or an item of the target type One; the target position is determined based on the position of the target object, and the target position and the position of the target object do not overlap.
  • one or more processors are configured to execute instructions to implement the following steps: in response to the preview cover generation instruction, obtain cover text corresponding to the multimedia resource, where the cover text is used to describe the content of the multimedia resource; Add the target dummy element to the background image to get the preview cover of the multimedia resource.
  • one or more processors are configured to execute the instructions to implement the following steps: obtain the cover text input in the preview cover generation interface; or, identify the image content corresponding to each image in the multimedia resource, based on The recognized image content generates cover text.
  • the one or more processors are configured to execute instructions to implement the steps of: adding a target virtual element to a background image to obtain a first image; adding cover text to the first image within the target virtual element On the upper layer, the resulting image is determined as the preview cover.
  • the one or more processors are configured to execute instructions to implement the steps of: obtaining a virtual element type that matches a resource tag; and determining a target virtual element based on at least one virtual element belonging to the virtual element type .
  • the one or more processors are configured to execute instructions to implement the steps of: obtaining a virtual element type matching the resource tag based on the target correspondence relationship, the target correspondence relationship including the resource tag and the corresponding virtual element type.
  • the one or more processors are configured to execute instructions to perform the steps of: identifying a target color of the background image; determining the target virtual element based on at least one virtual element of a virtual element type and having a color different from the target color element.
  • the one or more processors are configured to execute instructions to implement the following steps: acquiring multiple images in the multimedia resource; and selecting an image that satisfies the target condition from the multiple images as the background image of the multimedia resource.
  • the one or more processors are configured to execute instructions to implement the steps of: receiving a resource acquisition instruction through a preview cover setting interface; and selecting a multimedia resource from a resource library in response to the resource acquisition instruction.
  • the preview interface includes an element adjustment area
  • the element adjustment area includes a target virtual element and at least one candidate virtual element
  • the at least one candidate virtual element is different from the target virtual element
  • the one or more processors are configured to execute The instruction implements the following steps: in response to a selection operation on any candidate virtual element in the element adjustment area, determining the selected candidate virtual element as the adjusted target virtual element.
  • the one or more processors are configured to execute instructions to implement the steps of: in response to a moving operation on the target virtual element of the preview interface, determining the position of the moved target virtual element as the adjusted target position .
  • the preview interface includes a text adjustment area
  • the text adjustment area includes cover text and at least one alternative cover text
  • the at least one alternative cover text is different from the cover text
  • the one or more processors are configured to execute the instructions, The following steps are implemented: in response to a selection operation on any candidate cover text in the text adjustment area, determining the selected candidate cover text as the adjusted cover text.
  • the background image includes a plurality
  • the target virtual element includes a plurality
  • the one or more processors are configured to execute instructions to implement the steps of: for each target virtual element, adding the target virtual element to the plurality of At least one background image in the background images obtains the preview cover of the multimedia resource.
  • a non-transitory computer-readable storage medium when the instructions in the storage medium are executed by the processor of the electronic device, the electronic device can perform the following steps: previewing the cover through the multimedia resource Generate an interface, receive the preview cover generation instruction of the multimedia resource; identify the background image and resource label of the multimedia resource in response to the preview cover generation instruction; acquire the target virtual element, match the target virtual element with the resource label, and add the target virtual element to the background image to get the preview cover of the multimedia resource; in the preview interface, the preview cover is displayed.
  • the electronic device when the instructions in the storage medium are executed by the processor of the electronic device, the electronic device can perform the following steps: identifying the target position in the background image; adding the target virtual element to the target position to obtain the multimedia resource preview cover.
  • the instructions in the storage medium when executed by the processor of the electronic device, enable the electronic device to perform the following steps: identify the location of the target object in the background image, the target object includes text content, a human face, or belongs to At least one of the objects of the target type; the target position is determined, and there is no overlap between the target position and the position of the target object.
  • the electronic device when the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is enabled to perform the following steps: in response to the preview cover generation instruction, obtain the cover text corresponding to the multimedia resource, where the cover text is used to describe the multimedia The content of the resource; add the cover text and target virtual elements to the background image to get the preview cover of the multimedia resource.
  • the electronic device when the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is enabled to perform the following steps: obtain the cover text entered in the preview cover generation interface; or, identify each of the multimedia resources The image content corresponding to the image, and the cover text is generated based on the recognized image content.
  • the electronic device when the instructions in the storage medium are executed by the processor of the electronic device, the electronic device can perform the following steps: adding the target virtual element to the background image to obtain the first image; adding the cover text to the first image The upper layer of the target virtual element in an image, and the obtained image is determined as the preview cover.
  • the instructions in the storage medium when executed by the processor of the electronic device, enable the electronic device to perform the steps of: obtaining a virtual element type that matches the resource tag, based on at least one belonging to the virtual element type Dummy element, which determines the target dummy element.
  • the electronic device when the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is enabled to perform the following steps: acquiring the virtual element type matching the resource tag based on the target correspondence, where the target correspondence includes the resource tag and the corresponding virtual element type.
  • the instructions in the storage medium when executed by the processor of the electronic device, enable the electronic device to perform the steps of: identifying a target color of the background image; A dummy element that identifies the target dummy element.
  • the electronic device when the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is enabled to perform the following steps: acquiring multiple images in the multimedia resource; selecting an image that satisfies the target condition from the multiple images As a background image for multimedia resources.
  • the electronic device when the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is enabled to perform the following steps: receiving a resource acquisition instruction through the preview cover setting interface; responding to the resource acquisition instruction, from the resource library Select multimedia resources.
  • the preview interface includes an element adjustment area
  • the element adjustment area includes a target virtual element and at least one candidate virtual element
  • the at least one candidate virtual element is different from the target virtual element.
  • the electronic device can perform the following steps: in response to a selection operation on any candidate virtual element in the element adjustment area, determining the selected candidate virtual element as the adjusted target virtual element.
  • the electronic device when the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is enabled to perform the following steps: in response to the moving operation on the target virtual element of the preview interface, change the position of the moved target virtual element Determined as the adjusted target position.
  • the preview interface includes a text adjustment area
  • the text adjustment area includes cover text and at least one alternative cover text
  • the at least one alternative cover text is different from the cover text.
  • the background image includes multiple and the target virtual element includes multiple.
  • the electronic device can perform the following steps:
  • the target virtual element is respectively added to at least one background image among the plurality of background images to obtain the preview cover of the multimedia resource.
  • a computer program product is also provided, when the instructions in the computer program product are executed by the processor of the electronic device, the electronic device can perform the steps performed by the terminal or the server in the above-mentioned preview cover generation method .

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • Multimedia (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • User Interface Of Digital Computer (AREA)
  • Processing Or Creating Images (AREA)

Abstract

A preview cover generation method and an electronic device, relating to the technical field of the Internet. The method comprises: receiving a preview cover generation instruction of a multimedia resource by means of a preview cover generation interface of the multimedia resource (101); in response to the preview cover generation instruction, identifying a background image and a resource tag of the multimedia resource (102); obtaining a target virtual element matching the resource tag, and adding the target virtual element to the background image to obtain a preview cover of the multimedia resource (103); and displaying the preview cover in the preview interface (104).

Description

预览封面生成方法及电子设备Preview cover generation method and electronic device
本公开要求于2020年08月07日提交、申请号为202010789072.4、发明名称为“预览封面生成方法、装置、电子设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本公开中。This disclosure claims the priority of the Chinese patent application filed on August 7, 2020, with the application number of 202010789072.4 and the invention titled "Preview Cover Generation Method, Device, Electronic Device and Storage Medium", the entire contents of which are incorporated herein by reference Public.
技术领域technical field
本公开涉及互联网技术领域,尤其涉及一种预览封面生成方法及电子设备。The present disclosure relates to the field of Internet technologies, and in particular, to a method for generating a preview cover and an electronic device.
背景技术Background technique
随着互联网技术的发展,互联网中传播的多媒体资源越来越多,为了提高多媒体资源对用户的吸引力,需要为多媒体资源设置预览封面,以吸引用户点击该多媒体资源。With the development of Internet technology, more and more multimedia resources are spread on the Internet. In order to improve the attractiveness of the multimedia resources to users, it is necessary to set a preview cover for the multimedia resources to attract users to click on the multimedia resources.
相关技术中,对于待发布的多媒体资源,用户根据该多媒体资源的内容,为该多媒体资源手动设置背景图像和背景图像上要显示的虚拟元素,并将虚拟元素添加在背景图像中,以得到多媒体资源的封面。In the related art, for the multimedia resource to be released, the user manually sets a background image and a virtual element to be displayed on the background image for the multimedia resource according to the content of the multimedia resource, and adds the virtual element to the background image to obtain a multimedia resource. Cover of the resource.
发明内容SUMMARY OF THE INVENTION
本公开提供了一种预览封面生成方法、装置、电子设备及存储介质。The present disclosure provides a method, device, electronic device and storage medium for generating a preview cover.
根据本公开实施例的一方面,提供一种预览封面生成方法,所述方法包括:According to an aspect of the embodiments of the present disclosure, there is provided a method for generating a preview cover, the method comprising:
通过多媒体资源的预览封面生成界面,接收所述多媒体资源的预览封面生成指令;Receive a preview cover generation instruction of the multimedia resource through the preview cover generation interface of the multimedia resource;
响应于所述预览封面生成指令,识别出所述多媒体资源的背景图像和资源标签;In response to the preview cover generation instruction, identifying the background image and resource label of the multimedia resource;
获取目标虚拟元素,所述目标虚拟元素与所述资源标签匹配,将所述目标虚拟元素添加至所述背景图像,得到所述多媒体资源的预览封面;Acquiring a target virtual element that matches the resource tag, adding the target virtual element to the background image, and obtaining a preview cover of the multimedia resource;
在预览界面中,显示所述预览封面。In the preview interface, the preview cover is displayed.
在一些实施例中,所述方法还包括:识别出所述背景图像中的目标位置;所述将所述目标虚拟元素添加至所述背景图像,得到所述多媒体资源的预览封面,包括:将所述目标虚拟元素添加至所述目标位置,得到所述多媒体资源的预览封面。In some embodiments, the method further includes: identifying a target position in the background image; adding the target virtual element to the background image to obtain a preview cover of the multimedia resource, including: adding the target virtual element to the background image The target virtual element is added to the target position to obtain the preview cover of the multimedia resource.
在一些实施例中,所述识别出所述背景图像中的目标位置,包括:识别出所述背景图 像中的目标对象的位置,所述目标对象包括文本内容、人脸或者属于目标类型的物品中的至少一种;确定所述目标位置,所述目标位置与所述目标对象的位置之间不重叠。In some embodiments, the identifying the target position in the background image includes: identifying the position of the target object in the background image, where the target object includes text content, a human face, or an object belonging to a target type At least one of; determining the target position, and the target position and the position of the target object do not overlap.
在一些实施例中,所述方法还包括:响应于所述预览封面生成指令,获取所述多媒体资源对应的封面文本,所述封面文本用于描述所述多媒体资源的内容;所述将所述目标虚拟元素添加至所述背景图像,得到所述多媒体资源的预览封面,包括:将所述封面文本与所述目标虚拟元素添加至所述背景图像,得到所述多媒体资源的预览封面。In some embodiments, the method further includes: in response to the preview cover generation instruction, acquiring cover text corresponding to the multimedia resource, where the cover text is used to describe the content of the multimedia resource; Adding the target virtual element to the background image to obtain the preview cover of the multimedia resource includes: adding the cover text and the target virtual element to the background image to obtain the preview cover of the multimedia resource.
在一些实施例中,所述获取所述多媒体资源对应的封面文本,包括:获取在所述预览封面生成界面中输入的所述封面文本;或者,识别出所述多媒体资源中每个图像对应的图像内容,基于识别出的图像内容生成所述封面文本。In some embodiments, the obtaining the cover text corresponding to the multimedia resource includes: obtaining the cover text input in the preview cover generation interface; or, identifying the cover text corresponding to each image in the multimedia resource Image content, and the cover text is generated based on the identified image content.
在一些实施例中,所述将所述封面文本与所述目标虚拟元素添加至所述背景图像,得到所述多媒体资源的预览封面,包括:将所述目标虚拟元素添加至所述背景图像中,得到第一图像;将所述封面文本添加至所述第一图像中目标虚拟元素的上层,得到所述预览封面。In some embodiments, the adding the cover text and the target virtual element to the background image to obtain the preview cover of the multimedia resource includes: adding the target virtual element to the background image to obtain a first image; add the cover text to the upper layer of the target virtual element in the first image to obtain the preview cover.
在一些实施例中,所述获取目标虚拟元素,包括:获取虚拟元素类型,所述虚拟元素类型与所述资源标签匹配,将属于所述虚拟元素类型的任一虚拟元素确定为所述目标虚拟元素。In some embodiments, the acquiring a target virtual element includes: acquiring a virtual element type, where the virtual element type matches the resource tag, and determining any virtual element belonging to the virtual element type as the target virtual element element.
在一些实施例中,所述获取虚拟元素类型,包括:基于目标对应关系,获取与所述资源标签匹配的虚拟元素类型,所述目标对应关系包括资源标签及对应的虚拟元素类型。In some embodiments, the acquiring a virtual element type includes: acquiring a virtual element type matching the resource tag based on a target correspondence relationship, where the target correspondence relationship includes a resource tag and a corresponding virtual element type.
在一些实施例中,所述将属于所述虚拟元素类型的任一虚拟元素确定为所述目标虚拟元素,包括:识别出所述背景图像的目标颜色;将属于所述虚拟元素类型且颜色与所述目标颜色不同的任一虚拟元素,确定为所述目标虚拟元素。In some embodiments, determining any virtual element that belongs to the virtual element type as the target virtual element includes: identifying the target color of the background image; Any virtual element with different target colors is determined as the target virtual element.
在一些实施例中,识别出所述多媒体资源的背景图像,包括:获取所述多媒体资源中的多个图像;从所述多个图像中,选取满足目标条件的图像作为所述多媒体资源的背景图像。In some embodiments, identifying the background image of the multimedia resource includes: acquiring a plurality of images in the multimedia resource; and selecting an image that meets a target condition from the plurality of images as the background of the multimedia resource image.
在一些实施例中,所述方法还包括:通过预览封面设置界面,接收资源获取指令;响应于所述资源获取指令,从资源库中选取所述多媒体资源。In some embodiments, the method further includes: receiving a resource acquisition instruction through a preview cover setting interface; and selecting the multimedia resource from a resource library in response to the resource acquisition instruction.
在一些实施例中,所述预览界面包括元素调整区域,所述元素调整区域包括所述目标虚拟元素及至少一个备选虚拟元素,所述至少一个备选虚拟元素与所述目标虚拟元素不同;所述方法还包括:响应于对所述预览界面的元素调整区域中任一备选虚拟元素的选取操作,将选取的备选虚拟元素确定为调整后的目标虚拟元素。In some embodiments, the preview interface includes an element adjustment area, the element adjustment area includes the target virtual element and at least one candidate virtual element, the at least one candidate virtual element is different from the target virtual element; The method further includes: in response to a selection operation of any candidate virtual element in the element adjustment area of the preview interface, determining the selected candidate virtual element as the adjusted target virtual element.
在一些实施例中,所述在预览界面中,显示所述预览封面之后,所述方法还包括:响应于对所述预览界面的目标虚拟元素的移动操作,将移动后所述目标虚拟元素的位置确定为调整后的目标位置。In some embodiments, after the preview cover is displayed in the preview interface, the method further includes: in response to a moving operation on the target virtual element in the preview interface, changing the moved target virtual element The position is determined as the adjusted target position.
在一些实施例中,所述预览界面包括文本调整区域,所述文本调整区域包括所述封面文本及至少一个备选封面文本,所述至少一个备选封面文本与所述封面文本不同,所述方法还包括:响应于对所述预览界面的文本调整区域中任一备选封面文本的选取操作,将选取的备选封面文本确定为调整后的封面文本。In some embodiments, the preview interface includes a text adjustment area, the text adjustment area includes the cover text and at least one alternative cover text, the at least one alternative cover text is different from the cover text, the The method further includes: in response to a selection operation of any candidate cover text in the text adjustment area of the preview interface, determining the selected candidate cover text as the adjusted cover text.
在一些实施例中,所述方法还包括:响应于对所述预览界面的动效设置区域中的任一动效的选取操作,将选取的动效确定为所述预览封面的目标动效;在所述预览界面中,基于所述目标动效显示所述预览封面。In some embodiments, the method further includes: in response to a selection operation of any animation effect in the animation effect setting area of the preview interface, determining the selected animation effect as the target animation effect of the preview cover; In the preview interface, the preview cover is displayed based on the target dynamic effect.
在一些实施例中,所述背景图像包括多个,所述目标虚拟元素包括多个,所述将所述目标虚拟元素添加至所述背景图像,得到所述多媒体资源的预览封面,包括:对于每个目标虚拟元素,将所述目标虚拟元素分别添加至多个背景图像中的至少一个背景图像,得到所述多媒体资源的预览封面。In some embodiments, the background image includes multiple, the target virtual element includes multiple, and the adding the target virtual element to the background image to obtain the preview cover of the multimedia resource includes: for For each target virtual element, the target virtual element is respectively added to at least one background image among the plurality of background images to obtain the preview cover of the multimedia resource.
根据本公开实施例的再一方面,提供一种预览封面生成装置,所述装置包括:According to yet another aspect of the embodiments of the present disclosure, there is provided an apparatus for generating a preview cover, the apparatus comprising:
生成指令接收单元,被配置为通过多媒体资源的预览封面生成界面,接收所述多媒体资源的预览封面生成指令;a generation instruction receiving unit, configured to receive the preview cover generation instruction of the multimedia resource through the preview cover generation interface of the multimedia resource;
识别处理单元,被配置为响应于所述预览封面生成指令,识别出所述多媒体资源的背景图像和资源标签;an identification processing unit, configured to identify the background image and the resource label of the multimedia resource in response to the preview cover generation instruction;
预览封面获取单元,被配置为获取目标虚拟元素,所述目标虚拟元素与所述资源标签匹配,将所述目标虚拟元素添加至所述背景图像,得到所述多媒体资源的预览封面;a preview cover acquiring unit, configured to acquire a target virtual element matching the resource tag, and adding the target virtual element to the background image to obtain a preview cover of the multimedia resource;
预览封面显示单元,被配置为在预览界面中,显示所述预览封面。The preview cover display unit is configured to display the preview cover in the preview interface.
根据本公开实施例的再一方面,提供了一种电子设备,所述电子设备包括:According to yet another aspect of the embodiments of the present disclosure, there is provided an electronic device, the electronic device comprising:
一个或多个处理器;one or more processors;
用于存储所述一个或多个处理器可执行指令的易失性或非易失性存储器;volatile or nonvolatile memory for storing the one or more processor-executable instructions;
其中,所述一个或多个处理器被配置为执行所述指令,实现以下步骤:wherein the one or more processors are configured to execute the instructions to implement the following steps:
通过多媒体资源的预览封面生成界面,接收所述多媒体资源的预览封面生成指令;Receive a preview cover generation instruction of the multimedia resource through the preview cover generation interface of the multimedia resource;
响应于所述预览封面生成指令,识别出所述多媒体资源的背景图像和资源标签;In response to the preview cover generation instruction, identifying the background image and resource label of the multimedia resource;
获取目标虚拟元素,所述目标虚拟元素与所述资源标签匹配,将所述目标虚拟元素添加至所述背景图像,得到所述多媒体资源的预览封面;Acquiring a target virtual element that matches the resource tag, adding the target virtual element to the background image, and obtaining a preview cover of the multimedia resource;
在预览界面中,显示所述预览封面。In the preview interface, the preview cover is displayed.
根据本公开实施例的再一方面,提供一种非临时性计算机可读存储介质,当所述存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行以下步骤:According to yet another aspect of the embodiments of the present disclosure, a non-transitory computer-readable storage medium is provided, when instructions in the storage medium are executed by a processor of an electronic device, the electronic device can perform the following steps:
通过多媒体资源的预览封面生成界面,接收所述多媒体资源的预览封面生成指令;Receive a preview cover generation instruction of the multimedia resource through the preview cover generation interface of the multimedia resource;
响应于所述预览封面生成指令,识别出所述多媒体资源的背景图像和资源标签;In response to the preview cover generation instruction, identifying the background image and resource label of the multimedia resource;
获取目标虚拟元素,所述目标虚拟元素与所述资源标签匹配,将所述目标虚拟元素添加至所述背景图像,得到所述多媒体资源的预览封面;Acquiring a target virtual element that matches the resource tag, adding the target virtual element to the background image, and obtaining a preview cover of the multimedia resource;
在预览界面中,显示所述预览封面。In the preview interface, the preview cover is displayed.
根据本公开实施例的再一方面,提供一种计算机程序产品,当所述计算机程序产品中的指令由电子设备的处理器执行时,使得电子设备能够执行以下步骤:According to yet another aspect of the embodiments of the present disclosure, a computer program product is provided, when instructions in the computer program product are executed by a processor of an electronic device, the electronic device can perform the following steps:
通过多媒体资源的预览封面生成界面,接收所述多媒体资源的预览封面生成指令;Receive a preview cover generation instruction of the multimedia resource through the preview cover generation interface of the multimedia resource;
响应于所述预览封面生成指令,识别出所述多媒体资源的背景图像和资源标签;In response to the preview cover generation instruction, identifying the background image and resource label of the multimedia resource;
获取目标虚拟元素,所述目标虚拟元素与所述资源标签匹配,将所述目标虚拟元素添加至所述背景图像,得到所述多媒体资源的预览封面;Acquiring a target virtual element that matches the resource tag, adding the target virtual element to the background image, and obtaining a preview cover of the multimedia resource;
在预览界面中,显示所述预览封面。In the preview interface, the preview cover is displayed.
附图说明Description of drawings
图1是根据一示例性实施例示出的一种预览封面生成方法的流程图;1 is a flowchart of a method for generating a preview cover according to an exemplary embodiment;
图2是根据一示例性实施例示出的另一种预览封面生成方法的流程图;FIG. 2 is a flowchart of another method for generating a preview cover according to an exemplary embodiment;
图3是根据一示例性实施例示出的一种生成预览封面的示意图;3 is a schematic diagram of generating a preview cover according to an exemplary embodiment;
图4是根据一示例性实施例示出的另一种生成预览封面的示意图;Fig. 4 is another schematic diagram of generating a preview cover according to an exemplary embodiment;
图5是根据一示例性实施例示出的另一种生成预览封面的示意图;FIG. 5 is another schematic diagram of generating a preview cover according to an exemplary embodiment;
图6是根据一示例性实施例示出的另一种生成预览封面的示意图;6 is a schematic diagram of another generation of a preview cover according to an exemplary embodiment;
图7是根据一示例性实施例示出的一种预览封面生成装置的框图;7 is a block diagram of an apparatus for generating a preview cover according to an exemplary embodiment;
图8是根据一示例性实施例示出的另一种预览封面生成装置的框图;FIG. 8 is a block diagram of another preview cover generation apparatus according to an exemplary embodiment;
图9是根据一示例性实施例示出的一种用于生成预览封面的终端的框图;9 is a block diagram of a terminal for generating a preview cover according to an exemplary embodiment;
图10是根据一示例性实施例示出的一种服务器的框图。Fig. 10 is a block diagram of a server according to an exemplary embodiment.
具体实施方式detailed description
图1是根据一示例性实施例示出的一种预览封面生成方法的流程图,参见图1,该方法应用于终端中,包括以下步骤:FIG. 1 is a flowchart of a method for generating a preview cover according to an exemplary embodiment. Referring to FIG. 1 , the method is applied to a terminal and includes the following steps:
在步骤101中,通过多媒体资源的预览封面生成界面,接收多媒体资源的预览封面生成指令。In step 101, a preview cover generation instruction of the multimedia resource is received through a preview cover generation interface of the multimedia resource.
在步骤102中,响应于预览封面生成指令,识别出多媒体资源的背景图像和资源标签。In step 102, in response to the preview cover generation instruction, the background image and the resource label of the multimedia resource are identified.
在步骤103中,获取目标虚拟元素,目标虚拟元素与资源标签匹配,将目标虚拟元素添加至背景图像,得到多媒体资源的预览封面。In step 103, the target virtual element is acquired, the target virtual element matches the resource tag, the target virtual element is added to the background image, and the preview cover of the multimedia resource is obtained.
在步骤104中,在预览界面中,显示预览封面。In step 104, in the preview interface, the preview cover is displayed.
本公开实施例提供的方法,只需在多媒体资源的预览封面生成界面触发预览封面生成指令,即可自动生成多媒体资源的预览封面,该过程中用户不需要执行其他操作,更加便捷智能,且与用户手动制作预览封面相比,上述自动生成的方式生成预览封面的速度更快,提高了生成预览封面的效率,降低了成本。The method provided by the embodiments of the present disclosure only needs to trigger the preview cover generation instruction on the preview cover generation interface of the multimedia resource, and the preview cover of the multimedia resource can be automatically generated. In this process, the user does not need to perform other operations, which is more convenient and intelligent, and is compatible with the Compared with the manual production of the preview cover by the user, the above-mentioned automatic generation method generates the preview cover faster, improves the efficiency of generating the preview cover, and reduces the cost.
在一些实施例中,该方法还包括:识别出背景图像中的目标位置;将目标虚拟元素添加至背景图像,得到多媒体资源的预览封面,包括:将目标虚拟元素添加至目标位置,得到多媒体资源的预览封面。In some embodiments, the method further includes: identifying the target position in the background image; adding the target virtual element to the background image to obtain a preview cover of the multimedia resource, including: adding the target virtual element to the target position to obtain the multimedia resource preview cover.
在一些实施例中,识别出背景图像中的目标位置,包括:识别出背景图像中的目标对象的位置,目标对象包括文本内容、人脸或者属于目标类型的物品中的至少一种;确定目标位置,目标位置与目标对象的位置之间不重叠。In some embodiments, recognizing the target location in the background image includes: recognizing the location of the target object in the background image, where the target object includes at least one of text content, human face, or objects belonging to the target type; determining the target position, there is no overlap between the target position and the position of the target object.
在一些实施例中,该方法还包括:响应于预览封面生成指令,获取多媒体资源对应的封面文本,封面文本用于描述多媒体资源的内容;将目标虚拟元素添加至背景图像,得到多媒体资源的预览封面,包括:将封面文本与目标虚拟元素添加至背景图像,得到多媒体资源的预览封面。In some embodiments, the method further includes: in response to the preview cover generation instruction, obtaining cover text corresponding to the multimedia resource, where the cover text is used to describe the content of the multimedia resource; adding the target virtual element to the background image to obtain a preview of the multimedia resource The cover includes: adding the cover text and target virtual elements to the background image to obtain the preview cover of the multimedia resource.
在一些实施例中,获取多媒体资源对应的封面文本,包括:获取在预览封面生成界面中输入的封面文本;或者,识别多媒体资源中每个图像对应的图像内容,基于识别出的图像内容生成封面文本。In some embodiments, acquiring the cover text corresponding to the multimedia resource includes: acquiring the cover text input in the preview cover generation interface; or, recognizing the image content corresponding to each image in the multimedia resource, and generating the cover based on the recognized image content text.
在一些实施例中,将封面文本与目标虚拟元素添加至背景图像,得到多媒体资源的预览封面,包括:将目标虚拟元素添加至背景图像中,得到第一图像;将封面文本添加至第 一图像中目标虚拟元素的上层,得到预览封面。In some embodiments, adding the cover text and the target virtual element to the background image to obtain the preview cover of the multimedia resource includes: adding the target virtual element to the background image to obtain the first image; adding the cover text to the first image In the upper layer of the target virtual element, get the preview cover.
在一些实施例中,获取目标虚拟元素,包括:获取虚拟元素类型,虚拟元素类型与资源标签匹配,基于属于虚拟元素类型的至少一个虚拟元素,确定目标虚拟元素。In some embodiments, obtaining the target virtual element includes: obtaining a virtual element type, where the virtual element type matches a resource tag, and determining the target virtual element based on at least one virtual element belonging to the virtual element type.
在一些实施例中,获取虚拟元素类型,包括:基于目标对应关系,获取与资源标签匹配的虚拟元素类型,目标对应关系包括资源标签及对应的虚拟元素类型。In some embodiments, acquiring a virtual element type includes: acquiring a virtual element type matching a resource tag based on a target correspondence relationship, where the target correspondence relationship includes a resource tag and a corresponding virtual element type.
在一些实施例中,基于属于虚拟元素类型的至少一个虚拟元素,确定目标虚拟元素,包括:识别背景图像的目标颜色;基于属于虚拟元素类型且颜色与目标颜色不同的至少一个虚拟元素,确定目标虚拟元素。In some embodiments, determining the target virtual element based on at least one virtual element belonging to the virtual element type includes: identifying a target color of the background image; determining the target based on at least one virtual element belonging to the virtual element type and having a color different from the target color virtual elements.
在一些实施例中,识别出多媒体资源的背景图像,包括:获取多媒体资源中的多个图像;从多个图像中,选取满足目标条件的图像作为多媒体资源的背景图像。In some embodiments, identifying the background image of the multimedia resource includes: acquiring multiple images in the multimedia resource; and selecting an image that satisfies the target condition from the multiple images as the background image of the multimedia resource.
在一些实施例中,该方法还包括:通过预览封面设置界面,接收资源获取指令;响应于资源获取指令,从资源库中选取多媒体资源。In some embodiments, the method further includes: receiving a resource acquisition instruction through the preview cover setting interface; and selecting a multimedia resource from a resource library in response to the resource acquisition instruction.
在一些实施例中,预览界面包括元素调整区域,元素调整区域包括目标虚拟元素及至少一个备选虚拟元素,该至少一个备选虚拟元素与目标虚拟元素不同;该方法还包括:响应于对元素调整区域中任一备选虚拟元素的选取操作,将选取的备选虚拟元素确定为调整后的目标虚拟元素。In some embodiments, the preview interface includes an element adjustment area, and the element adjustment area includes a target virtual element and at least one candidate virtual element, the at least one candidate virtual element is different from the target virtual element; the method further includes: in response to adjusting the element The selection operation of any candidate virtual element in the adjustment area is to determine the selected candidate virtual element as the adjusted target virtual element.
在一些实施例中,该方法还包括:响应于对预览界面的目标虚拟元素的移动操作,将移动后目标虚拟元素的位置确定为调整后的目标位置。In some embodiments, the method further includes: in response to the moving operation on the target virtual element of the preview interface, determining the position of the moved target virtual element as the adjusted target position.
在一些实施例中,预览界面包括文本调整区域,文本调整区域包括封面文本及至少一个备选封面文本;该方法还包括:响应于对文本调整区域中任一备选封面文本的选取操作,将选取的备选封面文本确定为调整后的封面文本。In some embodiments, the preview interface includes a text adjustment area, and the text adjustment area includes cover text and at least one candidate cover text; the method further includes: in response to a selection operation on any candidate cover text in the text adjustment area, adjusting The selected alternative cover text is determined as the adjusted cover text.
在一些实施例中,背景图像包括多个,目标虚拟元素包括多个,将目标虚拟元素添加至背景图像,得到多媒体资源的预览封面,包括:对于每目标虚拟元素,将目标虚拟元素分别添加至多个背景图像中的至少一个背景图像,得到多媒体资源的预览封面。In some embodiments, the background image includes multiple, the target virtual element includes multiple, and adding the target virtual element to the background image to obtain the preview cover of the multimedia resource includes: for each target virtual element, adding the target virtual element at most At least one background image among the background images is obtained to obtain the preview cover of the multimedia resource.
图2是根据一示例性实施例示出的另一种预览封面生成方法的流程图。参见图2,该方法应用于终端中,包括以下步骤:Fig. 2 is a flow chart of another method for generating a preview cover according to an exemplary embodiment. Referring to Fig. 2, the method is applied in a terminal, and includes the following steps:
201、终端通过多媒体资源的预览封面生成界面,接收多媒体资源的预览封面生成指令。201. The terminal receives a preview cover generation instruction of the multimedia resource through a preview cover generation interface of the multimedia resource.
本公开实施例中,终端获取用户输入的多媒体资源,接收到该多媒体资源的预览封面 生成指令后,识别出该多媒体资源的背景图像、虚拟元素及封面文本,再组合背景图像、虚拟元素及封面文本,为该多媒体资源生成预览封面。In the embodiment of the present disclosure, the terminal acquires the multimedia resource input by the user, and after receiving the preview cover generation instruction of the multimedia resource, identifies the background image, virtual element and cover text of the multimedia resource, and then combines the background image, virtual element and cover Text to generate a preview cover for this multimedia resource.
在一些实施例中,终端安装有封面生成应用,该封面生成应用获取用户上传的多媒体资源,识别该多媒体资源,为该多媒体资源生成预览封面。In some embodiments, a cover generation application is installed on the terminal, and the cover generation application acquires a multimedia resource uploaded by a user, identifies the multimedia resource, and generates a preview cover for the multimedia resource.
在一些实施例中,终端安装有视频应用,该视频应用获取用户上传的多媒体资源,为该多媒体资源生成预览封面,后续可以通过该视频应用向用户展示预览封面,响应于用户对预览封面的触发操作,播放该预览封面对应的多媒体资源。In some embodiments, the terminal is installed with a video application, the video application acquires the multimedia resource uploaded by the user, generates a preview cover for the multimedia resource, and subsequently displays the preview cover to the user through the video application, in response to the user triggering the preview cover operation to play the multimedia resource corresponding to the preview cover.
其中,预览封面生成界面包括多媒体资源。多媒体资源为视频、音频或其他类型的资源,多媒体资源为任意大小,多媒体资源为MPEG(Moving Picture Experts Group,运动图像专家组)、AVI(Audio Video Interleaved,音频视频交错)、WMV(Windows Media Video,一种流媒体格式)或其他格式的资源,本公开对此不做限制。The preview cover generation interface includes multimedia resources. Multimedia resources are video, audio or other types of resources. Multimedia resources can be of any size. Multimedia resources are MPEG (Moving Picture Experts Group, Moving Picture Experts Group), AVI (Audio Video Interleaved, audio and video interleaved), WMV (Windows Media Video) , a streaming media format) or resources in other formats, which are not limited in this disclosure.
预览封面生成指令用于指示为多媒体资源生成对应的预览封面。在一些实施例中,预览封面生成界面包括预览封面生成按钮,终端响应于用户对该预览封面生成按钮的触发操作,生成预览封面生成指令,终端通过预览封面生成界面,接收预览封面生成指令。其中,触发操作为点击操作、滑动操作或其他操作。The preview cover generation instruction is used to instruct to generate a corresponding preview cover for the multimedia resource. In some embodiments, the preview cover generation interface includes a preview cover generation button, the terminal generates a preview cover generation instruction in response to a user triggering the preview cover generation button, and the terminal receives the preview cover generation instruction through the preview cover generation interface. The trigger operation is a click operation, a sliding operation or other operations.
在一些实施例中,终端显示多媒体资源的预览封面生成界面之前,显示预览封面设置界面,通过该预览封面设置界面,接收资源获取指令,该资源获取指令用于指示获取多媒体资源;响应于该资源获取指令,从资源库中选取多媒体资源。其中,资源库中存储有多个多媒体资源,资源库为终端中的资源库或者为服务器中的资源库。例如,终端响应于资源获取指令,显示终端的资源库中存储的多个多媒体资源,用户从多个多媒体资源中选取需要生成预览封面的多媒体资源。或者,终端响应于资源获取指令,向服务器发送资源获取请求,服务器响应于该资源获取请求,从资源库中获取多个多媒体资源,向终端发送多媒体资源,终端显示接收到的多个多媒体资源,用于从多个多媒体资源中选取需要生成预览封面的多媒体资源。In some embodiments, before displaying the preview cover generation interface of the multimedia resource, the terminal displays the preview cover setting interface, and receives a resource acquisition instruction through the preview cover setting interface, where the resource acquisition instruction is used to instruct acquisition of the multimedia resource; in response to the resource Get instructions to select multimedia resources from the resource library. The resource library stores multiple multimedia resources, and the resource library is a resource library in the terminal or a resource library in the server. For example, in response to the resource acquisition instruction, the terminal displays a plurality of multimedia resources stored in the resource library of the terminal, and the user selects the multimedia resources for which a preview cover needs to be generated from the plurality of multimedia resources. Or, the terminal sends a resource acquisition request to the server in response to the resource acquisition instruction, and the server acquires multiple multimedia resources from the resource library in response to the resource acquisition request, sends the multimedia resources to the terminal, and the terminal displays the received multiple multimedia resources, It is used to select the multimedia resource that needs to generate a preview cover from multiple multimedia resources.
在一些实施例中,预览封面设置界面包括资源获取按钮,终端响应于用户对资源获取按钮的触发操作,生成资源获取指令。其中,触发操作为点击操作、滑动操作或其他操作。In some embodiments, the preview cover setting interface includes a resource acquisition button, and the terminal generates a resource acquisition instruction in response to a user's triggering operation on the resource acquisition button. The trigger operation is a click operation, a sliding operation or other operations.
在一些实施例中,资源获取指令包括第一资源获取指令和第二资源获取指令,第一资源获取指令用于指示从终端的资源库中选取多媒体资源,第二资源获取指令用于指示从服务器的资源库中选取多媒体资源。相应的,预览封面设置界面包括第一资源获取按钮和第二资源获取按钮,终端响应于对第一资源获取按钮的触发操作,生成第一资源获取指令, 响应于对第二资源获取按钮的触发操作,生成第二资源获取指令。In some embodiments, the resource acquisition instruction includes a first resource acquisition instruction and a second resource acquisition instruction, the first resource acquisition instruction is used to instruct to select multimedia resources from a resource library of the terminal, and the second resource acquisition instruction is used to instruct the server Select multimedia resources from the resource library. Correspondingly, the preview cover setting interface includes a first resource acquisition button and a second resource acquisition button, and the terminal generates a first resource acquisition instruction in response to the triggering operation of the first resource acquisition button, and responds to the triggering of the second resource acquisition button. operation to generate a second resource acquisition instruction.
在一些实施例中,预览封面设置界面包括尺寸设置选项,该尺寸设置选项用于设置多媒体资源显示时的尺寸,终端响应于对该选项的设置操作,将获取的多媒体资源设置为对应的尺寸。例如,尺寸设置选项包括9:16和16:9两个选项,响应于对9:16的选取操作,将获取的多媒体资源的尺寸转换为9:16。In some embodiments, the preview cover setting interface includes a size setting option, the size setting option is used to set the size of the multimedia resource when displayed, and the terminal sets the acquired multimedia resource to the corresponding size in response to the setting operation of the option. For example, the size setting options include two options: 9:16 and 16:9. In response to the selection operation for 9:16, the size of the acquired multimedia resource is converted to 9:16.
202、终端响应于预览封面生成指令,获取多媒体资源对应的封面文本。202. The terminal acquires the cover text corresponding to the multimedia resource in response to the preview cover generation instruction.
本公开实施例中,终端响应于接收到的预览封面生成指令,获取多媒体资源对应的资源标签、封面文本、背景图像及虚拟元素,以生成预览封面。此过程中,无需用户执行其他操作,终端可以自动为多媒体资源生成预览封面。In the embodiment of the present disclosure, in response to the received preview cover generation instruction, the terminal obtains the resource label, cover text, background image and virtual element corresponding to the multimedia resource, so as to generate the preview cover. During this process, the terminal can automatically generate a preview cover for the multimedia resource without the need for the user to perform other operations.
在一些实施例中,预览封面生成界面包括封面文本设置区域,用户能够在该封面文本设置区域输入一个或多个封面文本,终端响应于预览封面生成指令,获取用户在预览封面生成界面中输入的封面文本。In some embodiments, the preview cover generation interface includes a cover text setting area, the user can input one or more cover texts in the cover text setting area, and the terminal responds to the preview cover generation instruction to obtain the information entered by the user in the preview cover generation interface. Cover text.
在一些实施例中,终端响应于预览封面生成指令,识别出多媒体资源中每个图像对应的图像内容,基于识别出的图像内容生成封面文本。其中,图像内容包括文本内容、人物、物品等内容。In some embodiments, in response to the preview cover generation instruction, the terminal identifies image content corresponding to each image in the multimedia resource, and generates cover text based on the identified image content. The image content includes text content, characters, items and other content.
终端获取多媒体资源中的多个图像,识别出每个图像中的文本内容、人物、物品等信息,得到图像内容,进一步识别多个图像对应的图像内容,确定图像内容的核心内容,处理核心内容得到封面文本。其中,核心内容是指多个图像中出现次数最多的文本内容、人物或者物品中的至少一种,或者核心内容是对出现次数最多的文本内容、人物或物品进行组合得到的。例如,多个图像中均出现了纸尿裤,则认为纸尿裤为核心内容;或者,多个图像中均出现了纸尿裤和小宝宝,则认为宝宝和纸尿裤为核心内容。The terminal acquires multiple images in the multimedia resource, identifies the text content, characters, items and other information in each image, obtains the image content, further identifies the image content corresponding to the multiple images, determines the core content of the image content, and processes the core content Get cover text. The core content refers to at least one of the text content, characters or items that appear most frequently in the multiple images, or the core content is obtained by combining the text content, characters or items that appear the most frequently. For example, if diapers appear in multiple images, diapers are considered to be the core content; or, if diapers and babies appear in multiple images, babies and diapers are considered as the core content.
例如,多媒体资源是与纸尿裤相关的视频,识别视频中的多个图像,得到宝宝的图像、纸尿裤的图像、关于纸尿裤的文本描述等,确定图像内容的核心内容是宝宝的纸尿裤,从而得到封面文本,封面文本为“小宝纸尿裤”、“宝宝的纸尿裤”等。For example, the multimedia resource is a video related to diapers, identify multiple images in the video, obtain images of the baby, images of diapers, text descriptions about diapers, etc., and determine that the core content of the image content is the baby's diapers, so as to obtain the cover text , the cover text is "Xiaobao Diapers", "Baby's Diapers", etc.
在一些实施例中,终端对图像进行人脸识别,得到图像中的人脸;对图像进行静物识别,得到图像中的物品;对图像进行场景识别,确定当前图像中的场景;对图像进行文案识别,确定图像中的文本内容。In some embodiments, the terminal performs face recognition on the image to obtain the face in the image; performs still life recognition on the image to obtain the item in the image; performs scene recognition on the image to determine the scene in the current image; performs copywriting on the image Recognition, to determine the text content in the image.
另外,终端基于多个图像对应的图像内容生成一个或多个封面文本,在生成多个封面文本的情况下,该多个封面文本对应的核心内容是相同的,仅是采用不同的文本描述核心内容。In addition, the terminal generates one or more cover texts based on the image content corresponding to the multiple images. In the case of generating multiple cover texts, the core contents corresponding to the multiple cover texts are the same, and only different texts are used to describe the core content. content.
在一些实施例中,终端调用封面文本生成模型,识别多媒体资源,得到多媒体资源对应的封面文本。其中,封面文本生成模型为已训练完成的、用于为多媒体资源生成封面文本的模型。本公开实施例对封面文本生成模型的训练过程不做限制。In some embodiments, the terminal invokes the cover text generation model, identifies the multimedia resource, and obtains the cover text corresponding to the multimedia resource. The cover text generation model is a trained model for generating cover text for multimedia resources. This embodiment of the present disclosure does not limit the training process of the cover text generation model.
需要说明的是,本公开实施例对识别图像的方式不做限制,例如,终端基于人脸识别模型,识别图像中的人脸;基于文本识别模型,识别图像中的文本内容等。It should be noted that the embodiments of the present disclosure do not limit the manner of recognizing images. For example, the terminal recognizes faces in images based on a face recognition model, and recognizes text content in images based on a text recognition model.
203、终端响应于预览封面生成指令,识别出多媒体资源的背景图像和资源标签。203. The terminal identifies the background image and the resource label of the multimedia resource in response to the preview cover generation instruction.
本公开实施例中,终端响应于多媒体资源的预览封面生成指令,识别出该多媒体资源的背景图像和资源标签,从而获取背景图像、封面文本及目标虚拟元素,组合背景图像、封面文本及目标虚拟元素,从而一键生成多媒体资源的预览封面。In the embodiment of the present disclosure, the terminal recognizes the background image and the resource tag of the multimedia resource in response to the instruction for generating the preview cover of the multimedia resource, so as to obtain the background image, the cover text and the target virtual element, and combine the background image, the cover text and the target virtual element. element, so as to generate a preview cover of multimedia resources with one click.
其中,背景图像是反映该多媒体资源的内容的图像,资源标签用于表示多媒体资源的资源内容,该资源标签包括视频标签或其他标签,视频标签用于表示视频内容所属的标签,例如视频标签包括游戏类视频、电商类视频、美食类视频等。The background image is an image reflecting the content of the multimedia resource, the resource tag is used to represent the resource content of the multimedia resource, the resource tag includes a video tag or other tags, and the video tag is used to indicate the tag to which the video content belongs. For example, the video tag includes Game videos, e-commerce videos, food videos, etc.
在一些实施例中,终端获取多媒体资源中的多个图像;从多个图像中,选取满足预设条件的图像作为多媒体资源的背景图像。其中,预设条件包括图像清晰、图像中的人物或物品具有完整清晰的轮廓、图像中的文本显示完整、图像中的人物不能闭眼、图像中不包括水印等至少一个条件。其中,至少一个条件是指上述多个条件中的一个或多个,例如,预设条件为图像清晰,或者预设条件为图像清晰和图像中不包含水印。In some embodiments, the terminal acquires multiple images in the multimedia resource; from the multiple images, an image that satisfies a preset condition is selected as the background image of the multimedia resource. The preset conditions include at least one condition, such as clear image, the person or item in the image has a complete and clear outline, the text in the image is displayed completely, the person in the image cannot close their eyes, and the image does not include a watermark. The at least one condition refers to one or more of the above-mentioned conditions. For example, the preset condition is that the image is clear, or the preset condition is that the image is clear and the image does not contain a watermark.
其中,预设条件可称为目标条件。终端从多个图像中,选取满足目标条件的图像作为多媒体资源的背景图像。Among them, the preset condition may be referred to as the target condition. The terminal selects an image that satisfies the target condition from a plurality of images as the background image of the multimedia resource.
在一些实施例中,终端确定背景图像之后,识别出背景图像中的目标位置。其中,目标位置为添加虚拟元素或封面文本的位置,该目标位置为背景图像中的任一位置。In some embodiments, after determining the background image, the terminal identifies the target position in the background image. Wherein, the target position is the position where the virtual element or cover text is added, and the target position is any position in the background image.
在一些实施例中,终端识别出背景图像中的目标对象的位置,基于目标对象的位置,确定目标位置,使目标位置与目标对象的位置之间不重叠,也就是说,目标位置与目标对象所在的位置之间完全没有重叠的区域,从而避免将虚拟元素或封面文本添加至目标位置时,遮挡背景图像中原来的目标对象。In some embodiments, the terminal recognizes the position of the target object in the background image, and determines the target position based on the position of the target object, so that there is no overlap between the target position and the position of the target object, that is, the target position and the target object There is no overlapping area between the positions at all, preventing dummy elements or cover text from obscuring the original target object in the background image when adding a dummy element or cover text to the target position.
其中,目标对象包括文本内容、人脸或者属于目标类型的物品中的至少一种,至少一种是指上述多种对象中的一种或多种,例如,目标对象为文本内容、人脸或者属于目标类型的物品中的任一种,或者目标对象为文本内容、人脸或者属于目标类型的物品中的任两种,或者目标对象为文本内容、人脸和属于目标类型的物品。文本内容是指背景图像中的文字,属于目标类型的物品是指背景图像中的目标类型的物品,目标类型包括至少一种类 型。在一些实施例中,该目标类型根据多媒体资源的内容确定,多媒体资源内容不同,该目标类型不同。例如,多媒体资源是一个关于纸尿裤的广告,那么“纸尿裤”就是背景图像中的主体,目标类型为纸尿裤;多媒体资源是一个关于电子产品的广告,那么“电子产品”就是背景图像中的主体,目标类型为手机、电脑等电子产品类型。Wherein, the target object includes at least one of text content, human face, or objects belonging to the target type, and at least one refers to one or more of the above-mentioned multiple objects, for example, the target object is text content, human face or Any of the items belonging to the target type, or the target object is text content, a face, or any two of the items belonging to the target type, or the target object is text content, a face, and an item belonging to the target type. The text content refers to the text in the background image, the objects belonging to the target type refer to the objects of the target type in the background image, and the target type includes at least one type. In some embodiments, the target type is determined according to the content of the multimedia resource, and the target type is different when the content of the multimedia resource is different. For example, if the multimedia resource is an advertisement about diapers, then "diapers" is the subject in the background image, and the target type is diapers; if the multimedia resource is an advertisement about electronic products, then "electronic products" is the subject in the background image, and the target type is diapers. Types of electronic products such as mobile phones and computers.
在一些实施例中,目标位置位于目标对象的位置的旁边,与目标对象的位置相邻,例如,位于目标对象的位置的上方、下方等。或者,考虑背景图像的整体构图,确定目标位置,使该目标位置既与目标对象的位置不重叠,又不对背景图像的整体的显示效果造成影响。In some embodiments, the target location is located next to, adjacent to, eg, above, below, etc. the location of the target object. Or, considering the overall composition of the background image, the target position is determined so that the target position does not overlap with the position of the target object and does not affect the overall display effect of the background image.
在一些实施例中,终端识别出多媒体资源中的文本内容、人物、物品等信息,得到用于描述该多媒体资源的内容,进一步分析该内容,确定用于表示多媒体资源的资源内容的资源标签。In some embodiments, the terminal identifies information such as text content, characters, items, etc. in the multimedia resource, obtains content for describing the multimedia resource, further analyzes the content, and determines a resource tag representing the resource content of the multimedia resource.
需要说明的是,本公开实施例仅是以先获取封面文本,再获取背景图像和资源标签为例进行说明,在另一实施例中,先获取背景图像和资源标签,再获取封面文本,或者同时获取封面文本、背景图像和资源标签,本公开实施例对获取封面文本、背景图像和资源标签的先后顺序不做限制。It should be noted that the embodiment of the present disclosure only takes the cover text obtained first, and then the background image and the resource label as an example for description. In another embodiment, the background image and the resource label are obtained first, and then the cover text is obtained, or The cover text, the background image, and the resource label are obtained at the same time, and the embodiment of the present disclosure does not limit the sequence of obtaining the cover text, the background image, and the resource label.
204、终端获取与资源标签匹配的虚拟元素类型,从属于虚拟元素类型的至少一个虚拟元素中选取目标虚拟元素。204. The terminal acquires a virtual element type matching the resource tag, and selects a target virtual element from at least one virtual element belonging to the virtual element type.
终端基于属于虚拟元素类型的至少一个虚拟元素,确定目标虚拟元素。在属于虚拟元素类型的虚拟元素为一个的情况下,将这一个虚拟元素确定为目标虚拟元素;在属于虚拟元素类型的虚拟元素为多个的情况下,从多个虚拟元素中选取一个虚拟元素确定为目标虚拟元素。The terminal determines the target virtual element based on at least one virtual element belonging to the virtual element type. In the case where there is one virtual element belonging to the virtual element type, the one virtual element is determined as the target virtual element; in the case where there are multiple virtual elements belonging to the virtual element type, one virtual element is selected from the multiple virtual elements Determined as the target virtual element.
其中,虚拟元素类型包括电商类型、游戏类型、金融类型等类型,虚拟元素与资源标签之间具有对应关系。目标虚拟元素为用于反映多媒体资源的内容的元素,该虚拟元素为贴纸、虚拟人物形象、虚拟物品等。The virtual element types include e-commerce types, game types, financial types, etc., and there is a corresponding relationship between virtual elements and resource tags. The target virtual element is an element used to reflect the content of the multimedia resource, and the virtual element is a sticker, an avatar, a virtual item, and the like.
在一些实施例中,终端按照预设对应关系,获取与资源类型匹配的虚拟元素类型,以保证获取的虚拟元素与多媒体资源相匹配。其中,预设对应关系包括资源标签及对应的虚拟元素类型。例如,资源类型为电商类型,通过查询预设对应关系,获取电商类型的虚拟元素。In some embodiments, the terminal acquires the virtual element type matching the resource type according to the preset correspondence, so as to ensure that the acquired virtual element matches the multimedia resource. The preset correspondence includes resource tags and corresponding virtual element types. For example, if the resource type is an e-commerce type, the virtual elements of the e-commerce type are obtained by querying the preset corresponding relationship.
其中,预设对应关系可称为目标对应关系,资源类型可称为资源标签,终端基于目标对应关系,获取与资源标签匹配的虚拟元素类型。该目标对应关系包括资源标签及对应的 虚拟元素类型。The preset correspondence may be referred to as target correspondence, the resource type may be referred to as resource label, and the terminal obtains a virtual element type matching the resource label based on the target correspondence. The target correspondence includes resource tags and corresponding virtual element types.
在一些实施例中,终端获取与资源标签匹配的虚拟元素类型之后,识别出背景图像的目标颜色;从属于虚拟元素类型的至少一个虚拟元素中,选取颜色与目标颜色不同的目标虚拟元素,也就是说,终端基于属于虚拟元素类型且颜色与目标颜色不同的至少一个虚拟元素,确定目标虚拟元素。其中,目标颜色是指背景图像的主色调,选取颜色与目标颜色不同的目标虚拟元素,保证目标虚拟元素的颜色与背景图像的主色调不同,在背景图像中明显的显示出目标虚拟元素。例如,背景图像的主色调为黑色,选取的目标虚拟元素的颜色可以为白色。In some embodiments, after acquiring the virtual element type matching the resource tag, the terminal identifies the target color of the background image; from at least one virtual element belonging to the virtual element type, selects the target virtual element whose color is different from the target color, and also selects the target virtual element whose color is different from the target color. That is, the terminal determines the target virtual element based on at least one virtual element belonging to the virtual element type and having a color different from the target color. The target color refers to the main color of the background image, and the target virtual element with a different color from the target color is selected to ensure that the color of the target virtual element is different from the main color of the background image, and the target virtual element is clearly displayed in the background image. For example, the main color of the background image is black, and the color of the selected target virtual element can be white.
205、终端将封面文本与目标虚拟元素添加至背景图像,得到多媒体资源的预览封面。205. The terminal adds the cover text and the target virtual element to the background image to obtain a preview cover of the multimedia resource.
本公开实施例中,终端组合封面文本、目标虚拟元素与背景图像,得到多媒体资源的预览封面。In the embodiment of the present disclosure, the terminal combines the cover text, the target virtual element and the background image to obtain the preview cover of the multimedia resource.
在一些实施例中,终端将目标虚拟元素添加至目标位置,得到多媒体资源的预览封面。或者,终端将封面文本与目标虚拟元素添加至目标位置,得到多媒体资源的预览封面,其中封面文本位于目标虚拟元素的上层。In some embodiments, the terminal adds the target virtual element to the target position to obtain the preview cover of the multimedia resource. Or, the terminal adds the cover text and the target virtual element to the target position to obtain a preview cover of the multimedia resource, where the cover text is located on the upper layer of the target virtual element.
在一些实施例中,终端将目标虚拟元素添加至背景图像中,得到第一图像;将封面文本添加至第一图像中目标虚拟元素的上层,将得到的图像确定为预览封面,即得到预览封面。In some embodiments, the terminal adds the target virtual element to the background image to obtain the first image; adds the cover text to the upper layer of the target virtual element in the first image, and determines the obtained image as the preview cover, that is, the preview cover is obtained .
进一步地,终端将目标虚拟元素添加至背景图像中,得到第一图像,包括:终端将目标虚拟元素添加至目标位置,得到第一图像。Further, the terminal adding the target virtual element to the background image to obtain the first image includes: the terminal adding the target virtual element to the target position to obtain the first image.
206、终端在预览界面中,显示预览封面。206. The terminal displays the preview cover in the preview interface.
本公开实施例中,终端得到预览封面之后,在预览界面显示预览封面,用户查看预览封面的显示效果,用户在对预览封面的显示效果不满意的情况下,进一步调整预览封面。In the embodiment of the present disclosure, after obtaining the preview cover, the terminal displays the preview cover on the preview interface, and the user checks the display effect of the preview cover. If the user is not satisfied with the display effect of the preview cover, the user further adjusts the preview cover.
在一些实施例中,预览界面包括元素调整区域,该元素调整区域包括目标虚拟元素及除该目标虚拟元素之外的至少一个其他虚拟元素,终端在预览界面中的元素调整区域显示目标虚拟元素和至少一个其他虚拟元素,响应于对元素调整区域中任一其他虚拟元素的选取操作,将选取的虚拟元素确定为调整后的目标虚拟元素。其中,其他虚拟元素是除预览封面中当前显示的目标虚拟元素之外的其他虚拟元素。即终端获取多个备选虚拟元素,预览封面中当前显示的目标虚拟元素是多个备选虚拟元素中的一个,终端在元素调整区域中显示目标元素和除目标虚拟元素之外的至少一个备选虚拟元素,用户从除目标虚拟元素之外的至少一个备选虚拟元素中选取任一备选虚拟元素,采用选取的备选虚拟元素替换当前 显示的目标虚拟元素,即将选取的备选虚拟元素确定为调整后的目标虚拟元素,实现对目标虚拟元素的调整,且调整后的目标虚拟元素的位置不发生变化。其中,备选虚拟元素可以是预设的虚拟元素,也可以是采用上述方式确定的虚拟元素。In some embodiments, the preview interface includes an element adjustment area, the element adjustment area includes a target virtual element and at least one other virtual element except the target virtual element, and the terminal displays the target virtual element and the target virtual element in the element adjustment area in the preview interface. At least one other virtual element, in response to a selection operation on any other virtual element in the element adjustment area, determines the selected virtual element as the adjusted target virtual element. The other virtual elements are other virtual elements except the target virtual element currently displayed in the preview cover. That is, the terminal acquires multiple candidate virtual elements, the target virtual element currently displayed in the preview cover is one of the multiple candidate virtual elements, and the terminal displays the target element and at least one candidate virtual element in the element adjustment area. To select a virtual element, the user selects any candidate virtual element from at least one candidate virtual element except the target virtual element, and replaces the currently displayed target virtual element with the selected candidate virtual element, and the candidate virtual element to be selected is used. It is determined as the adjusted target virtual element, and the adjustment of the target virtual element is realized, and the position of the adjusted target virtual element does not change. Wherein, the candidate virtual element may be a preset virtual element, or may be a virtual element determined in the above manner.
在一些实施例中,终端响应于对预览界面的目标虚拟元素的移动操作,将移动后目标虚拟元素的位置确定为调整后的目标位置,使目标虚拟元素位于调整后的目标位置。其中,调整后的目标位置与目标对象之间可以不重叠,也可以重叠。In some embodiments, in response to a moving operation on the target virtual element of the preview interface, the terminal determines the position of the moved target virtual element as the adjusted target position, so that the target virtual element is located at the adjusted target position. Wherein, the adjusted target position and the target object may not overlap or may overlap.
在一些实施例中,预览界面还包括文本调整区域,该文本调整区域包括封面文本及除该封面文本之外的至少一个其他封面文本,终端在文本调整区域显示当前预览封面中的封面文本和至少一个其他封面文本,响应于对文本调整区域中任一其他封面文本的选取操作,将选取的封面文本确定为调整后的封面文本。其中,其他封面文本包括除预览封面中当前显示的封面文本之外的其他封面文本。在封面文本是用户输入的封面文本的情况下,其他封面文也是用户输入的封面文本;在封面文本是采用上述方式生成的情况下,其他封面文本也是采用与上述类似的方式生成的。即终端获取多个封面文本,预览封面中当前显示的封面文本是多个封面文本中的一个,用户从其他封面文本中选取一个封面文本替换当前显示的封面文本,实现对封面文本的调整,且调整后的封面文本的位置不发生变化。In some embodiments, the preview interface further includes a text adjustment area, the text adjustment area includes the cover text and at least one other cover text except the cover text, and the terminal displays the cover text in the current preview cover and at least one other cover text in the text adjustment area. One other cover text, in response to a selection operation on any other cover text in the text adjustment area, the selected cover text is determined as the adjusted cover text. Wherein, the other cover text includes other cover text except the cover text currently displayed in the preview cover. When the cover text is the cover text input by the user, other cover texts are also the cover text input by the user; when the cover text is generated in the above-mentioned manner, the other cover texts are also generated in a similar manner to the above-mentioned. That is, the terminal acquires multiple cover texts, the currently displayed cover text in the preview cover is one of the multiple cover texts, and the user selects one cover text from other cover texts to replace the currently displayed cover text, so as to adjust the cover text, and The position of the adjusted cover text does not change.
在一些实施例中,其他封面文本可称为备选封面文本,文本调整区域包括封面文本及至少一个备选封面文本,该至少一个备选封面文本与当前预览封面中显示的封面文本不同。终端响应于对文本调整区域中任一备选封面文本的选取操作,将选取的备选封面文本确定为调整后的封面文本。In some embodiments, other cover texts may be referred to as alternative cover texts, and the text adjustment area includes cover texts and at least one alternative cover text, the at least one alternative cover text being different from the cover text displayed in the currently previewed cover. In response to a selection operation on any candidate cover text in the text adjustment area, the terminal determines the selected candidate cover text as the adjusted cover text.
在一些实施例中,终端响应于对预览封面中当前显示的封面文本的编辑操作,编辑当前显示的封面文本,得到编辑后的封面文本,将编辑后的封面文本确定为调整后的封面文本。In some embodiments, in response to an editing operation on the currently displayed cover text in the preview cover, the terminal edits the currently displayed cover text, obtains the edited cover text, and determines the edited cover text as the adjusted cover text.
在一些实施例中,终端在预览界面中的动效设置区域显示多个动效,响应于对预览界面的动效设置区域中的任一动效的选取操作,将选取的动效确定为预览封面的目标动效;在预览界面中,按照目标动效显示预览封面。其中,动效包括淡入淡出、边角切换、上滑、翻页等。例如,目标动效为上滑,在预览界面中通过上滑的方式显示预览封面。In some embodiments, the terminal displays multiple motion effects in the motion effect setting area of the preview interface, and in response to a selection operation on any motion effect in the motion effect setting area of the preview interface, determines the selected motion effect as the preview cover The target animation; in the preview interface, the preview cover is displayed according to the target animation. Among them, the dynamic effects include fading in and out, corner switching, sliding up, page turning, etc. For example, the target motion effect is sliding up, and the preview cover is displayed in the preview interface by sliding up.
需要说明的是,本公开实施例仅是以获取多媒体资源的一个预览封面为例进行说明,在另一实施例中,终端可以获取多媒体资源的多个预览封面,每个预览封面的获取方式与本公开实施例中所示的预览封面的获取方式相同。It should be noted that the embodiment of the present disclosure only takes obtaining a preview cover of a multimedia resource as an example for description. In another embodiment, the terminal may obtain multiple preview covers of a multimedia resource, and the acquisition method of each preview cover is the same as The acquisition method of the preview cover shown in the embodiment of the present disclosure is the same.
在一些实施例中,终端获取的背景图像包括多个,目标虚拟元素包括多个,终端将多 个目标虚拟元素分别添加至多个背景图像中的至少一个背景图像,得到多媒体资源的多个预览封面。也就是说,对于每个目标虚拟元素,终端将目标虚拟元素分别添加至多个背景图像中的至少一个背景图像,得到多媒体资源的预览封面。其中,每个背景图像中添加有一个目标虚拟元素,即每个预览封面包括一个目标虚拟元素。例如,有5个目标虚拟元素,1个背景图像,则将每个目标虚拟元素分别添加在该背景图像中,得到5个预览封面。In some embodiments, the background image acquired by the terminal includes a plurality of target virtual elements, and the terminal adds the plurality of target virtual elements to at least one background image of the plurality of background images respectively to obtain multiple preview covers of the multimedia resource. . That is, for each target virtual element, the terminal adds the target virtual element to at least one background image among the multiple background images, respectively, to obtain a preview cover of the multimedia resource. Wherein, a target virtual element is added to each background image, that is, each preview cover includes a target virtual element. For example, if there are 5 target virtual elements and 1 background image, then each target virtual element is added to the background image to obtain 5 preview covers.
也就是说,组合任一目标虚拟元素与任一背景图像,得到一个预览封面,多个目标虚拟元素和多个背景图像之间可进行两两组合,从而得到多个预览封面。例如,终端获取5个背景图像,5个目标虚拟元素,则最多可得到120个预览封面。That is to say, any target virtual element and any background image are combined to obtain a preview cover, and multiple target virtual elements and multiple background images can be combined in pairs to obtain multiple preview covers. For example, if the terminal obtains 5 background images and 5 target virtual elements, a maximum of 120 preview covers can be obtained.
在另一些实施例中,终端获取的背景图像为多个,目标虚拟元素为一个的情况下,终端将该目标虚拟元素分别与多个背景图像进行组合,得到多个预览封面。In some other embodiments, when there are multiple background images acquired by the terminal and there is one target virtual element, the terminal combines the target virtual element with multiple background images respectively to obtain multiple preview covers.
在一些实施例中,终端获取的背景图像包括多个,目标虚拟元素包括多个,封面文本包括多个,终端将多个封面文本和多个目标虚拟元素分别添加至多个背景图像中的至少一个背景图像,得到多媒体资源的多个预览封面。In some embodiments, the terminal acquires multiple background images, multiple target virtual elements, and multiple cover texts, and the terminal adds multiple cover texts and multiple target virtual elements to at least one of the multiple background images, respectively. Background images to get multiple preview covers of multimedia resources.
也就是说,终端对获取的多个背景图像、多个目标虚拟元素和多个封面文本,将背景图像、目标虚拟元素和封面文本相互组合,得到多个预览封面。其中,得到的每个预览封面包括一个目标虚拟元素和一个封面文本。例如,获取了两个背景图像、两个目标虚拟元素和两个封面文本,相互组合最多得到八个预览封面。That is, the terminal combines the acquired background images, target virtual elements and cover texts with each other to obtain multiple preview covers. Wherein, each obtained preview cover includes a target virtual element and a cover text. For example, two background images, two target virtual elements, and two cover texts are obtained, and combined with each other, a maximum of eight preview covers are obtained.
进一步地,终端将多个目标虚拟元素和多个封面文本可以添加至多个背景图像中的至少一个背景图像的目标位置处,得到多媒体资源的多个预览封面。Further, the terminal may add multiple target virtual elements and multiple cover texts to the target position of at least one background image among the multiple background images, so as to obtain multiple preview covers of the multimedia resource.
在一些实施例中,预览封面生成界面包括预览封面数量设置区域,用户在预览封面设置区域输入需要生成的预览封面的数量,终端根据用户输入的数量为多媒体资源生成对应数量的预览封面,在预览界面中同时显示生成的对应数量的预览封面,实现预览封面的批量生成,提高了预览封面的生成效率,且用户可以同时查看生成的多个预览封面。In some embodiments, the preview cover generation interface includes a preview cover quantity setting area, the user inputs the number of preview covers to be generated in the preview cover setting area, the terminal generates a corresponding number of preview covers for the multimedia resource according to the quantity input by the user, and the preview The corresponding number of generated preview covers are displayed in the interface at the same time, which realizes batch generation of preview covers, improves the generation efficiency of preview covers, and the user can view multiple generated preview covers at the same time.
对于终端获取用户输入的封面文本的情况,参见图3所示的生成预览封面的示意图,在预览封面设置界面301输入多媒体资源,在预览封面生成界面302的封面文本设置区域输入封面文本,响应于用户对预览封面生成界面中的预览封面生成按钮的触发操作,在预览界面303中,显示生成的预览封面。图3中仅是以在封面文本设置区域输入封面文本1和封面文本2,生成对应的预览封面1和预览封面2为例,在另一实施例中,用户可在封面文本设置区域输入其他数量的封面文本,本公开实施例对用户在封面文本设置区域输入的封面文本的数量不做限制。For the case where the terminal obtains the cover text input by the user, referring to the schematic diagram of generating the preview cover shown in FIG. 3, the multimedia resource is input in the preview cover setting interface 301, the cover text is input in the cover text setting area of the preview cover generation interface 302, and the response The user triggers the preview cover generation button in the preview cover generation interface, and in the preview interface 303, the generated preview cover is displayed. In FIG. 3, it is only an example of inputting cover text 1 and cover text 2 in the cover text setting area to generate the corresponding preview cover 1 and preview cover 2. In another embodiment, the user can input other quantities in the cover text setting area. In this embodiment of the present disclosure, the number of cover texts input by the user in the cover text setting area is not limited.
在一些实施例中,参见图4所示的生成预览封面的示意图,每个预览封面下方设置有一个对应的调整按钮,响应于对调整按钮的触发操作,进一步在预览界面304中调整生成的预览封面。其中,在调整预览封面时,在预览界面304中显示动效设置区域、封面文本调整区域和虚拟元素调整区域,基于这些区域,分别调整预览封面的显示动效、封面文本和目标虚拟元素。In some embodiments, referring to the schematic diagram of generating a preview cover shown in FIG. 4 , a corresponding adjustment button is provided below each preview cover, and in response to the triggering operation of the adjustment button, the generated preview is further adjusted in the preview interface 304 cover. Wherein, when adjusting the preview cover, the preview interface 304 displays the animation effect setting area, the cover text adjustment area and the virtual element adjustment area, and based on these areas, the display animation effect, cover text and target virtual element of the preview cover are adjusted respectively.
对于终端生成封面文本的情况,参见图5所示的生成预览封面的示意图,在预览封面设置界面501输入多媒体资源,响应于用户对预览封面生成界面502中的预览封面生成按钮的触发操作,在预览界面503中,显示生成的预览封面。For the case where the terminal generates the cover text, referring to the schematic diagram of generating the preview cover shown in FIG. 5 , the multimedia resource is input in the preview cover setting interface 501, and in response to the triggering operation of the preview cover generation button in the preview cover generation interface 502 by the user, in the preview cover generation interface 502 In the preview interface 503, the generated preview cover is displayed.
在一些实施例中,参见图6所示的生成预览封面的示意图,在显示预览封面之后,进一步在预览界面504中调整生成的预览封面2,得到调整后的预览封面2,终端在预览界面504中显示调整后的预览封面2。终端响应于对当前显示的预览封面2的滑动操作,显示调整前的预览封面2。在用户多次调整预览封面2的情况下,则可以得到多个调整后的预览封面2,且终端响应于对当前显示的预览封面2的滑动操作,可以显示其他的预览封面2,用户通过查看多个预览封面2,对比多个预览封面2的显示效果,确定显示效果最好的预览封面2。In some embodiments, referring to the schematic diagram of generating the preview cover shown in FIG. 6 , after the preview cover is displayed, the generated preview cover 2 is further adjusted in the preview interface 504 to obtain the adjusted preview cover 2. The terminal displays the preview interface 504 The adjusted preview cover 2 is displayed in . In response to the sliding operation on the currently displayed preview cover 2, the terminal displays the preview cover 2 before adjustment. In the case where the user adjusts the preview cover 2 for many times, multiple adjusted preview covers 2 can be obtained, and the terminal can display other preview covers 2 in response to the sliding operation of the currently displayed preview cover 2. For multiple preview covers 2, the display effects of the multiple preview covers 2 are compared, and the preview cover 2 with the best display effect is determined.
另外,在一些实施例中,预览界面包括保存按钮,终端响应于对保存按钮的触发操作,将生成的预览封面与多媒体资源对应存储。或者,该方法应用于终端中的视频应用时,预览界面包括发布按钮,终端响应于对发布按钮的触发操作,发布生成的预览封面与多媒体资源,以使登录该视频应用的任一终端显示多媒体资源的预览封面,响应于该任一终端的用户对预览封面的触发操作,获取该预览封面对应的多媒体资源,播放该多媒体资源。In addition, in some embodiments, the preview interface includes a save button, and in response to a triggering operation of the save button, the terminal stores the generated preview cover corresponding to the multimedia resource. Alternatively, when the method is applied to a video application in a terminal, the preview interface includes a release button, and the terminal releases the generated preview cover and multimedia resources in response to a triggering operation of the release button, so that any terminal that logs in to the video application displays multimedia. For the preview cover of the resource, in response to the triggering operation of the preview cover by the user of any terminal, the multimedia resource corresponding to the preview cover is acquired, and the multimedia resource is played.
在一些实施例中,在为多媒体资源生成多个预览封面的情况下,终端显示多个预览封面中的任一个预览封面,并且,还可以随时更换预览封面。In some embodiments, when multiple preview covers are generated for the multimedia resource, the terminal displays any one of the multiple preview covers, and the preview covers can be changed at any time.
需要说明的一点是,本公开实施例仅是以该方法应用于终端为例进行说明,在另一实施例中,步骤202-步骤205可以应用于服务器。即终端显示多媒体资源的预览生成界面,终端向服务器发送预览封面生成指令,该预览封面生成指令携带多媒体资源,服务器根据该多媒体资源,生成对应的预览封面,服务器将生成的预览封面发送给终端,终端在预览界面中,显示预览封面。It should be noted that this embodiment of the present disclosure only takes the method applied to a terminal as an example for description. In another embodiment, steps 202 to 205 may be applied to a server. That is, the terminal displays a preview generation interface of the multimedia resource, the terminal sends a preview cover generation instruction to the server, the preview cover generation instruction carries the multimedia resource, the server generates a corresponding preview cover according to the multimedia resource, and the server sends the generated preview cover to the terminal. The terminal displays the preview cover in the preview interface.
需要说明的另一点是,本公开实施例仅是以根据获取的多媒体资源的背景图像、虚拟元素及封面文本,生成多媒体资源的预览封面为例进行说明,在另一实施例中,可以仅根据获取的多媒体资源的背景图像和虚拟元素,生成多媒体资源的预览封面,而不需要获取 封面文本。Another point that needs to be explained is that the embodiment of the present disclosure only takes the generation of the preview cover of the multimedia resource according to the acquired background image, virtual element and cover text of the multimedia resource as an example for description. The background images and virtual elements of the acquired multimedia resources are generated, and the preview cover of the multimedia resources is generated without acquiring the cover text.
另外,相关技术中,用户手动设置预览封面,用户需要选取背景图像、目标虚拟元素、设置封面文本,再将封面文本和目标虚拟元素添加至背景图像,需要耗费较长的时间,时间成本较高,且用户在不知道什么样的背景图像、目标虚拟元素和封面文本更加吸引用户的情况下,设置的预览封面的显示效果也会较差。In addition, in the related art, the user manually sets the preview cover, the user needs to select the background image, the target virtual element, set the cover text, and then add the cover text and the target virtual element to the background image, which takes a long time and costs a lot of time. , and if the user does not know what kind of background image, target virtual element and cover text are more attractive to the user, the display effect of the set preview cover will also be poor.
本公开实施例提供的方法,只需在多媒体资源的预览封面生成界面触发预览封面生成指令,即可自动生成多媒体资源的预览封面,该过程中用户不需要执行其他操作,更加便捷智能,且与用户手动制作预览封面相比,上述自动生成的方式生成预览封面的速度更快,提高了生成预览封面的效率,降低了成本。The method provided by the embodiments of the present disclosure only needs to trigger the preview cover generation instruction on the preview cover generation interface of the multimedia resource, and the preview cover of the multimedia resource can be automatically generated. In this process, the user does not need to perform other operations, which is more convenient and intelligent, and is compatible with the Compared with the manual production of the preview cover by the user, the above-mentioned automatic generation method generates the preview cover faster, improves the efficiency of generating the preview cover, and reduces the cost.
并且,响应于预览封面生成指令,能够获取封面文本,将封面文本和目标虚拟元素添加至背景图像中,得到预览封面,不需要用户手动设置封面文本,根据背景图像、目标虚拟元素和封面文本生成预览封面的过程中,用户也不需要执行任何操作,能够一键生成多媒体资源的预览封面,高了生成预览封面的效率,降低了成本。In addition, in response to the preview cover generation instruction, the cover text can be obtained, the cover text and the target virtual element can be added to the background image, and the preview cover can be obtained. The user does not need to manually set the cover text, and is generated according to the background image, the target virtual element and the cover text. In the process of previewing the cover, the user does not need to perform any operation, and can generate the preview cover of the multimedia resource with one click, which improves the efficiency of generating the preview cover and reduces the cost.
并且,能够同时得到多媒体资源的多个预览封面,实现预览封面的批量生成,进一步提高了获取预览封面的效率,降低了成本。在生成预览封面之后,还能够进一步调整生成的预览封面,提高了灵活性。In addition, multiple preview covers of multimedia resources can be obtained at the same time, and batch generation of preview covers can be realized, which further improves the efficiency of obtaining preview covers and reduces costs. After the preview cover is generated, the generated preview cover can be further adjusted, which improves flexibility.
图7是根据一示例性实施例示出的一种预览封面生成装置的框图。参见图7,该装置包括:Fig. 7 is a block diagram of an apparatus for generating a preview cover according to an exemplary embodiment. Referring to Figure 7, the device includes:
生成指令接收单元701,被配置为通过多媒体资源的预览封面生成界面,接收多媒体资源的预览封面生成指令;The generation instruction receiving unit 701 is configured to receive the preview cover generation instruction of the multimedia resource through the preview cover generation interface of the multimedia resource;
识别处理单元702,被配置为响应于预览封面生成指令,识别出多媒体资源的背景图像和资源标签;The identification processing unit 702 is configured to identify the background image and the resource label of the multimedia resource in response to the preview cover generation instruction;
预览封面获取单元703,被配置为获取目标虚拟元素,目标虚拟元素与资源标签匹配,将目标虚拟元素添加至背景图像,得到多媒体资源的预览封面;The preview cover obtaining unit 703 is configured to obtain the target virtual element, the target virtual element matches the resource tag, and the target virtual element is added to the background image to obtain the preview cover of the multimedia resource;
预览封面显示单元704,被配置为在预览界面中,显示预览封面。The preview cover display unit 704 is configured to display the preview cover in the preview interface.
本公开实施例提供的装置,只需在多媒体资源的预览封面生成界面触发预览封面生成指令,即可自动生成多媒体资源的预览封面,该过程中用户不需要执行其他操作,更加便捷智能,且与用户手动制作预览封面相比,上述自动生成的方式生成预览封面的速度更快,提高了生成预览封面的效率,降低了成本。The device provided by the embodiment of the present disclosure can automatically generate the preview cover of the multimedia resource only by triggering the preview cover generation instruction on the preview cover generation interface of the multimedia resource. In this process, the user does not need to perform other operations, which is more convenient and intelligent, and is compatible with the Compared with the manual production of the preview cover by the user, the above-mentioned automatic generation method generates the preview cover faster, improves the efficiency of generating the preview cover, and reduces the cost.
在一些实施例中,参见图8,装置还包括:In some embodiments, referring to FIG. 8, the apparatus further includes:
目标位置确定单元705,被配置为识别出背景图像中的目标位置;a target position determination unit 705, configured to identify the target position in the background image;
预览封面获取单元703,被配置为将目标虚拟元素添加至目标位置,得到多媒体资源的预览封面。The preview cover obtaining unit 703 is configured to add the target virtual element to the target position to obtain the preview cover of the multimedia resource.
在一些实施例中,参见图8,目标位置确定单元705,被配置为:In some embodiments, referring to FIG. 8, the target position determination unit 705 is configured to:
识别出背景图像中的目标对象的位置,目标对象包括文本内容、人脸或者属于目标类型的物品中的至少一种;Identifying the position of the target object in the background image, the target object includes at least one of text content, human face or objects belonging to the target type;
确定目标位置,目标位置与目标对象的位置之间不重叠。The target position is determined, and there is no overlap between the target position and the position of the target object.
在一些实施例中,参见图8,装置还包括:In some embodiments, referring to FIG. 8, the apparatus further includes:
封面文本获取单元706,被配置为响应于预览封面生成指令,获取多媒体资源对应的封面文本,封面文本用于描述多媒体资源的内容;The cover text obtaining unit 706 is configured to, in response to the preview cover generation instruction, obtain cover text corresponding to the multimedia resource, where the cover text is used to describe the content of the multimedia resource;
预览封面获取单元703,被配置为将封面文本与目标虚拟元素添加至背景图像,得到多媒体资源的预览封面。The preview cover obtaining unit 703 is configured to add the cover text and the target virtual element to the background image to obtain the preview cover of the multimedia resource.
在一些实施例中,参见图8,封面文本获取单元706,包括:In some embodiments, referring to FIG. 8 , the cover text obtaining unit 706 includes:
第一获取子单元7061,被配置为获取在预览封面生成界面中输入的封面文本;或者,The first obtaining subunit 7061 is configured to obtain the cover text input in the preview cover generation interface; or,
第二获取子单元7062,被配置为识别出多媒体资源中每个图像对应的图像内容,基于识别出的图像内容生成封面文本。The second obtaining subunit 7062 is configured to identify image content corresponding to each image in the multimedia resource, and generate cover text based on the identified image content.
在一些实施例中,预览封面获取单元703,被配置为:In some embodiments, the preview cover obtaining unit 703 is configured to:
将目标虚拟元素添加至背景图像中,得到第一图像;Add the target virtual element to the background image to obtain the first image;
将封面文本添加至第一图像中目标虚拟元素的上层,得到预览封面。The cover text is added to the upper layer of the target virtual element in the first image to obtain a preview cover.
在一些实施例中,参见图8,预览封面获取单元703,包括:In some embodiments, referring to FIG. 8 , the preview cover obtaining unit 703 includes:
虚拟元素获取子单元7031,被配置为获取虚拟元素类型,虚拟元素类型与资源标签匹配;基于属于虚拟元素类型的至少一个虚拟元素,确定目标虚拟元素。The virtual element acquiring subunit 7031 is configured to acquire a virtual element type, which matches the resource tag; and determine a target virtual element based on at least one virtual element belonging to the virtual element type.
在一些实施例中,参见图8,虚拟元素获取子单元7031,被配置为基于目标对应关系,获取与资源标签匹配的虚拟元素类型,目标对应关系包括资源类型及对应的虚拟元素标签。In some embodiments, referring to FIG. 8 , the virtual element obtaining subunit 7031 is configured to obtain the virtual element type matching the resource tag based on the target correspondence relationship, and the target correspondence relationship includes the resource type and the corresponding virtual element label.
在一些实施例中,参见图8,虚拟元素获取子单元7031,被配置为:In some embodiments, referring to FIG. 8 , the virtual element acquisition subunit 7031 is configured to:
识别出背景图像的目标颜色;Identify the target color of the background image;
基于属于虚拟元素类型且颜色与目标颜色不同的至少一个虚拟元素,确定目标虚拟元素。A target virtual element is determined based on at least one virtual element of a virtual element type and having a color different from the target color.
在一些实施例中,参见图8,识别处理单元702,被配置为:In some embodiments, referring to FIG. 8, the identification processing unit 702 is configured to:
获取多媒体资源中的多个图像;Get multiple images in a multimedia resource;
从多个图像中,选取满足目标条件的图像作为多媒体资源的背景图像。From a plurality of images, an image that satisfies the target condition is selected as the background image of the multimedia resource.
在一些实施例中,参见图8,装置还包括:In some embodiments, referring to FIG. 8, the apparatus further includes:
获取指令接收单元707,被配置为通过预览封面设置界面,接收资源获取指令;The acquisition instruction receiving unit 707 is configured to receive the resource acquisition instruction through the preview cover setting interface;
资源获取单元708,用被配置为响应于资源获取指令,从资源库中选取多媒体资源。The resource obtaining unit 708 is configured to select the multimedia resource from the resource library in response to the resource obtaining instruction.
在一些实施例中,参见图8,预览界面包括元素调整区域,元素调整区域包括目标虚拟元素及至少一个备选虚拟元素,至少一个备选虚拟元素与目标虚拟元素不同,该装置还包括:In some embodiments, referring to FIG. 8 , the preview interface includes an element adjustment area, the element adjustment area includes a target virtual element and at least one candidate virtual element, and the at least one candidate virtual element is different from the target virtual element, and the apparatus further includes:
虚拟元素调整单元709,被配置为响应于对预览界面的元素调整区域中任一备选虚拟元素的选取操作,将选取的备选虚拟元素确定为调整后的目标虚拟元素。The virtual element adjustment unit 709 is configured to, in response to a selection operation of any candidate virtual element in the element adjustment area of the preview interface, determine the selected candidate virtual element as the adjusted target virtual element.
在一些实施例中,参见图8,装置还包括:In some embodiments, referring to FIG. 8, the apparatus further includes:
目标位置调整单元710,被配置为响应于对预览界面的目标虚拟元素的移动操作,将移动后目标虚拟元素的位置确定为调整后的目标位置。The target position adjustment unit 710 is configured to, in response to the moving operation on the target virtual element of the preview interface, determine the position of the moved target virtual element as the adjusted target position.
在一些实施例中,参见图8,预览界面包括文本调整区域,文本调整区域包括封面文本及至少一个备选封面文本,至少一个备选封面文本与封面文本不同,该装置还包括:In some embodiments, referring to FIG. 8 , the preview interface includes a text adjustment area, the text adjustment area includes cover text and at least one alternative cover text, and the at least one alternative cover text is different from the cover text, and the apparatus further includes:
封面文本调整单元711,被配置为响应于对预览界面的文本调整区域中任一备选封面文本的选取操作,将选取的备选封面文本确定为调整后的封面文本。The cover text adjustment unit 711 is configured to, in response to a selection operation of any candidate cover text in the text adjustment area of the preview interface, determine the selected candidate cover text as the adjusted cover text.
在一些实施例中,背景图像包括多个,目标虚拟元素包括多个,预览封面获取单元703,被配置为对于每个目标虚拟元素,将目标虚拟元素分别添加至多个背景图像中的至少一个背景图像,得到多媒体资源的预览封面。In some embodiments, the background image includes multiple, the target virtual element includes multiple, and the preview cover obtaining unit 703 is configured to, for each target virtual element, add the target virtual element to at least one background of the multiple background images, respectively. image to get the preview cover of the multimedia resource.
关于上述实施例中的装置,其中各个单元执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the above-mentioned embodiment, the specific manner in which each unit performs the operation has been described in detail in the embodiment of the method, and will not be described in detail here.
图9是根据一示例性实施例示出的一种用于生成预览封面的终端900的框图。该终端900用于执行上述预览封面生成方法中终端所执行的步骤,可以是便携式移动终端,比如:智能手机、平板电脑、MP3播放器(Moving Picture Experts Group Audio Layer III,动态影像专家压缩标准音频层面3)、MP4(Moving Picture Experts Group Audio Layer IV,动态影像专家压缩标准音频层面4)播放器、笔记本电脑或台式电脑。终端900还可能被称为用户设备、便携式终端、膝上型终端、台式终端等其他名称。FIG. 9 is a block diagram of a terminal 900 for generating a preview cover according to an exemplary embodiment. The terminal 900 is used to perform the steps performed by the terminal in the above-mentioned preview cover generation method, and may be a portable mobile terminal, such as a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, a moving picture expert compressed standard audio Layer 3), MP4 (Moving Picture Experts Group Audio Layer IV, Moving Picture Experts Compression Standard Audio Layer 4) player, laptop or desktop computer. Terminal 900 may also be called user equipment, portable terminal, laptop terminal, desktop terminal, and the like by other names.
通常,终端900包括有:一个或多个处理器901和一个或多个存储器902。Generally, the terminal 900 includes: one or more processors 901 and one or more memories 902 .
处理器901可以包括一个或多个处理核心,比如4核心处理器、8核心处理器等。处理器901可以采用DSP(Digital Signal Processing,数字信号处理)、FPGA(Field-Programmable Gate Array,现场可编程门阵列)、PLA(Programmable Logic Array,可编程逻辑阵列)中的至少一种硬件形式来实现。处理器901也可以包括主处理器和协处理器,主处理器是用于对在唤醒状态下的数据进行处理的处理器,也称CPU(Central Processing Unit,中央处理器);协处理器是用于对在待机状态下的数据进行处理的低功耗处理器。在一些实施例中,处理器901可以在集成有GPU(Graphics Processing Unit,图像处理器),GPU用于负责显示屏所需要显示的内容的渲染和绘制。一些实施例中,处理器901还可以包括AI(Artificial Intelligence,人工智能)处理器,该AI处理器用于处理有关机器学习的计算操作。The processor 901 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 901 can use at least one hardware form among DSP (Digital Signal Processing, digital signal processing), FPGA (Field-Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array, programmable logic array) accomplish. The processor 901 may also include a main processor and a co-processor. The main processor is a processor used to process data in the wake-up state, also called CPU (Central Processing Unit, central processing unit); the co-processor is A low-power processor for processing data in a standby state. In some embodiments, the processor 901 may be integrated with a GPU (Graphics Processing Unit, image processor), and the GPU is used for rendering and drawing the content that needs to be displayed on the display screen. In some embodiments, the processor 901 may further include an AI (Artificial Intelligence, artificial intelligence) processor, where the AI processor is used to process computing operations related to machine learning.
存储器902可以包括一个或多个计算机可读存储介质,该计算机可读存储介质可以是非暂态的。存储器902还可包括易失性存储器或非易失性存储器,比如一个或多个磁盘存储设备、闪存存储设备。在一些实施例中,存储器902中的非暂态的计算机可读存储介质用于存储至少一个指令,该至少一个指令用于被处理器901所具有以实现本申请中方法实施例提供的预览封面生成方法。 Memory 902 may include one or more computer-readable storage media, which may be non-transitory. The memory 902 may also include volatile memory or non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer-readable storage medium in the memory 902 is used to store at least one instruction for being possessed by the processor 901 to implement the preview cover provided by the method embodiments of the present application Generate method.
在一些实施例中,终端900还可选包括有:***设备接口903和至少一个***设备。处理器901、存储器902和***设备接口903之间可以通过总线或信号线相连。各个***设备可以通过总线、信号线或电路板与***设备接口903相连。具体地,***设备包括:射频电路904、显示屏905、摄像头906、音频电路907、定位组件908和电源909中的至少一种。In some embodiments, the terminal 900 may optionally further include: a peripheral device interface 903 and at least one peripheral device. The processor 901, the memory 902 and the peripheral device interface 903 may be connected through a bus or a signal line. Each peripheral device can be connected to the peripheral device interface 903 through a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 904 , a display screen 905 , a camera 906 , an audio circuit 907 , a positioning component 908 and a power supply 909 .
***设备接口903可被用于将I/O(Input/Output,输入/输出)相关的至少一个***设备连接到处理器901和存储器902。在一些实施例中,处理器901、存储器902和***设备接口903被集成在同一芯片或电路板上;在一些其他实施例中,处理器901、存储器902和***设备接口903中的任意一个或两个可以在单独的芯片或电路板上实现,本实施例对此不加以限定。The peripheral device interface 903 may be used to connect at least one peripheral device related to I/O (Input/Output) to the processor 901 and the memory 902 . In some embodiments, processor 901, memory 902, and peripherals interface 903 are integrated on the same chip or circuit board; in some other embodiments, any one of processor 901, memory 902, and peripherals interface 903 or The two can be implemented on a separate chip or circuit board, which is not limited in this embodiment.
射频电路904用于接收和发射RF(Radio Frequency,射频)信号,也称电磁信号。射频电路904通过电磁信号与通信网络以及其他通信设备进行通信。射频电路904将电信号转换为电磁信号进行发送,或者,将接收到的电磁信号转换为电信号。可选地,射频电路904包括:天线***、RF收发器、一个或多个放大器、调谐器、振荡器、数字信号处 理器、编解码芯片组、用户身份模块卡等等。射频电路904可以通过至少一种无线通信协议来与其它终端进行通信。该无线通信协议包括但不限于:城域网、各代移动通信网络(2G、3G、4G及5G)、无线局域网和/或WiFi(Wireless Fidelity,无线保真)网络。在一些实施例中,射频电路904还可以包括NFC(Near Field Communication,近距离无线通信)有关的电路,本申请对此不加以限定。The radio frequency circuit 904 is used for receiving and transmitting RF (Radio Frequency, radio frequency) signals, also called electromagnetic signals. The radio frequency circuit 904 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 904 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. Optionally, radio frequency circuitry 904 includes an antenna system, an RF transceiver, one or more amplifiers, tuners, oscillators, digital signal processors, codec chipsets, subscriber identity module cards, and the like. The radio frequency circuit 904 may communicate with other terminals through at least one wireless communication protocol. The wireless communication protocols include, but are not limited to, metropolitan area networks, mobile communication networks of various generations (2G, 3G, 4G and 5G), wireless local area networks and/or WiFi (Wireless Fidelity, wireless fidelity) networks. In some embodiments, the radio frequency circuit 904 may further include a circuit related to NFC (Near Field Communication, short-range wireless communication), which is not limited in this application.
显示屏905用于显示UI(UserInterface,用户界面)。该UI可以包括图形、文本、图标、视频及其它们的任意组合。当显示屏905是触摸显示屏时,显示屏905还具有采集在显示屏905的表面或表面上方的触摸信号的能力。该触摸信号可以作为控制信号输入至处理器901进行处理。此时,显示屏905还可以用于提供虚拟按钮和/或虚拟键盘,也称软按钮和/或软键盘。在一些实施例中,显示屏905可以为一个,设置终端900的前面板;在另一些实施例中,显示屏905可以为至少两个,分别设置在终端900的不同表面或呈折叠设计;在再一些实施例中,显示屏905可以是柔性显示屏,设置在终端900的弯曲表面上或折叠面上。甚至,显示屏905还可以设置成非矩形的不规则图形,也即异形屏。显示屏905可以采用LCD(Liquid Crystal Display,液晶显示屏)、OLED(Organic Light-Emitting Diode,有机发光二极管)等材质制备。The display screen 905 is used to display a UI (User Interface). The UI can include graphics, text, icons, video, and any combination thereof. When the display screen 905 is a touch display screen, the display screen 905 also has the ability to acquire touch signals on or above the surface of the display screen 905 . The touch signal may be input to the processor 901 as a control signal for processing. At this time, the display screen 905 may also be used to provide virtual buttons and/or virtual keyboards, also referred to as soft buttons and/or soft keyboards. In some embodiments, there may be one display screen 905, which is provided on the front panel of the terminal 900; in other embodiments, there may be at least two display screens 905, which are respectively arranged on different surfaces of the terminal 900 or in a folded design; In still other embodiments, the display screen 905 may be a flexible display screen, disposed on a curved surface or a folding surface of the terminal 900 . Even, the display screen 905 can also be set as a non-rectangular irregular figure, that is, a special-shaped screen. The display screen 905 can be prepared by using materials such as LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, organic light emitting diode).
摄像头组件906用于采集图像或视频。可选地,摄像头组件906包括前置摄像头和后置摄像头。通常,前置摄像头设置在终端的前面板,后置摄像头设置在终端的背面。在一些实施例中,后置摄像头为至少两个,分别为主摄像头、景深摄像头、广角摄像头、长焦摄像头中的任意一种,以实现主摄像头和景深摄像头融合实现背景虚化功能、主摄像头和广角摄像头融合实现全景拍摄以及VR(Virtual Reality,虚拟现实)拍摄功能或者其它融合拍摄功能。在一些实施例中,摄像头组件906还可以包括闪光灯。闪光灯可以是单色温闪光灯,也可以是双色温闪光灯。双色温闪光灯是指暖光闪光灯和冷光闪光灯的组合,可以用于不同色温下的光线补偿。The camera assembly 906 is used to capture images or video. Optionally, the camera assembly 906 includes a front camera and a rear camera. Usually, the front camera is arranged on the front panel of the terminal, and the rear camera is arranged on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth-of-field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth-of-field camera to realize the background blur function, the main camera It is integrated with the wide-angle camera to achieve panoramic shooting and VR (Virtual Reality, virtual reality) shooting functions or other integrated shooting functions. In some embodiments, camera assembly 906 may also include a flash. The flash can be a single color temperature flash or a dual color temperature flash. Dual color temperature flash refers to the combination of warm light flash and cold light flash, which can be used for light compensation under different color temperatures.
音频电路907可以包括麦克风和扬声器。麦克风用于采集用户及环境的声波,并将声波转换为电信号输入至处理器901进行处理,或者输入至射频电路904以实现语音通信。出于立体声采集或降噪的目的,麦克风可以为多个,分别设置在终端900的不同部位。麦克风还可以是阵列麦克风或全向采集型麦克风。扬声器则用于将来自处理器901或射频电路904的电信号转换为声波。扬声器可以是传统的薄膜扬声器,也可以是压电陶瓷扬声器。当扬声器是压电陶瓷扬声器时,不仅可以将电信号转换为人类可听见的声波,也可以将电信号转换为人类听不见的声波以进行测距等用途。在一些实施例中,音频电路907还可以 包括耳机插孔。 Audio circuitry 907 may include a microphone and speakers. The microphone is used to collect the sound waves of the user and the environment, convert the sound waves into electrical signals, and input them to the processor 901 for processing, or to the radio frequency circuit 904 to realize voice communication. For the purpose of stereo collection or noise reduction, there may be multiple microphones, which are respectively disposed in different parts of the terminal 900 . The microphone may also be an array microphone or an omnidirectional collection microphone. The speaker is used to convert the electrical signal from the processor 901 or the radio frequency circuit 904 into sound waves. The loudspeaker can be a traditional thin-film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert electrical signals into sound waves audible to humans, but also convert electrical signals into sound waves inaudible to humans for distance measurement and other purposes. In some embodiments, the audio circuit 907 may also include a headphone jack.
定位组件908用于定位终端900的当前地理位置,以实现导航或LBS(Location Based Service,基于位置的服务)。定位组件908可以是基于美国的GPS(Global Positioning System,全球定位***)、中国的北斗***、俄罗斯的格雷纳斯***或欧盟的伽利略***的定位组件。The positioning component 908 is used to locate the current geographic location of the terminal 900 to implement navigation or LBS (Location Based Service, location-based service). The positioning component 908 may be a positioning component based on the GPS (Global Positioning System, global positioning system) of the United States, the Beidou system of China, the Grenas system of Russia, or the Galileo system of the European Union.
电源909用于为终端900中的各个组件进行供电。电源909可以是交流电、直流电、一次性电池或可充电电池。当电源909包括可充电电池时,该可充电电池可以支持有线充电或无线充电。该可充电电池还可以用于支持快充技术。The power supply 909 is used to power various components in the terminal 900 . The power source 909 may be alternating current, direct current, primary batteries, or rechargeable batteries. When the power source 909 includes a rechargeable battery, the rechargeable battery can support wired charging or wireless charging. The rechargeable battery can also be used to support fast charging technology.
在一些实施例中,终端900还包括有一个或多个传感器910。该一个或多个传感器910包括但不限于:加速度传感器911、陀螺仪传感器912、压力传感器913、指纹传感器914、光学传感器915以及接近传感器916。In some embodiments, terminal 900 also includes one or more sensors 910 . The one or more sensors 910 include, but are not limited to, an acceleration sensor 911 , a gyro sensor 912 , a pressure sensor 913 , a fingerprint sensor 914 , an optical sensor 915 , and a proximity sensor 916 .
加速度传感器911可以检测以终端900建立的坐标系的三个坐标轴上的加速度大小。比如,加速度传感器911可以用于检测重力加速度在三个坐标轴上的分量。处理器901可以根据加速度传感器911采集的重力加速度信号,控制显示屏905以横向视图或纵向视图进行用户界面的显示。加速度传感器911还可以用于游戏或者用户的运动数据的采集。The acceleration sensor 911 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the terminal 900 . For example, the acceleration sensor 911 can be used to detect the components of the gravitational acceleration on the three coordinate axes. The processor 901 may control the display screen 905 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 911 . The acceleration sensor 911 can also be used for game or user movement data collection.
陀螺仪传感器912可以检测终端900的机体方向及转动角度,陀螺仪传感器912可以与加速度传感器911协同采集用户对终端900的3D动作。处理器901根据陀螺仪传感器912采集的数据,可以实现如下功能:动作感应(比如根据用户的倾斜操作来改变UI)、拍摄时的图像稳定、游戏控制以及惯性导航。The gyroscope sensor 912 can detect the body direction and rotation angle of the terminal 900 , and the gyroscope sensor 912 can cooperate with the acceleration sensor 911 to collect 3D actions of the user on the terminal 900 . The processor 901 can implement the following functions according to the data collected by the gyro sensor 912 : motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
压力传感器913可以设置在终端900的侧边框和/或显示屏905的下层。当压力传感器913设置在终端900的侧边框时,可以检测用户对终端900的握持信号,由处理器901根据压力传感器913采集的握持信号进行左右手识别或快捷操作。当压力传感器913设置在显示屏905的下层时,由处理器901根据用户对显示屏905的压力操作,实现对UI界面上的可操作性控件进行控制。可操作性控件包括按钮控件、滚动条控件、图标控件、菜单控件中的至少一种。The pressure sensor 913 may be disposed on the side frame of the terminal 900 and/or the lower layer of the display screen 905 . When the pressure sensor 913 is disposed on the side frame of the terminal 900, the user's holding signal of the terminal 900 can be detected, and the processor 901 can perform left and right hand identification or shortcut operations according to the holding signal collected by the pressure sensor 913. When the pressure sensor 913 is disposed on the lower layer of the display screen 905, the processor 901 controls the operability controls on the UI interface according to the user's pressure operation on the display screen 905. The operability controls include at least one of button controls, scroll bar controls, icon controls, and menu controls.
指纹传感器914用于采集用户的指纹,由处理器901根据指纹传感器914采集到的指纹识别用户的身份,或者,由指纹传感器914根据采集到的指纹识别用户的身份。在识别出用户的身份为可信身份时,由处理器901授权该用户具有相关的敏感操作,该敏感操作包括解锁屏幕、查看加密信息、下载软件、支付及更改设置等。指纹传感器914可以被设置终端900的正面、背面或侧面。当终端900上设置有物理按键或厂商Logo时,指纹传 感器914可以与物理按键或厂商标志集成在一起。The fingerprint sensor 914 is used to collect the user's fingerprint, and the processor 901 identifies the user's identity according to the fingerprint collected by the fingerprint sensor 914, or the fingerprint sensor 914 identifies the user's identity according to the collected fingerprint. When the user's identity is identified as a trusted identity, the processor 901 authorizes the user to perform relevant sensitive operations, including unlocking the screen, viewing encrypted information, downloading software, making payments, and changing settings. The fingerprint sensor 914 may be provided on the front, back or side of the terminal 900 . When the terminal 900 is provided with a physical button or a manufacturer's logo, the fingerprint sensor 914 can be integrated with the physical button or the manufacturer's logo.
光学传感器915用于采集环境光强度。在一个实施例中,处理器901可以根据光学传感器915采集的环境光强度,控制显示屏905的显示亮度。具体地,当环境光强度较高时,调高显示屏905的显示亮度;当环境光强度较低时,调低显示屏905的显示亮度。在另一个实施例中,处理器901还可以根据光学传感器915采集的环境光强度,动态调整摄像头组件906的拍摄参数。Optical sensor 915 is used to collect ambient light intensity. In one embodiment, the processor 901 may control the display brightness of the display screen 905 according to the ambient light intensity collected by the optical sensor 915 . Specifically, when the ambient light intensity is high, the display brightness of the display screen 905 is increased; when the ambient light intensity is low, the display brightness of the display screen 905 is decreased. In another embodiment, the processor 901 may also dynamically adjust the shooting parameters of the camera assembly 906 according to the ambient light intensity collected by the optical sensor 915 .
接近传感器916,也称距离传感器,通常设置在终端900的前面板。接近传感器916用于采集用户与终端900的正面之间的距离。在一个实施例中,当接近传感器916检测到用户与终端900的正面之间的距离逐渐变小时,由处理器901控制显示屏905从亮屏状态切换为息屏状态;当接近传感器916检测到用户与终端900的正面之间的距离逐渐变大时,由处理器901控制显示屏905从息屏状态切换为亮屏状态。A proximity sensor 916 , also called a distance sensor, is usually provided on the front panel of the terminal 900 . The proximity sensor 916 is used to collect the distance between the user and the front of the terminal 900 . In one embodiment, when the proximity sensor 916 detects that the distance between the user and the front of the terminal 900 gradually decreases, the processor 901 controls the display screen 905 to switch from the bright screen state to the off screen state; when the proximity sensor 916 detects When the distance between the user and the front of the terminal 900 gradually increases, the processor 901 controls the display screen 905 to switch from the closed screen state to the bright screen state.
本领域技术人员可以理解,图9中示出的结构并不构成对终端900的限定,可以包括比图示更多或更少的组件,或者组合某些组件,或者采用不同的组件布置。Those skilled in the art can understand that the structure shown in FIG. 9 does not constitute a limitation on the terminal 900, and may include more or less components than shown, or combine some components, or adopt different component arrangements.
图10是根据一示例性实施例示出的一种服务器的结构示意图,该服务器1000可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上处理器(Central Processing Units,CPU)1001和一个或一个以上的存储器1002,其中,所述存储器1002中存储有至少一条指令,所述至少一条指令由所述处理器1001加载并执行以实现上述各个方法实施例提供的方法。当然,该服务器还可以具有有线或无线网络接口、键盘以及输入输出接口等部件,以便进行输入输出,该服务器还可以包括其他用于实现设备功能的部件,在此不做赘述。FIG. 10 is a schematic structural diagram of a server according to an exemplary embodiment. The server 1000 may vary greatly due to different configurations or performance, and may include one or more processors (Central Processing Units, CPU) 1001 and one or more memories 1002, wherein at least one instruction is stored in the memory 1002, and the at least one instruction is loaded and executed by the processor 1001 to implement the methods provided by the foregoing method embodiments. Of course, the server may also have components such as a wired or wireless network interface, a keyboard, and an input/output interface for input and output, and the server may also include other components for implementing device functions, which will not be described here.
服务器1000可以用于执行上述预览封面生成方法中服务器所执行的步骤。The server 1000 may be configured to perform the steps performed by the server in the above-mentioned method for generating a preview cover page.
在示例性实施例中,还提供了一种电子设备,该电子设备包括:一个或多个处理器;用于存储一个或多个处理器可执行指令的易失性或非易失性存储器;其中,一个或多个处理器被配置为执行指令,实现如下步骤:通过多媒体资源的预览封面生成界面,接收多媒体资源的预览封面生成指令;响应于预览封面生成指令,识别出多媒体资源的背景图像和资源标签;获取目标虚拟元素,目标虚拟元素与资源标签匹配,将目标虚拟元素添加至背景图像,得到多媒体资源的预览封面;在预览界面中,显示预览封面。In an exemplary embodiment, there is also provided an electronic device comprising: one or more processors; volatile or non-volatile memory for storing one or more processor-executable instructions; Wherein, one or more processors are configured to execute the instruction, and realize the following steps: receiving a preview cover generation instruction of the multimedia resource through the preview cover generation interface of the multimedia resource; in response to the preview cover generation instruction, identifying the background image of the multimedia resource and resource label; obtain the target virtual element, match the target virtual element with the resource label, add the target virtual element to the background image, and obtain the preview cover of the multimedia resource; in the preview interface, display the preview cover.
在一些实施例中,一个或多个处理器被配置为执行指令,实现以下步骤:识别出背景 图像中的目标位置;将目标虚拟元素添加至目标位置,得到多媒体资源的预览封面。In some embodiments, the one or more processors are configured to execute instructions to implement the steps of: identifying a target location in the background image; adding the target virtual element to the target location to obtain a preview cover of the multimedia resource.
在一些实施例中,一个或多个处理器被配置为执行指令,实现以下步骤:识别出背景图像中的目标对象的位置,目标对象包括文本内容、人脸或者属于目标类型的物品中的至少一种;基于目标对象的位置,确定目标位置,目标位置与目标对象的位置之间不重叠。In some embodiments, the one or more processors are configured to execute instructions for identifying the location of a target object in the background image, the target object comprising at least one of textual content, a human face, or an item of the target type One; the target position is determined based on the position of the target object, and the target position and the position of the target object do not overlap.
在一些实施例中,一个或多个处理器被配置为执行指令,实现以下步骤:响应于预览封面生成指令,获取多媒体资源对应的封面文本,封面文本用于描述多媒体资源的内容;将封面文本与目标虚拟元素添加至背景图像,得到多媒体资源的预览封面。In some embodiments, one or more processors are configured to execute instructions to implement the following steps: in response to the preview cover generation instruction, obtain cover text corresponding to the multimedia resource, where the cover text is used to describe the content of the multimedia resource; Add the target dummy element to the background image to get the preview cover of the multimedia resource.
在一些实施例中,一个或多个处理器被配置为执行指令,实现以下步骤:获取在预览封面生成界面中输入的封面文本;或者,识别出多媒体资源中每个图像对应的图像内容,基于识别出的图像内容生成封面文本。In some embodiments, one or more processors are configured to execute the instructions to implement the following steps: obtain the cover text input in the preview cover generation interface; or, identify the image content corresponding to each image in the multimedia resource, based on The recognized image content generates cover text.
在一些实施例中,一个或多个处理器被配置为执行指令,实现以下步骤:将目标虚拟元素添加至背景图像中,得到第一图像;将封面文本添加至第一图像中目标虚拟元素的上层,将得到的图像确定为预览封面。In some embodiments, the one or more processors are configured to execute instructions to implement the steps of: adding a target virtual element to a background image to obtain a first image; adding cover text to the first image within the target virtual element On the upper layer, the resulting image is determined as the preview cover.
在一些实施例中,一个或多个处理器被配置为执行指令,实现以下步骤:获取虚拟元素类型,虚拟元素类型与资源标签匹配;基于属于虚拟元素类型的至少一个虚拟元素,确定目标虚拟元素。In some embodiments, the one or more processors are configured to execute instructions to implement the steps of: obtaining a virtual element type that matches a resource tag; and determining a target virtual element based on at least one virtual element belonging to the virtual element type .
在一些实施例中,一个或多个处理器被配置为执行指令,实现以下步骤:基于目标对应关系,获取与资源标签匹配的虚拟元素类型,目标对应关系包括资源标签及对应的虚拟元素类型。In some embodiments, the one or more processors are configured to execute instructions to implement the steps of: obtaining a virtual element type matching the resource tag based on the target correspondence relationship, the target correspondence relationship including the resource tag and the corresponding virtual element type.
在一些实施例中,一个或多个处理器被配置为执行指令,实现以下步骤:识别出背景图像的目标颜色;基于属于虚拟元素类型且颜色与目标颜色不同的至少一个虚拟元素,确定目标虚拟元素。In some embodiments, the one or more processors are configured to execute instructions to perform the steps of: identifying a target color of the background image; determining the target virtual element based on at least one virtual element of a virtual element type and having a color different from the target color element.
在一些实施例中,一个或多个处理器被配置为执行指令,实现以下步骤:获取多媒体资源中的多个图像;从多个图像中,选取满足目标条件的图像作为多媒体资源的背景图像。In some embodiments, the one or more processors are configured to execute instructions to implement the following steps: acquiring multiple images in the multimedia resource; and selecting an image that satisfies the target condition from the multiple images as the background image of the multimedia resource.
在一些实施例中,一个或多个处理器被配置为执行指令,实现以下步骤:通过预览封面设置界面,接收资源获取指令;响应于资源获取指令,从资源库中选取多媒体资源。In some embodiments, the one or more processors are configured to execute instructions to implement the steps of: receiving a resource acquisition instruction through a preview cover setting interface; and selecting a multimedia resource from a resource library in response to the resource acquisition instruction.
在一些实施例中,预览界面包括元素调整区域,元素调整区域包括目标虚拟元素及至少一个备选虚拟元素,至少一个备选虚拟元素与目标虚拟元素不同,一个或多个处理器被配置为执行指令,实现以下步骤:响应于对元素调整区域中任一备选虚拟元素的选取操作,将选取的备选虚拟元素确定为调整后的目标虚拟元素。In some embodiments, the preview interface includes an element adjustment area, the element adjustment area includes a target virtual element and at least one candidate virtual element, the at least one candidate virtual element is different from the target virtual element, and the one or more processors are configured to execute The instruction implements the following steps: in response to a selection operation on any candidate virtual element in the element adjustment area, determining the selected candidate virtual element as the adjusted target virtual element.
在一些实施例中,一个或多个处理器被配置为执行指令,实现以下步骤:响应于对预览界面的目标虚拟元素的移动操作,将移动后目标虚拟元素的位置确定为调整后的目标位置。In some embodiments, the one or more processors are configured to execute instructions to implement the steps of: in response to a moving operation on the target virtual element of the preview interface, determining the position of the moved target virtual element as the adjusted target position .
在一些实施例中,预览界面包括文本调整区域,文本调整区域包括封面文本及至少一个备选封面文本,至少一个备选封面文本与封面文本不同,一个或多个处理器被配置为执行指令,实现以下步骤:响应于对文本调整区域中任一备选封面文本的选取操作,将选取的备选封面文本确定为调整后的封面文本。In some embodiments, the preview interface includes a text adjustment area, the text adjustment area includes cover text and at least one alternative cover text, the at least one alternative cover text is different from the cover text, and the one or more processors are configured to execute the instructions, The following steps are implemented: in response to a selection operation on any candidate cover text in the text adjustment area, determining the selected candidate cover text as the adjusted cover text.
在一些实施例中,背景图像包括多个,目标虚拟元素包括多个,一个或多个处理器被配置为执行指令,实现以下步骤:对于每个目标虚拟元素,将目标虚拟元素分别添加至多个背景图像中的至少一个背景图像,得到多媒体资源的预览封面。In some embodiments, the background image includes a plurality, the target virtual element includes a plurality, and the one or more processors are configured to execute instructions to implement the steps of: for each target virtual element, adding the target virtual element to the plurality of At least one background image in the background images obtains the preview cover of the multimedia resource.
在示例性实施例中,还提供了一种非临时性计算机可读存储介质,当存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行以下步骤:通过多媒体资源的预览封面生成界面,接收多媒体资源的预览封面生成指令;响应于预览封面生成指令,识别出多媒体资源的背景图像和资源标签;获取目标虚拟元素,目标虚拟元素与资源标签匹配,将目标虚拟元素添加至背景图像,得到多媒体资源的预览封面;在预览界面中,显示预览封面。In an exemplary embodiment, a non-transitory computer-readable storage medium is also provided, when the instructions in the storage medium are executed by the processor of the electronic device, the electronic device can perform the following steps: previewing the cover through the multimedia resource Generate an interface, receive the preview cover generation instruction of the multimedia resource; identify the background image and resource label of the multimedia resource in response to the preview cover generation instruction; acquire the target virtual element, match the target virtual element with the resource label, and add the target virtual element to the background image to get the preview cover of the multimedia resource; in the preview interface, the preview cover is displayed.
在一些实施例中,当存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行以下步骤:识别出背景图像中的目标位置;将目标虚拟元素添加至目标位置,得到多媒体资源的预览封面。In some embodiments, when the instructions in the storage medium are executed by the processor of the electronic device, the electronic device can perform the following steps: identifying the target position in the background image; adding the target virtual element to the target position to obtain the multimedia resource preview cover.
在一些实施例中,当存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行以下步骤:识别出背景图像中的目标对象的位置,目标对象包括文本内容、人脸或者属于目标类型的物品中的至少一种;确定目标位置,目标位置与目标对象的位置之间不重叠。In some embodiments, the instructions in the storage medium, when executed by the processor of the electronic device, enable the electronic device to perform the following steps: identify the location of the target object in the background image, the target object includes text content, a human face, or belongs to At least one of the objects of the target type; the target position is determined, and there is no overlap between the target position and the position of the target object.
在一些实施例中,当存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行以下步骤:响应于预览封面生成指令,获取多媒体资源对应的封面文本,封面文本用于描述多媒体资源的内容;将封面文本与目标虚拟元素添加至背景图像,得到多媒体资源的预览封面。In some embodiments, when the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is enabled to perform the following steps: in response to the preview cover generation instruction, obtain the cover text corresponding to the multimedia resource, where the cover text is used to describe the multimedia The content of the resource; add the cover text and target virtual elements to the background image to get the preview cover of the multimedia resource.
在一些实施例中,当存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行以下步骤:获取在预览封面生成界面中输入的封面文本;或者,识别出多媒体资源 中每个图像对应的图像内容,基于识别出的图像内容生成封面文本。In some embodiments, when the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is enabled to perform the following steps: obtain the cover text entered in the preview cover generation interface; or, identify each of the multimedia resources The image content corresponding to the image, and the cover text is generated based on the recognized image content.
在一些实施例中,当存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行以下步骤:将目标虚拟元素添加至背景图像中,得到第一图像;将封面文本添加至第一图像中目标虚拟元素的上层,将得到的图像确定为预览封面。In some embodiments, when the instructions in the storage medium are executed by the processor of the electronic device, the electronic device can perform the following steps: adding the target virtual element to the background image to obtain the first image; adding the cover text to the first image The upper layer of the target virtual element in an image, and the obtained image is determined as the preview cover.
在一些实施例中,当存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行以下步骤:获取虚拟元素类型,虚拟元素类型与资源标签匹配,基于属于虚拟元素类型的至少一个虚拟元素,确定目标虚拟元素。In some embodiments, the instructions in the storage medium, when executed by the processor of the electronic device, enable the electronic device to perform the steps of: obtaining a virtual element type that matches the resource tag, based on at least one belonging to the virtual element type Dummy element, which determines the target dummy element.
在一些实施例中,当存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行以下步骤:基于目标对应关系,获取与资源标签匹配的虚拟元素类型,目标对应关系包括资源标签及对应的虚拟元素类型。In some embodiments, when the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is enabled to perform the following steps: acquiring the virtual element type matching the resource tag based on the target correspondence, where the target correspondence includes the resource tag and the corresponding virtual element type.
在一些实施例中,当存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行以下步骤:识别出背景图像的目标颜色;基于属于虚拟元素类型且颜色与目标颜色不同的至少一个虚拟元素,确定目标虚拟元素。In some embodiments, the instructions in the storage medium, when executed by the processor of the electronic device, enable the electronic device to perform the steps of: identifying a target color of the background image; A dummy element that identifies the target dummy element.
在一些实施例中,当存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行以下步骤:获取多媒体资源中的多个图像;从多个图像中,选取满足目标条件的图像作为多媒体资源的背景图像。In some embodiments, when the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is enabled to perform the following steps: acquiring multiple images in the multimedia resource; selecting an image that satisfies the target condition from the multiple images As a background image for multimedia resources.
在一些实施例中,当存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行以下步骤:通过预览封面设置界面,接收资源获取指令;响应于资源获取指令,从资源库中选取多媒体资源。In some embodiments, when the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is enabled to perform the following steps: receiving a resource acquisition instruction through the preview cover setting interface; responding to the resource acquisition instruction, from the resource library Select multimedia resources.
在一些实施例中,预览界面包括元素调整区域,元素调整区域包括目标虚拟元素及至少一个备选虚拟元素,至少一个备选虚拟元素与目标虚拟元素不同,当存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行以下步骤:响应于对元素调整区域中任一备选虚拟元素的选取操作,将选取的备选虚拟元素确定为调整后的目标虚拟元素。In some embodiments, the preview interface includes an element adjustment area, the element adjustment area includes a target virtual element and at least one candidate virtual element, and the at least one candidate virtual element is different from the target virtual element. When executed by the processor, the electronic device can perform the following steps: in response to a selection operation on any candidate virtual element in the element adjustment area, determining the selected candidate virtual element as the adjusted target virtual element.
在一些实施例中,当存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行以下步骤:响应于对预览界面的目标虚拟元素的移动操作,将移动后目标虚拟元素的位置确定为调整后的目标位置。In some embodiments, when the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is enabled to perform the following steps: in response to the moving operation on the target virtual element of the preview interface, change the position of the moved target virtual element Determined as the adjusted target position.
在一些实施例中,预览界面包括文本调整区域,文本调整区域包括封面文本及至少一个备选封面文本,至少一个备选封面文本与封面文本不同,当存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行以下步骤:响应于对文本调整区域中任一备选封面文本的选取操作,将选取的备选封面文本确定为调整后的封面文本。In some embodiments, the preview interface includes a text adjustment area, the text adjustment area includes cover text and at least one alternative cover text, and the at least one alternative cover text is different from the cover text. When the instructions in the storage medium are processed by the processor of the electronic device When executed, the electronic device is enabled to perform the following steps: in response to a selection operation on any candidate cover text in the text adjustment area, determining the selected candidate cover text as the adjusted cover text.
在一些实施例中,背景图像包括多个,目标虚拟元素包括多个,当存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行以下步骤:In some embodiments, the background image includes multiple and the target virtual element includes multiple. When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device can perform the following steps:
对于每个目标虚拟元素,将目标虚拟元素分别添加至多个背景图像中的至少一个背景图像,得到多媒体资源的预览封面。For each target virtual element, the target virtual element is respectively added to at least one background image among the plurality of background images to obtain the preview cover of the multimedia resource.
在示例性实施例中,还提供了一种计算机程序产品,当计算机程序产品中的指令由电子设备的处理器执行时,使得电子设备能够执行上述预览封面生成方法中终端或服务器所执行的步骤。In an exemplary embodiment, a computer program product is also provided, when the instructions in the computer program product are executed by the processor of the electronic device, the electronic device can perform the steps performed by the terminal or the server in the above-mentioned preview cover generation method .
本公开所有实施例均可以单独被执行,也可以与其他实施例相结合被执行,均视为本公开要求的保护范围。All the embodiments of the present disclosure can be implemented independently or in combination with other embodiments, which are all regarded as the protection scope required by the present disclosure.

Claims (32)

  1. 一种预览封面生成方法,包括:A method for generating a preview cover, including:
    通过多媒体资源的预览封面生成界面,接收所述多媒体资源的预览封面生成指令;Receive a preview cover generation instruction of the multimedia resource through the preview cover generation interface of the multimedia resource;
    响应于所述预览封面生成指令,识别出所述多媒体资源的背景图像和资源标签;In response to the preview cover generation instruction, identifying the background image and resource label of the multimedia resource;
    获取目标虚拟元素,所述目标虚拟元素与所述资源标签匹配,将所述目标虚拟元素添加至所述背景图像,得到所述多媒体资源的预览封面;Acquiring a target virtual element that matches the resource tag, adding the target virtual element to the background image, and obtaining a preview cover of the multimedia resource;
    在预览界面中,显示所述预览封面。In the preview interface, the preview cover is displayed.
  2. 根据权利要求1所述的方法,其中,所述方法还包括:The method of claim 1, wherein the method further comprises:
    识别出所述背景图像中的目标位置;identifying the target location in the background image;
    所述将所述目标虚拟元素添加至所述背景图像,得到所述多媒体资源的预览封面,包括:The adding the target virtual element to the background image to obtain the preview cover of the multimedia resource includes:
    将所述目标虚拟元素添加至所述目标位置,得到所述多媒体资源的预览封面。The target virtual element is added to the target position to obtain the preview cover of the multimedia resource.
  3. 根据权利要求2所述的方法,其中,所述识别出所述背景图像中的目标位置,包括:The method according to claim 2, wherein the identifying the target position in the background image comprises:
    识别出所述背景图像中的目标对象的位置,所述目标对象包括文本内容、人脸或者属于目标类型的物品中的至少一种;Identifying the position of the target object in the background image, the target object includes at least one of text content, human face, or objects belonging to the target type;
    确定所述目标位置,所述目标位置与所述目标对象的位置之间不重叠。The target location is determined, and there is no overlap between the target location and the location of the target object.
  4. 根据权利要求1所述的方法,其中,所述方法还包括:The method of claim 1, wherein the method further comprises:
    响应于所述预览封面生成指令,获取所述多媒体资源对应的封面文本,所述封面文本用于描述所述多媒体资源的内容;In response to the preview cover generation instruction, obtain cover text corresponding to the multimedia resource, where the cover text is used to describe the content of the multimedia resource;
    所述将所述目标虚拟元素添加至所述背景图像,得到所述多媒体资源的预览封面,包括:The adding the target virtual element to the background image to obtain the preview cover of the multimedia resource includes:
    将所述封面文本与所述目标虚拟元素添加至所述背景图像,得到所述多媒体资源的预览封面。The cover text and the target virtual element are added to the background image to obtain the preview cover of the multimedia resource.
  5. 根据权利要求4所述的方法,其中,所述获取所述多媒体资源对应的封面文本,包括:The method according to claim 4, wherein the acquiring the cover text corresponding to the multimedia resource comprises:
    获取在所述预览封面生成界面中输入的所述封面文本;或者,Obtain the cover text input in the preview cover generation interface; or,
    识别出所述多媒体资源中每个图像对应的图像内容,基于识别出的图像内容生成所述封面文本。Image content corresponding to each image in the multimedia resource is identified, and the cover text is generated based on the identified image content.
  6. 根据权利要求4所述的方法,其中,所述将所述封面文本与所述目标虚拟元素添加至所述背景图像,得到所述多媒体资源的预览封面,包括:The method according to claim 4, wherein the adding the cover text and the target virtual element to the background image to obtain the preview cover of the multimedia resource comprises:
    将所述目标虚拟元素添加至所述背景图像中,得到第一图像;adding the target virtual element to the background image to obtain a first image;
    将所述封面文本添加至所述第一图像中所述目标虚拟元素的上层,得到所述预览封面。The cover text is added to the upper layer of the target virtual element in the first image to obtain the preview cover.
  7. 根据权利要求1所述的方法,其中,所述获取目标虚拟元素,包括:The method according to claim 1, wherein the acquiring the target virtual element comprises:
    获取虚拟元素类型,所述虚拟元素类型与所述资源标签匹配;Obtain a virtual element type, where the virtual element type matches the resource tag;
    基于属于所述虚拟元素类型的至少一个虚拟元素,确定所述目标虚拟元素。The target virtual element is determined based on at least one virtual element belonging to the virtual element type.
  8. 根据权利要求7所述的方法,其中,所述获取虚拟元素类型,包括:The method according to claim 7, wherein the obtaining the virtual element type comprises:
    基于目标对应关系,获取与所述资源标签匹配的虚拟元素类型,所述目标对应关系包括资源标签及对应的虚拟元素类型。The virtual element type matching the resource tag is acquired based on the target correspondence relationship, where the target correspondence relationship includes the resource label and the corresponding virtual element type.
  9. 根据权利要求7所述的方法,其中,所述基于属于所述虚拟元素类型的至少一个虚拟元素,确定目标虚拟元素,包括:The method of claim 7, wherein the determining a target virtual element based on at least one virtual element belonging to the virtual element type comprises:
    识别出所述背景图像的目标颜色;identifying the target color of the background image;
    基于属于所述虚拟元素类型且颜色与所述目标颜色不同的至少一个虚拟元素,确定所述目标虚拟元素。The target virtual element is determined based on at least one virtual element belonging to the virtual element type and having a color different from the target color.
  10. 根据权利要求1所述的方法,其中,识别出所述多媒体资源的背景图像,包括:The method of claim 1, wherein identifying the background image of the multimedia resource comprises:
    获取所述多媒体资源中的多个图像;acquiring a plurality of images in the multimedia resource;
    从所述多个图像中,选取满足目标条件的图像作为所述多媒体资源的背景图像。From the plurality of images, an image satisfying the target condition is selected as the background image of the multimedia resource.
  11. 根据权利要求1所述的方法,其中,所述方法还包括:The method of claim 1, wherein the method further comprises:
    通过预览封面设置界面,接收资源获取指令;Receive resource acquisition instructions through the preview cover setting interface;
    响应于所述资源获取指令,从资源库中选取所述多媒体资源。In response to the resource acquisition instruction, the multimedia resource is selected from the resource library.
  12. 根据权利要求1所述的方法,其中,所述预览界面包括元素调整区域,所述元素调整区域包括所述目标虚拟元素及至少一个备选虚拟元素,所述至少一个备选虚拟元素与所述目标虚拟元素不同,所述方法还包括:The method according to claim 1, wherein the preview interface includes an element adjustment area, the element adjustment area includes the target virtual element and at least one candidate virtual element, the at least one candidate virtual element and the The target virtual elements are different, and the method further includes:
    响应于对所述元素调整区域中任一备选虚拟元素的选取操作,将选取的备选虚拟元素确定为调整后的目标虚拟元素。In response to a selection operation on any candidate virtual element in the element adjustment area, the selected candidate virtual element is determined as the adjusted target virtual element.
  13. 根据权利要求2所述的方法,其中,所述方法还包括:The method of claim 2, wherein the method further comprises:
    响应于对所述预览界面的目标虚拟元素的移动操作,将移动后所述目标虚拟元素的位置确定为调整后的目标位置。In response to the moving operation on the target virtual element of the preview interface, the position of the target virtual element after the movement is determined as the adjusted target position.
  14. 根据权利要求4所述的方法,其中,所述预览界面包括文本调整区域,所述文本调整区域包括所述封面文本及至少一个备选封面文本,所述至少一个备选封面文本与所述封面文本不同,所述方法还包括:The method according to claim 4, wherein the preview interface includes a text adjustment area, the text adjustment area includes the cover text and at least one alternative cover text, the at least one alternative cover text and the cover different texts, the method further includes:
    响应于对所述文本调整区域中任一备选封面文本的选取操作,将选取的备选封面文本确定为调整后的封面文本。In response to a selection operation on any candidate cover text in the text adjustment area, the selected candidate cover text is determined as the adjusted cover text.
  15. 根据权利要求1-14任一项所述的方法,其中,所述背景图像包括多个,所述目标虚拟元素包括多个,所述将所述目标虚拟元素添加至所述背景图像,得到所述多媒体资源的预览封面,包括:The method according to any one of claims 1-14, wherein the background image includes a plurality of target virtual elements, and the target virtual element is added to the background image to obtain the target virtual element. Preview covers for the multimedia resources described above, including:
    对于每个目标虚拟元素,将所述目标虚拟元素分别添加至多个背景图像中的至少一个背景图像,得到所述多媒体资源的预览封面。For each target virtual element, the target virtual element is respectively added to at least one background image among the plurality of background images to obtain the preview cover of the multimedia resource.
  16. 一种预览封面生成装置,所述装置包括:An apparatus for generating a preview cover, the apparatus comprising:
    生成指令接收单元,被配置为通过多媒体资源的预览封面生成界面,接收所述多媒体资源的预览封面生成指令;a generation instruction receiving unit, configured to receive the preview cover generation instruction of the multimedia resource through the preview cover generation interface of the multimedia resource;
    识别处理单元,被配置为响应于所述预览封面生成指令,识别出所述多媒体资源的背景图像和资源标签;an identification processing unit, configured to identify the background image and the resource label of the multimedia resource in response to the preview cover generation instruction;
    预览封面获取单元,被配置为获取目标虚拟元素,将所述目标虚拟元素添加至所述背景图像,得到所述多媒体资源的预览封面,所述目标虚拟元素与所述资源标签匹配;a preview cover acquiring unit, configured to acquire a target virtual element, add the target virtual element to the background image, and obtain a preview cover of the multimedia resource, where the target virtual element matches the resource tag;
    预览封面显示单元,被配置为在预览界面中,显示所述预览封面。The preview cover display unit is configured to display the preview cover in the preview interface.
  17. 一种电子设备,其特征在于,所述电子设备包括:An electronic device, characterized in that the electronic device comprises:
    一个或多个处理器;one or more processors;
    用于存储所述一个或多个处理器可执行指令的易失性或非易失性存储器;volatile or nonvolatile memory for storing the one or more processor-executable instructions;
    其中,所述一个或多个处理器被配置为执行所述指令,实现以下步骤:wherein the one or more processors are configured to execute the instructions to implement the following steps:
    通过多媒体资源的预览封面生成界面,接收所述多媒体资源的预览封面生成指令;Receive a preview cover generation instruction of the multimedia resource through the preview cover generation interface of the multimedia resource;
    响应于所述预览封面生成指令,识别出所述多媒体资源的背景图像和资源标签;In response to the preview cover generation instruction, identifying the background image and resource label of the multimedia resource;
    获取目标虚拟元素,所述目标虚拟元素与所述资源标签匹配,将所述目标虚拟元素添加至所述背景图像,得到所述多媒体资源的预览封面;Acquiring a target virtual element that matches the resource tag, adding the target virtual element to the background image, and obtaining a preview cover of the multimedia resource;
    在预览界面中,显示所述预览封面。In the preview interface, the preview cover is displayed.
  18. 根据权利要求17所述的电子设备,其中,所述一个或多个处理器被配置为执行所述指令,实现以下步骤:18. The electronic device of claim 17, wherein the one or more processors are configured to execute the instructions to:
    识别出所述背景图像中的目标位置;identifying the target location in the background image;
    将所述目标虚拟元素添加至所述目标位置,得到所述多媒体资源的预览封面。The target virtual element is added to the target position to obtain the preview cover of the multimedia resource.
  19. 根据权利要求18所述的电子设备,其中,所述一个或多个处理器被配置为执行所述指令,实现以下步骤:19. The electronic device of claim 18, wherein the one or more processors are configured to execute the instructions to:
    识别出所述背景图像中的目标对象的位置,所述目标对象包括文本内容、人脸或者属于目标类型的物品中的至少一种;Identifying the position of the target object in the background image, the target object includes at least one of text content, human face, or objects belonging to the target type;
    确定所述目标位置,所述目标位置与所述目标对象的位置之间不重叠。The target location is determined, and there is no overlap between the target location and the location of the target object.
  20. 根据权利要求18所述的电子设备,其中,所述一个或多个处理器被配置为执行所述指令,实现以下步骤:19. The electronic device of claim 18, wherein the one or more processors are configured to execute the instructions to:
    响应于所述预览封面生成指令,获取所述多媒体资源对应的封面文本,所述封面文本用于描述所述多媒体资源的内容;In response to the preview cover generation instruction, obtain cover text corresponding to the multimedia resource, where the cover text is used to describe the content of the multimedia resource;
    将所述封面文本与所述目标虚拟元素添加至所述背景图像,得到所述多媒体资源的预览封面。The cover text and the target virtual element are added to the background image to obtain the preview cover of the multimedia resource.
  21. 根据权利要求20所述的电子设备,其中,所述一个或多个处理器被配置为执行所述指令,实现以下步骤:21. The electronic device of claim 20, wherein the one or more processors are configured to execute the instructions to:
    获取在所述预览封面生成界面中输入的所述封面文本;或者,Obtain the cover text input in the preview cover generation interface; or,
    识别出所述多媒体资源中每个图像对应的图像内容,基于识别出的图像内容生成所述封面文本。Image content corresponding to each image in the multimedia resource is identified, and the cover text is generated based on the identified image content.
  22. 根据权利要求20所述的电子设备,其中,所述一个或多个处理器被配置为执行所述指令,实现以下步骤:21. The electronic device of claim 20, wherein the one or more processors are configured to execute the instructions to:
    将所述目标虚拟元素添加至所述背景图像中,得到第一图像;adding the target virtual element to the background image to obtain a first image;
    将所述封面文本添加至所述第一图像中所述目标虚拟元素的上层,将得到的图像确定为所述预览封面。The cover text is added to the upper layer of the target virtual element in the first image, and the obtained image is determined as the preview cover.
  23. 根据权利要求17所述的电子设备,其中,所述一个或多个处理器被配置为执行所述指令,实现以下步骤:18. The electronic device of claim 17, wherein the one or more processors are configured to execute the instructions to:
    获取虚拟元素类型,所述虚拟元素类型与所述资源标签匹配,基于属于所述虚拟元素类型的至少一个虚拟元素,确定所述目标虚拟元素。Obtaining a virtual element type that matches the resource tag, and determining the target virtual element based on at least one virtual element belonging to the virtual element type.
  24. 根据权利要求23所述的电子设备,其中,所述一个或多个处理器被配置为执行所述指令,实现以下步骤:24. The electronic device of claim 23, wherein the one or more processors are configured to execute the instructions to:
    基于目标对应关系,获取与所述资源标签匹配的虚拟元素类型,所述目标对应关系包括资源标签及对应的虚拟元素类型。The virtual element type matching the resource tag is acquired based on the target correspondence relationship, where the target correspondence relationship includes the resource label and the corresponding virtual element type.
  25. 根据权利要求23所述的电子设备,其中,所述一个或多个处理器被配置为执行所述指令,实现以下步骤:24. The electronic device of claim 23, wherein the one or more processors are configured to execute the instructions to:
    识别出所述背景图像的目标颜色;identifying the target color of the background image;
    基于属于所述虚拟元素类型且颜色与所述目标颜色不同的至少一个虚拟元素,确定所述目标虚拟元素。The target virtual element is determined based on at least one virtual element belonging to the virtual element type and having a color different from the target color.
  26. 根据权利要求17所述的电子设备,其中,所述一个或多个处理器被配置为执行所述指令,实现以下步骤:18. The electronic device of claim 17, wherein the one or more processors are configured to execute the instructions to:
    获取所述多媒体资源中的多个图像;acquiring a plurality of images in the multimedia resource;
    从所述多个图像中,选取满足目标条件的图像作为所述多媒体资源的背景图像。From the plurality of images, an image satisfying the target condition is selected as the background image of the multimedia resource.
  27. 根据权利要求17所述的电子设备,其中,所述一个或多个处理器被配置为执行所 述指令,实现以下步骤:The electronic device of claim 17, wherein the one or more processors are configured to execute the instructions to perform the steps of:
    通过预览封面设置界面,接收资源获取指令;Receive resource acquisition instructions through the preview cover setting interface;
    响应于所述资源获取指令,从资源库中选取所述多媒体资源。In response to the resource acquisition instruction, the multimedia resource is selected from the resource library.
  28. 根据权利要求17所述的电子设备,其中,所述预览界面包括元素调整区域,所述元素调整区域包括所述目标虚拟元素及至少一个备选虚拟元素,所述至少一个备选虚拟元素与所述目标虚拟元素不同,所述一个或多个处理器被配置为执行所述指令,实现以下步骤:The electronic device according to claim 17, wherein the preview interface includes an element adjustment area, and the element adjustment area includes the target virtual element and at least one candidate virtual element, the at least one candidate virtual element being the same as the selected virtual element. The target virtual element is different, and the one or more processors are configured to execute the instructions, implementing the following steps:
    响应于对所述元素调整区域中任一备选虚拟元素的选取操作,将选取的备选虚拟元素确定为调整后的目标虚拟元素。In response to a selection operation on any candidate virtual element in the element adjustment area, the selected candidate virtual element is determined as the adjusted target virtual element.
  29. 根据权利要求18所述的电子设备,其中,所述一个或多个处理器被配置为执行所述指令,实现以下步骤:19. The electronic device of claim 18, wherein the one or more processors are configured to execute the instructions to:
    响应于对所述预览界面的目标虚拟元素的移动操作,将移动后的位置确定为调整后的目标位置。In response to the moving operation on the target virtual element of the preview interface, the moved position is determined as the adjusted target position.
  30. 根据权利要求20所述的电子设备,其中,所述预览界面包括文本调整区域,所述文本调整区域包括所述封面文本及至少一个备选封面文本,所述至少一个备选封面文本与所述封面文本不同,所述一个或多个处理器被配置为执行所述指令,实现以下步骤:The electronic device according to claim 20, wherein the preview interface includes a text adjustment area, the text adjustment area includes the cover text and at least one alternative cover text, the at least one alternative cover text and the Unlike cover text, the one or more processors are configured to execute the instructions to perform the following steps:
    响应于对所述文本调整区域中任一备选封面文本的选取操作,将选取的备选封面文本确定为调整后的封面文本。In response to a selection operation on any candidate cover text in the text adjustment area, the selected candidate cover text is determined as the adjusted cover text.
  31. 根据权利要求17-30任一项所述的电子设备,其中,所述背景图像包括多个,所述目标虚拟元素包括多个,所述一个或多个处理器被配置为执行所述指令,实现以下步骤:The electronic device of any one of claims 17-30, wherein the background image includes a plurality, the target virtual element includes a plurality, and the one or more processors are configured to execute the instructions, Implement the following steps:
    对于每个目标虚拟元素,将所述目标虚拟元素分别添加至多个背景图像中的至少一个背景图像,得到所述多媒体资源的预览封面。For each target virtual element, the target virtual element is respectively added to at least one background image among the plurality of background images to obtain the preview cover of the multimedia resource.
  32. 一种非临时性计算机可读存储介质,当所述存储介质中的指令由电子设备的处理器执行时,使得所述电子设备能够执行以下步骤:A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of an electronic device, enable the electronic device to perform the following steps:
    通过多媒体资源的预览封面生成界面,接收所述多媒体资源的预览封面生成指令;Receive a preview cover generation instruction of the multimedia resource through the preview cover generation interface of the multimedia resource;
    响应于所述预览封面生成指令,识别出所述多媒体资源的背景图像和资源标签;In response to the preview cover generation instruction, identifying the background image and resource label of the multimedia resource;
    获取目标虚拟元素,所述目标虚拟元素与所述资源标签匹配,将所述目标虚拟元素添加至所述背景图像,得到所述多媒体资源的预览封面;Acquiring a target virtual element that matches the resource tag, adding the target virtual element to the background image, and obtaining a preview cover of the multimedia resource;
    在预览界面中,显示所述预览封面。In the preview interface, the preview cover is displayed.
PCT/CN2021/107089 2020-08-07 2021-07-19 Preview cover generation method and electronic device WO2022028241A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010789072.4 2020-08-07
CN202010789072.4A CN111880888B (en) 2020-08-07 2020-08-07 Preview cover generation method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2022028241A1 true WO2022028241A1 (en) 2022-02-10

Family

ID=73211089

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/107089 WO2022028241A1 (en) 2020-08-07 2021-07-19 Preview cover generation method and electronic device

Country Status (2)

Country Link
CN (1) CN111880888B (en)
WO (1) WO2022028241A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110490954B (en) * 2019-08-07 2024-01-02 北京达佳互联信息技术有限公司 Cover generation method and device, electronic equipment and storage medium
CN111880888B (en) * 2020-08-07 2022-12-27 北京达佳互联信息技术有限公司 Preview cover generation method and device, electronic equipment and storage medium
CN112363660B (en) * 2020-11-09 2023-03-24 北京达佳互联信息技术有限公司 Method and device for determining cover image, electronic equipment and storage medium
CN114779999A (en) * 2022-04-27 2022-07-22 北京达佳互联信息技术有限公司 Information display method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160345052A1 (en) * 2015-05-19 2016-11-24 Lemobile Information Technology (Beijing) Co., Ltd. Method and device for previewing video files
CN108009147A (en) * 2017-12-26 2018-05-08 掌阅科技股份有限公司 Electronics book cover generation method, electronic equipment and computer-readable storage medium
CN108597003A (en) * 2018-04-20 2018-09-28 腾讯科技(深圳)有限公司 A kind of article cover generation method, device, processing server and storage medium
CN110390025A (en) * 2019-07-24 2019-10-29 百度在线网络技术(北京)有限公司 Cover figure determines method, apparatus, equipment and computer readable storage medium
CN111880888A (en) * 2020-08-07 2020-11-03 北京达佳互联信息技术有限公司 Preview cover generation method and device, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160345052A1 (en) * 2015-05-19 2016-11-24 Lemobile Information Technology (Beijing) Co., Ltd. Method and device for previewing video files
CN108009147A (en) * 2017-12-26 2018-05-08 掌阅科技股份有限公司 Electronics book cover generation method, electronic equipment and computer-readable storage medium
CN108597003A (en) * 2018-04-20 2018-09-28 腾讯科技(深圳)有限公司 A kind of article cover generation method, device, processing server and storage medium
CN110390025A (en) * 2019-07-24 2019-10-29 百度在线网络技术(北京)有限公司 Cover figure determines method, apparatus, equipment and computer readable storage medium
CN111880888A (en) * 2020-08-07 2020-11-03 北京达佳互联信息技术有限公司 Preview cover generation method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111880888A (en) 2020-11-03
CN111880888B (en) 2022-12-27

Similar Documents

Publication Publication Date Title
CN112162671B (en) Live broadcast data processing method and device, electronic equipment and storage medium
WO2022121358A1 (en) Information display method and apparatus
CN109982102B (en) Interface display method and system for live broadcast room, live broadcast server and anchor terminal
WO2022028241A1 (en) Preview cover generation method and electronic device
CN110865754B (en) Information display method and device and terminal
CN109874312B (en) Method and device for playing audio data
CN108737897B (en) Video playing method, device, equipment and storage medium
CN109327608B (en) Song sharing method, terminal, server and system
CN112492097B (en) Audio playing method, device, terminal and computer readable storage medium
WO2022134632A1 (en) Work processing method and apparatus
WO2023000677A1 (en) Content item display method and apparatus
CN109922356B (en) Video recommendation method and device and computer-readable storage medium
WO2022048398A1 (en) Multimedia data photographing method and terminal
CN109144346B (en) Song sharing method and device and storage medium
CN111083526B (en) Video transition method and device, computer equipment and storage medium
CN110139143B (en) Virtual article display method, device, computer equipment and storage medium
WO2020253295A1 (en) Control method and apparatus, and terminal device
CN114115769A (en) Display method and electronic equipment
WO2022088765A1 (en) Interaction processing method and computer device
CN113411680A (en) Multimedia resource playing method, device, terminal and storage medium
WO2022252563A1 (en) Information display method and electronic device
CN110209316B (en) Category label display method, device, terminal and storage medium
WO2022083257A1 (en) Multimedia resource generation method and terminal
CN109819314B (en) Audio and video processing method and device, terminal and storage medium
CN111539795A (en) Image processing method, image processing device, electronic equipment and computer readable storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21852384

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21852384

Country of ref document: EP

Kind code of ref document: A1