CN112308864A - Image processing method and device, electronic equipment and storage medium - Google Patents

Image processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112308864A
CN112308864A CN202011167291.5A CN202011167291A CN112308864A CN 112308864 A CN112308864 A CN 112308864A CN 202011167291 A CN202011167291 A CN 202011167291A CN 112308864 A CN112308864 A CN 112308864A
Authority
CN
China
Prior art keywords
multimedia
images
image
multimedia file
cover
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202011167291.5A
Other languages
Chinese (zh)
Inventor
任家锐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
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 Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202011167291.5A priority Critical patent/CN112308864A/en
Publication of CN112308864A publication Critical patent/CN112308864A/en
Priority to PCT/CN2021/110938 priority patent/WO2022088823A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/168Details of user interfaces specifically adapted to file systems, e.g. browsing and visualisation, 2d or 3d GUIs
    • 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
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/60Rotation of whole images or parts thereof

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • User Interface Of Digital Computer (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The present disclosure relates to the field of computer technologies, and in particular, to an image processing method, an image processing apparatus, an electronic device, and a storage medium, for efficiently and accurately setting covers for a plurality of multimedia files, where the method includes: after the intelligent terminal determines a multimedia file set to be set and acquires a target cover image, the target cover image is segmented according to the number of multimedia files contained in the multimedia file set to be set to obtain a plurality of sub-images, and then the plurality of sub-images are respectively set as cover images of all multimedia files in the multimedia file set to be set. Like this, alright once only set up front cover image for a plurality of multimedia files in batches to effectively promoted the execution efficiency who sets up front cover image, not increased simultaneously and realized the complexity, thereby promote user experience.

Description

Image processing method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to an image processing method and apparatus, an electronic device, and a storage medium.
Background
With the popularization of multimedia technology, shooting multimedia files such as short videos, audios and the like through an intelligent terminal has gradually become an activity of people becoming daily. Accordingly, when editing and publishing the multimedia file, the terminal may set a cover image for the multimedia file in order to better express the main content of the multimedia file and obtain higher exposure and click rate.
In the prior art, when a cover image is set for a multimedia file, an intelligent terminal usually uses a frame image of a certain video frame in the multimedia file as the cover image of the multimedia file.
However, when the cover image is set in the above manner, the cover image can be set only for a single multimedia file, and when the cover image needs to be set for a plurality of multimedia files (for example, a series of multimedia files with relevance), the cover image needs to be set one by one, and the same operation needs to be repeatedly executed.
Disclosure of Invention
The embodiment of the disclosure provides an image processing method and device, an electronic device and a storage medium, which are used for solving the problem that cover images of a plurality of multimedia files cannot be set simultaneously.
The specific technical scheme provided by the embodiment of the disclosure is as follows:
in a first aspect, an image processing method includes:
responding to a cover image setting instruction, and determining a multimedia file set to be set;
responding to a cover selection instruction, and acquiring a target cover image;
dividing the target cover image according to the number of the multimedia files contained in the multimedia file set to be set to obtain a plurality of sub-images;
and setting the plurality of sub-images as cover images of all multimedia files in the multimedia file set to be set respectively.
Optionally, in response to the cover image setting instruction, determining a set of multimedia files to be set includes:
determining a plurality of multimedia files in response to a cover image setting instruction;
responding to the click operation, and taking the multimedia file corresponding to the click position as a multimedia file to be set every time the click operation is responded; or,
responding to the click operation, and taking the multimedia file corresponding to the click position and other multimedia files with the position relation with the multimedia file meeting the specified conditions as the multimedia files to be set once each response.
Optionally, acquiring an image of the cover of the object includes:
selecting a specified image from a folder in which an image file is stored as the target cover image; or,
and selecting a frame image corresponding to the specified video frame in the specified video file from the folder in which the video file is stored as the target cover image.
Optionally, after acquiring the target cover image, before performing a segmentation operation on the target cover image, the method further includes:
in response to an adjustment instruction, performing any one or any combination of adjustment operations on the target cover image, wherein the adjustment operations include any one or any combination of the following:
moving the position of the target cover image; or,
scaling the target cover image; or,
rotating the target cover image; or,
adding a filter effect to the target cover image; or
And adding a character effect to the target cover image.
Optionally, the setting the plurality of sub-images as cover images of each multimedia file in the set of multimedia files to be set includes:
and sequentially setting a plurality of obtained sub-images as cover images of the multimedia files according to the existing sequence of the multimedia files contained in the multimedia file set to be set.
Optionally, if each multimedia file is a file fragment obtained by segmenting a target multimedia file, and the existing sequence of each multimedia file is the time sequence corresponding to each file fragment, sequentially setting a plurality of obtained sub-images as the cover image of each multimedia file, including:
and sequentially setting the obtained sub-images as cover images of the file segments, so that the set cover images are spliced into an integral cover image corresponding to the target multimedia file according to the time sequence.
Optionally, the setting the plurality of sub-images as cover images of each multimedia file in the set of multimedia files to be set includes:
responding to the click operation of a user, and sequentially adjusting each multimedia file contained in the multimedia file set to be set;
and sequentially setting a plurality of obtained sub-images as cover images of the multimedia files according to the adjusted sequence of the multimedia files contained in the multimedia file set to be set.
Optionally, after the setting of the plurality of sub-images as cover images of each multimedia file in the set of multimedia files to be set, the method further includes:
and when the set time length of the cover image of each multimedia file reaches a set threshold value, restoring the original cover image of each multimedia file.
In a second aspect, an image processing apparatus includes:
the first selecting unit is used for responding to a cover image setting instruction and determining a multimedia file set to be set;
the second selection unit is used for responding to the selection instruction and acquiring the target cover image;
the dividing unit is used for dividing the target cover image according to the number of the multimedia files contained in the multimedia file set to be set to obtain a plurality of sub-images;
and the setting unit is used for respectively setting the plurality of sub-images as cover images of all the multimedia files in the multimedia file set to be set.
Optionally, the first selecting unit is configured to:
determining a plurality of multimedia files in response to a cover image setting instruction;
responding to the click operation, and taking the multimedia file corresponding to the click position as a multimedia file to be set every time the click operation is responded; or,
responding to the click operation, and taking the multimedia file corresponding to the click position and other multimedia files with the position relation with the multimedia file meeting the specified conditions as the multimedia files to be set once each response.
Optionally, the second selecting unit is configured to:
selecting a specified image from a folder in which an image file is stored as the target cover image; or,
and selecting a frame image corresponding to the specified video frame in the specified video file from the folder in which the video file is stored as the target cover image.
Optionally, after acquiring the target cover image, before performing a segmentation operation on the target cover image, the segmentation unit is further configured to:
in response to an adjustment instruction, performing any one or any combination of adjustment operations on the target cover image, wherein the adjustment operations include any one or any combination of the following:
moving the position of the target cover image; or,
scaling the target cover image; or,
rotating the target cover image; or,
adding a filter effect to the target cover image; or
And adding a character effect to the target cover image.
Optionally, the setting unit is configured to:
and sequentially setting a plurality of obtained sub-images as cover images of the multimedia files according to the existing sequence of the multimedia files contained in the multimedia file set to be set.
Optionally, if each multimedia file is a file fragment obtained by segmenting a target multimedia file, and the existing sequence of each multimedia file is a time sequence corresponding to each file fragment, the setting unit is configured to:
and sequentially setting the obtained sub-images as cover images of the file segments, so that the set cover images are spliced into an integral cover image corresponding to the target multimedia file according to the time sequence.
Optionally, the setting unit is configured to:
responding to the click operation of a user, and sequentially adjusting each multimedia file contained in the multimedia file set to be set;
and sequentially setting a plurality of obtained sub-images as cover images of the multimedia files according to the adjusted sequence of the multimedia files contained in the multimedia file set to be set.
Optionally, after the plurality of sub-images are respectively set as cover images of the multimedia files in the set of multimedia files to be set, the setting unit is further configured to:
and when the set time length of the cover image of each multimedia file reaches a set threshold value, restoring the original cover image of each multimedia file.
In a third aspect, a computer device comprises:
a memory for storing executable instructions;
a processor configured to read and execute the executable instructions stored in the memory to implement the image processing method according to any one of the first aspect.
In a fourth aspect, a computer-readable storage medium, wherein instructions, when executed by a processor, enable the processor to perform the image processing method of any of the first aspect.
In a fifth aspect, a computer program product comprises executable instructions, which when executed by a processor, are capable of implementing the image processing method of any one of the first aspect.
In the embodiment of the disclosure, after the intelligent terminal determines the multimedia file set to be set and acquires the target cover image, the target cover image is divided according to the number of the multimedia files contained in the multimedia file set to be set, a plurality of sub-images are acquired, and the plurality of sub-images are respectively set as the cover images of the multimedia files in the multimedia file set to be set, so that the cover images can be set for the plurality of multimedia files in batch at one time, the execution efficiency of setting the cover images is effectively improved, the implementation complexity is not increased, and the user experience is improved.
Drawings
Fig. 1 is a schematic diagram illustrating a process of setting a cover image of a multimedia file by an intelligent terminal according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of a home page of a multimedia application in an embodiment of the present disclosure;
FIGS. 3A and 3B are schematic diagrams illustrating determination of a set of multimedia files according to an embodiment of the disclosure;
FIGS. 4A and 4B are schematic diagrams of an embodiment of the present disclosure illustrating the capture of an image of a target cover;
FIGS. 5A, 5B, and 5C are schematic diagrams of different segmentation modes of a target cover image according to embodiments of the present disclosure;
FIGS. 6A and 6B are schematic diagrams of determining and canceling cover image settings in accordance with embodiments of the present disclosure;
FIGS. 7A, 7B, and 7C are schematic diagrams of how sub-images are arranged as cover images of respective multimedia files in a set of multimedia files in an embodiment of the present disclosure;
FIG. 7D is a diagram illustrating the restoration of an original cover image of each multimedia file in accordance with an embodiment of the present disclosure;
FIG. 8 is a schematic diagram of a logic architecture of an intelligent terminal according to an embodiment of the present disclosure;
fig. 9 is a schematic diagram of an intelligent terminal entity architecture in an embodiment of the present disclosure.
Detailed Description
In order to solve the problem that cover images of a plurality of multimedia files cannot be set simultaneously, in the embodiment of the disclosure, after an intelligent terminal determines a multimedia file set to be set and obtains a target cover image, the target cover image is segmented according to the number of the multimedia files contained in the multimedia file set to be set to obtain a plurality of sub-images, and then the plurality of sub-images are respectively set as cover images of the multimedia files in the multimedia file set to be set, so that the plurality of multimedia files can present a better display effect.
Preferred embodiments of the present disclosure will be described in further detail below with reference to the accompanying drawings.
Referring to fig. 1, in the embodiment of the present disclosure, a specific process of setting a cover image of a multimedia file by an intelligent terminal is as follows:
step 100: and the intelligent terminal responds to the cover image setting instruction and determines a multimedia file set to be set.
In a specific embodiment, after responding to a click operation of a user, an intelligent terminal can open a designated multimedia application program, log in a server, and enter a main page, wherein a preview of each shot multimedia file is presented in the main page, and the intelligent terminal can obtain the preview of each multimedia file and present the preview on a screen; then, the intelligent terminal can respond to an instruction of a user for selecting the multimedia files to be set, and selects each multimedia file needing to be set with the cover image from each multimedia file to form a multimedia file set to be set.
For example, referring to fig. 2, assume that a multimedia Application for shooting multimedia files, hereinafter referred to as Application (APP) X, is taken as an example, and after running APP X and logging in to a server in response to a click operation of a user, the user directly enters a homepage of APP X; as shown in fig. 2, in the homepage, preview images of respective multimedia files to which cover images are to be set are presented.
Then, the intelligent terminal responds to a cover image setting instruction (namely, the user clicks the operation of a "set cover" button), presents the obtained plurality of multimedia files, and specifically, the intelligent terminal can present a circle pattern in a preview image of each multimedia file for the user to select.
In the embodiment of the present disclosure, when selecting each multimedia file that needs to be provided with a cover image, the following two ways are included but not limited to:
in the mode 1, in response to the click operation of the user, the multimedia file corresponding to the click position is used as the multimedia file to be set every time the user responds.
For example, referring to fig. 3A, after clicking a circle pattern presented in a preview of a multimedia file 1, taking the multimedia file 1 as a multimedia file 1 to be set, and then clicking a circle pattern presented in a preview of a multimedia file 2, taking the multimedia file 2 as a multimedia file 2 to be set, and so on, obtaining a multimedia file 3 to be set;
and finally, taking the obtained multimedia file 1 to be set, the obtained multimedia file 2 to be set and the obtained multimedia file 3 to be set as the multimedia file set to be set.
And in the mode 2, responding to the click operation of the user, and taking the multimedia file corresponding to the click position and other multimedia files with the position relation with the multimedia file meeting the specified condition as the multimedia file to be set once response.
For example, referring to fig. 3B, after clicking a circle pattern presented in a preview of a multimedia file 1, a multimedia file 2 and a multimedia file 3 in the same row as the multimedia file 1 are taken as the set of multimedia files to be set.
Of course, in practical applications, each multimedia file located in the same column may also be used as a set of multimedia files to be set, and the above-mentioned manner is only an example, and is not described herein again.
Step 110: and the intelligent terminal responds to the selection instruction to acquire the target cover image.
In specific implementation, the intelligent terminal responds to the click operation of the user and enters a target cover image alternative area, wherein the target cover image alternative area can be a folder in which each image file is stored or a folder in which each video file is stored.
In the target cover image candidate area, each shot multimedia file (which may be an image file or a video file) is stored, and the intelligent terminal may respond to an instruction of a user to select a target cover image, and in each multimedia file, a multimedia file to be set as a cover image is selected to form the target cover image.
In a specific implementation, when step 110 is executed, the following two ways may be adopted, but not limited to:
in the mode 1, in response to a click operation of a user, an image corresponding to a click position is selected from a folder in which image files are stored as a target cover image of the multimedia file set to be set.
For example, referring to fig. 4A, still taking APP X as an example, after the intelligent terminal runs APP X, responding to an instruction of a user, opening a locally saved album, presenting a preview of each image file that has been shot, and after the user clicks a circle pattern presented in a preview of the 1 st image from the left in the first line of the album, the intelligent terminal takes the 1 st image from the left in the first line of the album as a target cover image of the multimedia file set to be set.
And 2, responding to the clicking operation of the user from the folder in which the video file is stored, and selecting a frame image corresponding to the appointed video frame from the video file corresponding to the clicking position as the target cover image of the multimedia file set to be set.
For example, referring to fig. 4B, assuming that APP X is still used as an example, after the intelligent terminal runs APP X, in response to an instruction of a user, opens a folder which has video files stored locally, presents a preview of each video file which has been shot, and after the user clicks one of the video files in the folder and selects a certain video frame in the video files by dragging the playing progress of the video file, the intelligent terminal takes a frame image (e.g., frame image 3) corresponding to the certain video frame as a target cover image of the multimedia file set to be set.
Step 120: and the intelligent terminal divides the target cover image according to the number of the multimedia files contained in the multimedia file set to be set to obtain a plurality of sub-images.
In a specific implementation, after the step 110 is executed and before the step 120 is executed, further, the intelligent terminal may perform corresponding adjustment on the target cover image in response to an operation instruction of the user, which may specifically include but is not limited to any one or any combination of the following operations:
moving the position of the target cover image;
enlarging or reducing the target cover image;
rotating the target cover image;
adding a filter effect to the target cover image;
adding a character effect to the target cover image; … …
The above operations are only examples and are not limited thereto, and are not described herein again.
After the adjustment, the intelligent terminal divides the target cover image according to the number of the multimedia files in the multimedia file set to be set, so that a plurality of corresponding sub-images are obtained.
For example, assuming that APP X is still taken as an example, after the intelligent terminal runs APP X, the intelligent terminal responds to the operation that the user selects the target cover image, and then enters a "cover editing" page; and then, responding to the operations of clicking, expanding by two fingers and sliding by a single finger by the intelligent terminal, amplifying and shifting the target cover image, and after the adjustment, segmenting the target cover image by the intelligent terminal according to the number of the multimedia files contained in the multimedia file set to be set.
For example, assuming that the number of multimedia files included in the set of multimedia files to be set is 3, the intelligent terminal divides the target cover image into 3 parts, thereby obtaining 3 sub-images, as shown in fig. 5A specifically;
for another example, assuming that the number of multimedia files included in the set of multimedia files to be set is 6, the intelligent terminal divides the target cover image into 6 parts, thereby obtaining 6 sub-images, as shown in fig. 5B specifically;
for another example, assuming that the number of multimedia files included in the set of multimedia files to be set is 9, the intelligent terminal divides the target cover image into 9 parts, thereby obtaining 9 sub-images, as shown in fig. 5C.
Step 130: and the intelligent terminal sets the sub-images as cover images of all the multimedia files in the multimedia file set to be set respectively.
In a specific implementation, after the intelligent terminal performs step 120 and before the intelligent terminal performs step 130, further, the intelligent terminal may respond to a user click operation to determine a subsequent operation.
For example, assuming that APP X is taken as an example, the smart terminal runs APP X, and after the segmentation operation is performed on the target cover image, the smart terminal performs subsequent operations in response to the click operation of the user, which includes but is not limited to the following two cases:
in case 1, the user clicks a "cancel" button, and the intelligent terminal returns to the homepage of APP X, as shown in fig. 6A specifically;
in case 2, the user clicks the "ok" button, and the intelligent terminal sequentially sets the cover image for each multimedia file in the set of multimedia files to be set, as shown in fig. 6B.
In the embodiment of the present disclosure, after receiving the "confirm" command, the intelligent terminal performs step 130.
In a specific implementation, when step 130 is executed, the intelligent terminal sets the plurality of sub-images as cover images of each multimedia file in the set of multimedia files to be set, which may adopt, but is not limited to, the following two ways:
in the mode 1, the intelligent terminal sequentially sets the obtained plurality of sub-images as cover images of the multimedia files in the multimedia file set to be set according to the existing sequence of the multimedia files in the multimedia file set to be set.
For example, referring to fig. 7A, it is assumed that the number of multimedia files included in the set of multimedia files to be set is 3, and the multimedia files are multimedia file 1, multimedia file 2, and multimedia file 3 in sequence; and assuming that the intelligent terminal divides the target cover image into 3 sub-images, namely a sub-image 1, a sub-image 2 and a sub-image 3.
Assuming that APP X is still taken as an example, after the intelligent terminal runs APP X, the intelligent terminal sets sub-image 1 as a cover image of the multimedia file 1, sub-image 2 as a cover image of the multimedia file 2, and sub-image 3 as a cover image of the multimedia file 3.
Optionally, each multimedia file included in the set of multimedia files to be set is each file segment obtained after a target multimedia file is segmented, and the existing sequence of each multimedia file is the time sequence corresponding to each file segment, so that the intelligent terminal can sequentially set a plurality of obtained sub-images as the cover image of each file segment according to the time sequence corresponding to each file segment, so that each set cover image can be spliced into an integral cover image corresponding to the target multimedia file according to the time sequence.
For example, referring to fig. 7B, assuming that each multimedia file in the set of multimedia files is a movie fragment obtained by dividing the same movie, which is movie fragment 1, movie fragment 2, and movie fragment 3 in turn, and is an upper part, a middle part, and a lower part of the same movie, respectively, the existing sequence of each multimedia file is the time sequence corresponding to each movie fragment, and assuming that the target cover image is a movie cover image associated with the movie, the intelligent terminal divides the target cover image to obtain 3 sub-movie cover images, which are sub-movie cover image 1, sub-movie cover image 2, and sub-movie cover image 3 in turn.
Assuming that APP X is still taken as an example, after the intelligent terminal runs APP X, the intelligent terminal sets the sub-movie cover image 1 as the cover image of the movie fragment 1, sets the sub-movie cover image 2 as the cover image of the movie fragment 2, and sets the sub-movie cover image 3 as the cover image of the movie fragment 3.
Therefore, the intelligent terminal can set the related sub-film cover images for the three parts of the same film at one time, and after the intelligent terminal and other intelligent terminals log in the homepage of the intelligent terminal, when the preview image interface of each film segment is displayed for each intelligent terminal, the sub-film cover images corresponding to each film segment can be spliced into a complete film cover image in the preview image interface to be displayed, so that the overall effect of the film can be better reflected.
In the mode 2, the intelligent terminal responds to the click operation of the user, sequentially adjusts each multimedia file contained in the multimedia file set to be set, and sequentially sets a plurality of obtained sub-images as cover images of each multimedia file in the multimedia file set to be set according to the adjusted sequence of each multimedia file contained in the multimedia file set to be set.
For example, referring to fig. 7C, it is assumed that the number of multimedia files included in the set of multimedia files to be set is 3, and the multimedia files are multimedia file 1, multimedia file 2, and multimedia file 3 in turn, and it is assumed that the intelligent terminal divides the target cover image to obtain 3 sub-images, which are sub-image 1, sub-image 2, and sub-image 3 in turn.
Assuming that APP X is still taken as an example, after the intelligent terminal runs APP X and logs in the server, the intelligent terminal sequentially exchanges multimedia file 1 and multimedia file 2, and then the intelligent terminal sets subimage 1 as the cover image of the multimedia file 2, subimage 2 as the cover image of the multimedia file 1, and subimage 3 as the cover image of the multimedia file 3.
Therefore, the intelligent terminal can obtain a better playing sequence based on the multimedia files by sequentially adjusting the multimedia files contained in the multimedia file set to be set, and then the intelligent terminal can set the sub-images for the multimedia files in batch at one time, so that after the intelligent terminal and other intelligent terminals log in a homepage of the intelligent terminal, when a preview image interface of each multimedia file is displayed to each intelligent terminal, the cover images of the multimedia files are spliced into a complete image in the preview image interface to be displayed, and the relevance of video content and video files can be displayed.
After the intelligent terminal sets the cover images of the multimedia files based on the two modes, the intelligent terminal can further set an expiry date aiming at each cover image, so that the operation of setting the cover images has timeliness; optionally, referring to fig. 7D, when the set time length of the cover image of each multimedia file reaches a set threshold, the intelligent terminal restores the cover image of each multimedia file included in the multimedia file set to the original cover image of each multimedia file.
For example, referring to fig. 7D, it is assumed that the number of multimedia files included in the set of multimedia files to be set is 3, and the multimedia files are multimedia file 1, multimedia file 2, and multimedia file 3 in turn, and it is assumed that the intelligent terminal divides the target cover image to obtain 3 sub-images, which are sub-image 1, sub-image 2, and sub-image 3 in turn.
Assuming that APP X is still taken as an example, after the intelligent terminal runs APP X, the intelligent terminal firstly sets sub-image 1 as a cover image of the multimedia file 1, sub-image 2 as a cover image of the multimedia file 2, and sub-image 3 as a cover image of the multimedia file 3.
Assuming that the intelligent terminal sets an expiration date for the self-defined cover image of each multimedia file in the set of multimedia files to be set, if the set threshold is 24 hours, when the set duration of the cover image of each multimedia file reaches 24 hours, the intelligent terminal cancels the subimage 1 set for the multimedia file 1, restores the original cover image, cancels the subimage 2 set for the multimedia file 2, restores the original cover image, cancels the subimage 3 set for the multimedia file 3, and restores the original cover image.
Therefore, the intelligent terminal can also cancel the user-defined cover images set by the multimedia files and restore the original cover images when the set time reaches the set threshold value in a mode of setting the validity period, so that the various demands of users are met, a better visual effect is given to the users, and the interestingness and the practicability are increased.
Based on the same inventive concept, referring to fig. 8, an embodiment of the present disclosure provides a computer device (e.g., an intelligent terminal), including:
a first selecting unit 810, configured to determine a set of multimedia files to be set in response to a cover image setting instruction;
a second selecting unit 820 for acquiring a target cover image in response to a selection instruction;
a dividing unit 830, configured to divide the target cover image according to the number of the multimedia files included in the multimedia file set to be set, so as to obtain a plurality of sub-images;
a setting unit 840, configured to set the sub-images as cover images of the multimedia files in the set of multimedia files to be set, respectively.
Optionally, the first selecting unit 810 is configured to:
determining a plurality of multimedia files in response to a cover image setting instruction;
responding to the click operation, and taking the multimedia file corresponding to the click position as a multimedia file to be set every time the click operation is responded; or,
responding to the click operation, and taking the multimedia file corresponding to the click position and other multimedia files with the position relation with the multimedia file meeting the specified conditions as the multimedia files to be set once each response.
Optionally, the second selecting unit 820 is configured to:
selecting a specified image from a folder in which an image file is stored as the target cover image; or,
and selecting a frame image corresponding to the specified video frame in the specified video file from the folder in which the video file is stored as the target cover image.
Optionally, after acquiring the target cover image, before performing a segmentation operation on the target cover image, the segmentation unit 830 is further configured to:
in response to an adjustment instruction, performing any one or any combination of adjustment operations on the target cover image, wherein the adjustment operations include any one or any combination of the following:
moving the position of the target cover image; or,
scaling the target cover image; or,
rotating the target cover image; or,
adding a filter effect to the target cover image; or
And adding a character effect to the target cover image.
Optionally, the setting unit 840 is configured to:
and sequentially setting a plurality of obtained sub-images as cover images of the multimedia files according to the existing sequence of the multimedia files contained in the multimedia file set to be set.
Optionally, if each multimedia file is a file segment obtained by segmenting a target multimedia file, and the existing sequence of each multimedia file is a time sequence corresponding to each file segment, the setting unit 840 is configured to:
and sequentially setting the obtained sub-images as cover images of the file segments, so that the set cover images are spliced into an integral cover image corresponding to the target multimedia file according to the time sequence.
Optionally, the setting unit 840 is configured to:
responding to the click operation of a user, and sequentially adjusting each multimedia file contained in the multimedia file set to be set;
and sequentially setting a plurality of obtained sub-images as cover images of the multimedia files according to the adjusted sequence of the multimedia files contained in the multimedia file set to be set.
Optionally, after the plurality of sub-images are respectively set as cover images of the multimedia files in the set of multimedia files to be set, the setting unit 840 is further configured to:
and when the set time length of the cover image of each multimedia file reaches a set threshold value, restoring the original cover image of each multimedia file.
Based on the same inventive concept, referring to fig. 9, an embodiment of the present application provides a computer device, for example, the electronic device 900 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 9, electronic device 900 may include one or more of the following components: processing component 902, memory 904, power component 906, multimedia component 908, audio component 910, input/output (I/O) interface 912, sensor component 914, and communication component 916.
The processing component 902 generally controls overall operation of the electronic device 900, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Processing component 902 may include one or more processors 920 to execute instructions to perform all or a portion of the steps of the methods described above. Further, processing component 902 can include one or more modules that facilitate interaction between processing component 902 and other components. For example, the processing component 902 can include a multimedia module to facilitate interaction between the multimedia component 908 and the processing component 902.
The memory 904 is configured to store various types of data to support operation at the electronic device 900. Examples of such data include instructions for any application or method operating on the electronic device 900, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 904 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 906 provides power to the various components of the electronic device 900. The power components 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 900.
The multimedia component 908 includes a screen that provides an output interface between the electronic device 900 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 908 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the electronic device 900 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 910 is configured to output and/or input audio signals. For example, the audio component 910 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 900 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 904 or transmitted via the communication component 916. In some embodiments, audio component 910 also includes a speaker for outputting audio signals.
I/O interface 912 provides an interface between processing component 902 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 914 includes one or more sensors for providing status evaluations of various aspects of the electronic device 900. For example, sensor assembly 914 may detect an open/closed state of electronic device 900, the relative positioning of components, such as a display and keypad of electronic device 900, sensor assembly 914 may also detect a change in the position of electronic device 900 or a component of electronic device 900, the presence or absence of user contact with electronic device 900, orientation or acceleration/deceleration of electronic device 900, and a change in the temperature of electronic device 900. The sensor assembly 914 may include a proximity sensor configured to detect the presence of a nearby object in the absence of any physical contact. The sensor assembly 914 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 914 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 916 is configured to facilitate wired or wireless communication between the electronic device 900 and other devices. The electronic device 900 may access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G, or 5G), or a combination thereof. In an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 916 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 900 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing any of the methods performed by the computer device in the above-described embodiments.
Based on the same inventive concept, the disclosed embodiments provide a computer-readable storage medium, wherein when instructions in the computer-readable storage medium are executed by a processor, the computer-readable storage medium can perform any one of the methods performed by the computer device in the above embodiments.
Based on the same inventive concept, the disclosed embodiments provide a computer program product comprising executable instructions, which when executed by a processor, can implement any one of the methods performed by the computer device as in the above embodiments.
In summary, in the embodiment of the present disclosure, after determining a multimedia file set to be set and acquiring a target cover image, an intelligent terminal segments the target cover image according to the number of multimedia files included in the multimedia file set to be set to obtain a plurality of sub-images, and then sets the plurality of sub-images as cover images of each multimedia file in the multimedia file set to be set, so that cover images can be set for a plurality of multimedia files (for example, a series of multimedia files with relevance) in batch at one time, thereby effectively improving execution efficiency of setting cover images, and simultaneously not increasing implementation complexity, thereby improving user experience.
On the other hand, in the embodiment of the present disclosure, before the target cover image is segmented, the intelligent terminal may perform adjustment operations such as scaling and filter setting on the target cover image, and meanwhile, before the target cover image is set, the intelligent terminal may further adjust content continuity between the multimedia files by adjusting the order of the multimedia files according to subjective wishes of the user, so as to provide the user with better use experience, and further improve the use satisfaction of the user on the used intelligent terminal.
Furthermore, the intelligent terminal can also cancel the user-defined cover images set by the plurality of multimedia files and restore the original cover images when the set time of the cover images of the multimedia files reaches the set threshold value in a mode of setting the validity period, so that various requirements of users are met, better visual effect is given to the users, and interestingness and practicability are increased.
As will be appreciated by one skilled in the art, embodiments of the present disclosure may be provided as a method, system, or computer program product. Accordingly, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present disclosure may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.
The present disclosure is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the disclosure. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present disclosure have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the disclosure.
It will be apparent to those skilled in the art that various changes and modifications may be made to the disclosed embodiments without departing from the spirit and scope of the disclosed embodiments. Thus, if such modifications and variations of the embodiments of the present disclosure fall within the scope of the claims of the present disclosure and their equivalents, the present disclosure is also intended to encompass such modifications and variations.

Claims (10)

1. An image processing method, comprising:
responding to a cover image setting instruction, and determining a multimedia file set to be set;
responding to a cover selection instruction, and acquiring a target cover image;
dividing the target cover image according to the number of the multimedia files contained in the multimedia file set to be set to obtain a plurality of sub-images;
and setting the plurality of sub-images as cover images of all multimedia files in the multimedia file set to be set respectively.
2. The method of claim 1, wherein determining the set of multimedia files to be set in response to the cover image setting instruction comprises:
determining a plurality of multimedia files in response to a cover image setting instruction;
responding to the click operation, and taking the multimedia file corresponding to the click position as a multimedia file to be set every time the click operation is responded; or,
responding to the click operation, and taking the multimedia file corresponding to the click position and other multimedia files with the position relation with the multimedia file meeting the specified conditions as the multimedia files to be set once each response.
3. The method of claim 1, wherein obtaining an image of an object cover comprises:
selecting a specified image from a folder in which an image file is stored as the target cover image; or,
and selecting a frame image corresponding to the specified video frame in the specified video file from the folder in which the video file is stored as the target cover image.
4. The method of claim 1, 2 or 3, wherein after acquiring the target cover image, prior to performing the segmentation operation on the target cover image, further comprising:
in response to an adjustment instruction, performing any one or any combination of adjustment operations on the target cover image, wherein the adjustment operations include any one or any combination of the following:
moving the position of the target cover image; or,
scaling the target cover image; or,
rotating the target cover image; or,
adding a filter effect to the target cover image; or
And adding a character effect to the target cover image.
5. The method of claim 1, 2 or 3, wherein the setting of the plurality of sub-images as cover images of the respective multimedia files in the set of multimedia files to be set comprises:
and sequentially setting a plurality of obtained sub-images as cover images of the multimedia files according to the existing sequence of the multimedia files contained in the multimedia file set to be set.
6. The method of claim 5, wherein if each of the multimedia files is a file fragment obtained by segmenting a target multimedia file, and the existing sequence of each of the multimedia files is a time sequence corresponding to each of the file fragments, sequentially setting a plurality of obtained sub-images as a cover image of each of the multimedia files comprises:
and sequentially setting the obtained sub-images as cover images of the file segments, so that the set cover images are spliced into an integral cover image corresponding to the target multimedia file according to the time sequence.
7. The method of claim 1, 2 or 3, wherein the setting of the plurality of sub-images as cover images of the respective multimedia files in the set of multimedia files to be set comprises:
responding to the click operation of a user, and sequentially adjusting each multimedia file contained in the multimedia file set to be set;
and sequentially setting a plurality of obtained sub-images as cover images of the multimedia files according to the adjusted sequence of the multimedia files contained in the multimedia file set to be set.
8. The method of claim 1, wherein after the sub-images are respectively set as cover images of the multimedia files in the set of multimedia files to be set, the method further comprises:
and when the set time length of the cover image of each multimedia file reaches a set threshold value, restoring the original cover image of each multimedia file.
9. A computer device, comprising:
a memory for storing executable instructions;
a processor for reading and executing executable instructions stored in the memory to implement the image processing method of any one of claims 1 to 8.
10. A computer-readable storage medium, wherein instructions in the computer-readable storage medium, when executed by a processor, enable the processor to perform the image processing method of any one of claims 1-8.
CN202011167291.5A 2020-10-27 2020-10-27 Image processing method and device, electronic equipment and storage medium Pending CN112308864A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202011167291.5A CN112308864A (en) 2020-10-27 2020-10-27 Image processing method and device, electronic equipment and storage medium
PCT/CN2021/110938 WO2022088823A1 (en) 2020-10-27 2021-08-05 Image processing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011167291.5A CN112308864A (en) 2020-10-27 2020-10-27 Image processing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112308864A true CN112308864A (en) 2021-02-02

Family

ID=74331122

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011167291.5A Pending CN112308864A (en) 2020-10-27 2020-10-27 Image processing method and device, electronic equipment and storage medium

Country Status (2)

Country Link
CN (1) CN112308864A (en)
WO (1) WO2022088823A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113157973A (en) * 2021-03-29 2021-07-23 广州市百果园信息技术有限公司 Method, device, equipment and medium for generating cover
CN113596351A (en) * 2021-07-28 2021-11-02 北京达佳互联信息技术有限公司 Video display method and device
WO2022088823A1 (en) * 2020-10-27 2022-05-05 北京达佳互联信息技术有限公司 Image processing method and apparatus

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103049564A (en) * 2012-12-31 2013-04-17 广东欧珀移动通信有限公司 Method for batch setting of music album picture covers
CN103235679A (en) * 2013-03-29 2013-08-07 广东欧珀移动通信有限公司 Method and system for setting corresponding album covers for music files in batches
CN106454483A (en) * 2016-10-12 2017-02-22 深圳市茁壮网络股份有限公司 Column display method and system
CN109727298A (en) * 2018-02-12 2019-05-07 平安好房(上海)电子商务有限公司 Poster generation method, device, equipment and computer storage medium
CN110381368A (en) * 2019-07-11 2019-10-25 北京字节跳动网络技术有限公司 Video cover generation method, device and electronic equipment
CN110399848A (en) * 2019-07-30 2019-11-01 北京字节跳动网络技术有限公司 Video cover generation method, device and electronic equipment
CN110580678A (en) * 2019-09-10 2019-12-17 北京百度网讯科技有限公司 image processing method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105808645B (en) * 2016-02-26 2019-05-10 北京金山安全软件有限公司 Picture processing method and device and electronic equipment
CN106021405A (en) * 2016-05-12 2016-10-12 北京奇虎科技有限公司 Method and device for generating photo album cover
CN108696760A (en) * 2017-04-07 2018-10-23 京东方科技集团股份有限公司 A kind of acquisition of information, providing method and device
CN111309961B (en) * 2020-02-12 2024-04-02 深圳市腾讯计算机系统有限公司 Song cover generation method, device, computer readable storage medium and equipment
CN112308864A (en) * 2020-10-27 2021-02-02 北京达佳互联信息技术有限公司 Image processing method and device, electronic equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103049564A (en) * 2012-12-31 2013-04-17 广东欧珀移动通信有限公司 Method for batch setting of music album picture covers
CN103235679A (en) * 2013-03-29 2013-08-07 广东欧珀移动通信有限公司 Method and system for setting corresponding album covers for music files in batches
CN106454483A (en) * 2016-10-12 2017-02-22 深圳市茁壮网络股份有限公司 Column display method and system
CN109727298A (en) * 2018-02-12 2019-05-07 平安好房(上海)电子商务有限公司 Poster generation method, device, equipment and computer storage medium
CN110381368A (en) * 2019-07-11 2019-10-25 北京字节跳动网络技术有限公司 Video cover generation method, device and electronic equipment
CN110399848A (en) * 2019-07-30 2019-11-01 北京字节跳动网络技术有限公司 Video cover generation method, device and electronic equipment
CN110580678A (en) * 2019-09-10 2019-12-17 北京百度网讯科技有限公司 image processing method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
学拍视频剪辑六斗米: "抖音上的三连封面如何制作?只需要简单几步看完视频就能学会!", pages 1 - 13, Retrieved from the Internet <URL:https://weibo.com/5890494834/4518664885632782> *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022088823A1 (en) * 2020-10-27 2022-05-05 北京达佳互联信息技术有限公司 Image processing method and apparatus
CN113157973A (en) * 2021-03-29 2021-07-23 广州市百果园信息技术有限公司 Method, device, equipment and medium for generating cover
CN113596351A (en) * 2021-07-28 2021-11-02 北京达佳互联信息技术有限公司 Video display method and device
CN113596351B (en) * 2021-07-28 2023-06-20 北京达佳互联信息技术有限公司 Video display method and device

Also Published As

Publication number Publication date
WO2022088823A1 (en) 2022-05-05

Similar Documents

Publication Publication Date Title
CN109683714B (en) Multimedia resource management method, device and storage medium
EP3125135A1 (en) Picture processing method and device
CN105069073B (en) Contact information recommendation method and device
EP3171270A1 (en) Method and device for information push
CN108108418B (en) Picture management method, device and storage medium
CN107870712B (en) Screenshot processing method and device
CN112308864A (en) Image processing method and device, electronic equipment and storage medium
CN111651216B (en) NFC card processing method, NFC card processing device and storage medium
RU2648616C2 (en) Font addition method and apparatus
EP3260998A1 (en) Method and device for setting profile picture
CN110968364B (en) Method and device for adding shortcut plugins and intelligent device
CN106095236A (en) The method and device of arranging desktop icons
CN112929561A (en) Multimedia data processing method and device, electronic equipment and storage medium
CN106527886B (en) Picture display method and device
CN108984098B (en) Information display control method and device based on social software
CN112948704A (en) Model training method and device for information recommendation, electronic equipment and medium
CN107885571B (en) Display page control method and device
CN112199552B (en) Video image display method and device, electronic equipment and storage medium
CN106447747B (en) Image processing method and device
CN112188034A (en) Image processing method, device, terminal equipment and medium
CN105808102A (en) Frame adding method and apparatus
CN107179866B (en) Application control method, device and storage medium
CN112764599B (en) Data processing method, device and medium
CN112784858B (en) Image data processing method and device and electronic equipment
CN107608506B (en) Picture processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination