Image processing method, device, electronic device and storage medium

By setting the segmented sub-images for multiple multimedia files as cover images, the problem of low efficiency in setting the cover image of multimedia files in the prior art is solved, and the display effect and user experience are improved.

CN112308864BActive Publication Date: 2025-01-03BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202011167291.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-27
Publication Date
2025-01-03
Estimated Expiration
2040-10-27

AI Technical Summary

Technical Problem

The prior art is difficult to set cover images for multiple multimedia files at the same time, resulting in low operational efficiency and poor display effect.

Method used

By determining the set of multimedia files to be set, the target cover image is obtained, and segmented it according to the number of files, several sub-images are generated, and the cover image of each multimedia file is set respectively.

Benefits of technology

It realizes the batch setting of cover images of multiple multimedia files in one go, improving operation efficiency and display effect and improving user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112308864B_ABST
    Figure CN112308864B_ABST
Patent Text Reader

Abstract

The present disclosure relates to the field of computer technology, and in particular to an image processing method, device, electronic device and storage medium, which are used to efficiently and accurately set covers for multiple multimedia files. The method is as follows: after the intelligent terminal determines the multimedia file set to be set and obtains the target cover image, the target cover image is segmented according to the number of multimedia files included in the multimedia file set to be set, and a plurality of sub-images are obtained, and then the plurality of sub-images are respectively set as the cover images of each multimedia file in the multimedia file set to be set. In this way, cover images can be set for multiple multimedia files in batches at one time, thereby effectively improving the execution efficiency of setting the cover image, while not increasing the implementation complexity, thereby improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to an image processing method, device, electronic device and storage medium. Background Art

[0002] With the popularization of multimedia technology, shooting multimedia files, such as short videos and audios, through smart terminals has gradually become a daily activity for people. As a result, when editing and publishing multimedia files, in order to better express the main content of the multimedia files and obtain higher display exposure and click volume, the terminal can set a cover image for the multimedia files.

[0003] Under the prior art, when setting a cover image for a multimedia file, a smart terminal usually uses a frame image of a certain video frame in the multimedia file as the cover image of the multimedia file.

[0004] However, when setting the cover image in the above manner, the cover image can only be set for a single multimedia file. When the cover image needs to be set for multiple multimedia files (such as a series of related multimedia files), it is necessary to set them one by one, and the same operation needs to be performed repeatedly. Obviously, this will reduce the operational efficiency of setting the cover image and reduce the display effect of the multimedia files, thereby affecting the performance of the smart terminal. Summary of the invention

[0005] The embodiments of the present disclosure provide an image processing method, an apparatus, an electronic device, and a storage medium, which are used to solve the problem that cover images of multiple multimedia files cannot be set simultaneously.

[0006] The specific technical solutions provided by the embodiments of the present disclosure are as follows:

[0007] In a first aspect, an image processing method comprises:

[0008] In response to the cover image setting instruction, determining a multimedia file set to be set;

[0009] In response to the cover selection instruction, acquiring a target cover image;

[0010] According to the number of multimedia files included in the multimedia file set to be set, the target cover image is segmented to obtain a plurality of sub-images;

[0011] The plurality of sub-images are respectively set as cover images of respective multimedia files in the multimedia file set to be set.

[0012] Optionally, in response to the cover image setting instruction, determining a multimedia file set to be set includes:

[0013] In response to the cover image setting instruction, determining a plurality of multimedia files;

[0014] In response to the click operation, each time the click operation is responded, the multimedia file corresponding to the click position is used as the multimedia file to be set; or,

[0015] In response to the click operation, each time the click operation is responded, the multimedia file corresponding to the click position and other multimedia files whose positional relationship with the multimedia file meets the specified condition are taken as the multimedia files to be set.

[0016] Optionally, get the target cover image, including:

[0017] Selecting a designated image from a folder storing image files as the target cover image; or,

[0018] From a folder storing video files, a frame image corresponding to a specified video frame in a specified video file is selected as the target cover image.

[0019] Optionally, after acquiring the target cover image and before performing a segmentation operation on the target cover image, the method further includes:

[0020] In response to the adjustment instruction, any one or any combination of adjustment operations are performed on the target cover image, and the adjustment operations include any one or any combination of the following:

[0021] Moving the target cover image; or,

[0022] scaling the target cover image; or,

[0023] Rotate the target cover image; or,

[0024] adding a filter effect to the target cover image; or

[0025] Add a text effect to the target cover image.

[0026] Optionally, setting the plurality of sub-images as cover images of respective multimedia files in the multimedia file set to be set includes:

[0027] According to the existing order of the multimedia files included in the multimedia file set to be set, the obtained plurality of sub-images are sequentially set as the cover images of the multimedia files.

[0028] Optionally, if the multimedia files are file segments obtained by segmenting a target multimedia file, and the existing order of the multimedia files is the time sequence corresponding to the file segments, then the obtained sub-images are sequentially set as cover images of the multimedia files, including:

[0029] The obtained several sub-images are sequentially set as cover images of the respective file segments, so that the set cover images are spliced ​​into an overall cover image corresponding to the target multimedia file in the chronological order.

[0030] Optionally, setting the plurality of sub-images as cover images of respective multimedia files in the multimedia file set to be set includes:

[0031] In response to a click operation by the user, adjusting the order of the multimedia files included in the multimedia file set to be set;

[0032] According to the adjusted sequence of the multimedia files included in the multimedia file set to be set, the obtained plurality of sub-images are sequentially set as cover images of the multimedia files.

[0033] Optionally, after the plurality of sub-images are respectively set as the cover images of the respective multimedia files in the multimedia file set to be set, the method further includes:

[0034] When the set duration of the cover image of each multimedia file reaches a set threshold, the original cover image of each multimedia file is restored.

[0035] In a second aspect, an image processing device includes:

[0036] A first selection unit, configured to determine a set of multimedia files to be set in response to a cover image setting instruction;

[0037] A second selection unit, configured to obtain a target cover image in response to a selection instruction;

[0038] A segmentation unit, used to segment 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;

[0039] A setting unit is used to set the plurality of sub-images as cover images of each multimedia file in the multimedia file set to be set.

[0040] Optionally, the first selection unit is used to:

[0041] In response to the cover image setting instruction, determining a plurality of multimedia files;

[0042] In response to the click operation, each time the click operation is responded, the multimedia file corresponding to the click position is used as the multimedia file to be set; or,

[0043] In response to the click operation, each time the click operation is responded, the multimedia file corresponding to the click position and other multimedia files whose positional relationship with the multimedia file meets the specified condition are taken as the multimedia files to be set.

[0044] Optionally, the second selection unit is used to:

[0045] Selecting a designated image from a folder storing image files as the target cover image; or,

[0046] From a folder storing video files, a frame image corresponding to a specified video frame in a specified video file is selected as the target cover image.

[0047] Optionally, after acquiring the target cover image and before performing a segmentation operation on the target cover image, the segmentation unit is further used to:

[0048] In response to the adjustment instruction, any one or any combination of adjustment operations are performed on the target cover image, and the adjustment operations include any one or any combination of the following:

[0049] Moving the target cover image; or,

[0050] scaling the target cover image; or,

[0051] Rotate the target cover image; or,

[0052] adding a filter effect to the target cover image; or

[0053] Add a text effect to the target cover image.

[0054] Optionally, the setting unit is used to:

[0055] According to the existing order of the multimedia files included in the multimedia file set to be set, the obtained plurality of sub-images are sequentially set as the cover images of the multimedia files.

[0056] Optionally, if the multimedia files are file segments obtained by segmenting a target multimedia file, and the existing order of the multimedia files is the time sequence corresponding to the file segments, the setting unit is used to:

[0057] The obtained several sub-images are sequentially set as cover images of the respective file segments, so that the set cover images are spliced ​​into an overall cover image corresponding to the target multimedia file in the chronological order.

[0058] Optionally, the setting unit is used to:

[0059] In response to a click operation by the user, adjusting the order of the multimedia files included in the multimedia file set to be set;

[0060] According to the adjusted sequence of the multimedia files included in the multimedia file set to be set, the obtained plurality of sub-images are sequentially set as cover images of the multimedia files.

[0061] Optionally, after the plurality of sub-images are respectively set as the cover images of the respective multimedia files in the multimedia file set to be set, the setting unit is further configured to:

[0062] When the set duration of the cover image of each multimedia file reaches a set threshold, the original cover image of each multimedia file is restored.

[0063] According to a third aspect, a computer device includes:

[0064] A memory for storing executable instructions;

[0065] A processor is used to read and execute the executable instructions stored in the memory to implement the image processing method described in any one of the first aspects above.

[0066] In a fourth aspect, a computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by a processor, the processor is enabled to execute the image processing method described in any one of the first aspects.

[0067] In a fifth aspect, a computer program product comprises executable instructions, and when the executable instructions of the computer program product are executed by a processor, the image processing method described in any one of the first aspects can be implemented.

[0068] In the disclosed embodiment, after the intelligent terminal determines the multimedia file set to be set and obtains the target cover image, it divides the target cover image according to the number of multimedia files included in the multimedia file set to be set to obtain a number of sub-images, and then sets the several sub-images as the cover images of each multimedia file in the multimedia file set to be set. In this way, cover images can be set for multiple multimedia files in batches at one time, thereby effectively improving the execution efficiency of setting the cover image without increasing the implementation complexity, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0069] Figure 1 A schematic diagram of a process of setting a cover image of a multimedia file for a smart terminal in an embodiment of the present disclosure;

[0070] Figure 2 A schematic diagram of a home page of a multimedia application in an embodiment of the present disclosure;

[0071] Figure 3A and Figure 3B A schematic diagram of determining a multimedia file set in an embodiment of the present disclosure;

[0072] Figure 4A and Figure 4B A schematic diagram of obtaining a target cover image in an embodiment of the present disclosure;

[0073] Figure 5A , Figure 5B and Figure 5C Schematic diagram of different segmentation methods of the target cover image in the embodiment of the present disclosure;

[0074] Fig. 6A and Figure 6B A schematic diagram of determining and canceling cover image settings in an embodiment of the present disclosure;

[0075] Fig. 7A , Figure 7B and Figure 7C A schematic diagram of setting a plurality of sub-images as cover images of each multimedia file in a multimedia file set in an embodiment of the present disclosure;

[0076] Fig.7D A schematic diagram of restoring the original cover image of each multimedia file in an embodiment of the present disclosure;

[0077] Figure 8 This is a schematic diagram of the logical architecture of the intelligent terminal in the embodiment of the present disclosure;

[0078] Fig. 9 Schematic diagram of the smart terminal entity architecture in the embodiment of the present disclosure. DETAILED DESCRIPTION

[0079] In order to solve the problem that cover images of multiple multimedia files cannot be set at the same time, in the embodiment of the present disclosure, after the intelligent terminal determines the multimedia file set to be set and obtains the target cover image, the target cover image is divided according to the number of multimedia files included in the multimedia file set to be set to obtain a number of sub-images, and then the several sub-images are respectively set as the cover images of each multimedia file in the multimedia file set to be set, so that the several multimedia files can present a better display effect.

[0080] The preferred embodiments of the present disclosure are further described in detail below in conjunction with the accompanying drawings.

[0081] See also Figure 1 As shown, in the embodiment of the present disclosure, the specific process of the smart terminal setting the cover image of the multimedia file is as follows:

[0082] Step 100: The intelligent terminal determines a set of multimedia files to be set in response to a cover image setting instruction.

[0083] In a specific embodiment, after responding to a user's click operation, the smart terminal can open a designated multimedia application, log in to a server, and enter a home page. In the home page, preview images of each multimedia file that has been shot are presented, and the smart terminal can obtain the preview images of each multimedia file and present them on the screen; then, the smart terminal can respond to the user's instruction to select the multimedia files to be set, and select the multimedia files that need to be set with cover images from among the multimedia files to form a set of multimedia files to be set.

[0084] For example, see Figure 2 As shown in FIG. 1 , assuming that a multimedia application for shooting multimedia files is taken as an example, hereinafter referred to as application (Application, APP) X, in response to a user's click operation, after running APP X and logging into the server, the home page of APP X is directly entered; Figure 2 As shown, on the home page, preview images of various multimedia files for which cover images are to be set are presented.

[0085] Then, the smart terminal responds to the cover image setting instruction (ie, the user clicks the "set cover" button) and presents the obtained multimedia files. Specifically, the smart terminal can present a circle pattern in the preview image of each multimedia file for the user to select.

[0086] In the embodiment of the present disclosure, when selecting each multimedia file that needs to set a cover image, the following two methods are included but not limited to:

[0087] Mode 1, in response to a click operation of the user, each time a response is made, the multimedia file corresponding to the click position is used as the multimedia file to be set.

[0088] For example, see Figure 3A As shown, after clicking the circle pattern presented in the preview image of multimedia file 1, the multimedia file 1 is used as the multimedia file 1 to be set, and after clicking the circle pattern presented in the preview image of multimedia file 2, the multimedia file 2 is used as the multimedia file 2 to be set, and so on, to obtain the multimedia file 3 to be set;

[0089] Finally, the obtained multimedia file 1 to be set, the multimedia file 2 to be set, and the multimedia file 3 to be set are taken as the multimedia file set to be set.

[0090] Mode 2, in response to a user click operation, each time a response is made, the multimedia file corresponding to the click position and other multimedia files whose positional relationship with the multimedia file meets a specified condition are used as multimedia files to be set.

[0091] For example, see Figure 3B As shown, after clicking the circle pattern presented in the preview image of the multimedia file 1, the multimedia file 2 and the multimedia file 3 in the same row as the multimedia file 1 are taken as the multimedia file set to be set.

[0092] Of course, in actual applications, the multimedia files in the same column may also be used as the multimedia file set to be set. The above method is only an example and will not be described in detail here.

[0093] Step 110: The smart terminal obtains a target cover image in response to the selection instruction.

[0094] In a specific implementation, the intelligent terminal enters a target cover image candidate area in response to a click operation of the user. The target cover image candidate area may be a folder storing various image files or a folder storing various video files.

[0095] In the target cover image candidate area, various multimedia files that have been shot (which can be image files or video files) are saved. The smart terminal can respond to the user's instruction to select the target cover image, and select the multimedia file that needs to be set as the cover image from the various multimedia files to form the target cover image.

[0096] In a specific implementation, when executing step 110, the following two methods may be used but are not limited to:

[0097] Mode 1: In response to a click operation by a user, an image corresponding to a click position is selected from a folder storing image files as a target cover image of the multimedia file set to be set.

[0098] For example, see Figure 4A As shown, assuming that APP X is still used as an example, after the smart terminal runs APP X, it responds to the user's instruction, opens the locally saved album, and presents preview images of each image file that has been taken. After the user clicks on the circle pattern presented in the preview image of the first image from the left in the first row of the album, the smart terminal uses the first image from the left in the first row of the album as the target cover image of the multimedia file set to be set.

[0099] Method 2, in response to a user's click operation, from a folder storing video files, a frame image corresponding to a designated video frame is selected from the video file corresponding to the click position as the target cover image of the multimedia file set to be set.

[0100] For example, see Figure 4B As shown, assuming that APP X is still used as an example, after the smart terminal runs APP X, in response to the user's instruction, it opens a folder where video files have been saved locally and presents preview images of each video file that has been shot. After the user clicks on a video file in the folder and selects a certain video frame in the video file by dragging the playback progress of the video file, the smart terminal uses the frame image (e.g., frame image 3) corresponding to the certain video frame as the target cover image of the multimedia file set to be set.

[0101] Step 120: The intelligent terminal divides 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.

[0102] In a specific implementation, after executing step 110 and before executing step 120, the smart terminal may further adjust the target cover image in response to the user's operation instruction, which may specifically include but not be limited to any one or any combination of the following operations:

[0103] Moving the target cover image;

[0104] Enlarging or reducing the target cover image;

[0105] Rotating the target cover image;

[0106] adding a filter effect to the target cover image;

[0107] Adding text effects to the target cover image; …

[0108] The above operations are only examples and are not limited to these, so they will not be described in detail here.

[0109] After the above adjustment, the intelligent terminal divides the target cover image according to the number of multimedia files in the multimedia file set to be set, thereby obtaining a corresponding number of sub-images.

[0110] For example, assuming that APP X is still used as an example, after the smart terminal runs APP X, the smart terminal responds to the user's operation of selecting the target cover image and then enters the "Cover Editing" page; then, the smart terminal responds to the user's click, two-finger spread and single-finger slide operations to enlarge and shift the target cover image. After the above adjustments, the smart terminal divides the target cover image according to the number of multimedia files included in the multimedia file set to be set.

[0111] For example, assuming that the number of multimedia files included in the multimedia file set 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. Figure 5A As shown;

[0112] For another example, assuming that the number of multimedia files included in the multimedia file set 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. Figure 5B As shown;

[0113] For another example, assuming that the number of multimedia files included in the multimedia file set 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. Figure 5C shown.

[0114] Step 130: The intelligent terminal sets the plurality of sub-images as cover images of the multimedia files in the multimedia file set to be set.

[0115] In a specific implementation, after the smart terminal executes step 120 and before executing step 130, the smart terminal may further respond to a click operation of the user to determine a subsequent operation.

[0116] For example, assuming that APP X is still used as an example, the smart terminal runs APP X, and after performing a segmentation operation on the target cover image, the smart terminal performs subsequent operations in response to the user's click operation, including but not limited to the following two situations:

[0117] Case 1: The user clicks the "Cancel" button and the smart terminal returns to the home page of APP X. Fig. 6A As shown;

[0118] In case 2, the user clicks the "OK" button, and the intelligent terminal sequentially sets the cover image for each multimedia file in the multimedia file set to be set. Figure 6B shown.

[0119] In the disclosed embodiment, the intelligent terminal executes step 130 after receiving the “confirm” instruction.

[0120] In a specific implementation, when executing step 130, the smart terminal sets the plurality of sub-images as cover images of each multimedia file in the multimedia file set to be set, in the following two ways, but not limited to:

[0121] Mode 1: The intelligent terminal sets the obtained sub-images as the cover images of the multimedia files in the multimedia file set to be set in sequence according to the existing order of the multimedia files included in the multimedia file set to be set.

[0122] For example, see Fig. 7A As shown, it is assumed that the number of multimedia files contained in the multimedia file set to be set is 3, namely multimedia file 1, multimedia file 2, and multimedia file 3; and it is assumed that the intelligent terminal divides the target cover image into 3 sub-images, namely sub-image 1, sub-image 2, and sub-image 3.

[0123] Assuming that APP X is still used as an example, after the smart terminal runs APP X, the smart terminal sets sub-image 1 as the cover image of the multimedia file 1, sets sub-image 2 as the cover image of the multimedia file 2, and sets sub-image 3 as the cover image of the multimedia file 3.

[0124] Optionally, the multimedia files included in the multimedia file set to be set are file fragments obtained after segmenting a target multimedia file, and the existing order of the multimedia files is the chronological order corresponding to the file fragments. Then, the intelligent terminal can set the obtained several sub-images as cover images of the file fragments in sequence according to the chronological order corresponding to the file fragments, so that the set cover images can be spliced ​​into the overall cover image corresponding to the target multimedia file in chronological order.

[0125] For example, see Figure 7B As shown, assuming that each multimedia file in the multimedia file set to be set is a movie fragment obtained after segmentation of the same movie, namely movie fragment 1, movie fragment 2, and movie fragment 3, which are the upper, middle, and lower parts of the same movie respectively, then the existing order of the multimedia files is the chronological order corresponding to the movie fragments, and assuming that the target cover image is a movie cover image associated with the movie, then the smart terminal segments the target cover image to obtain three sub-movie cover images, namely sub-movie cover image 1, sub-movie cover image 2, and sub-movie cover image 3.

[0126] Assuming that APP X is still used as an example, after the smart terminal runs APP X, the smart terminal sets sub-movie cover image 1 as the cover image of movie clip 1, sets sub-movie cover image 2 as the cover image of movie clip 2, and sets sub-movie cover image 3 as the cover image of movie clip 3.

[0127] In this way, the smart terminal can set related sub-movie cover images for the three parts of the same movie at one time, and after the smart terminal and other smart terminals log in to the homepage page of the smart terminal, when displaying the preview interface of each movie clip to each smart terminal, the sub-movie cover images corresponding to each movie clip can be spliced ​​into a complete movie cover image in the preview interface for presentation, thereby better reflecting the overall effect of the movie.

[0128] Method 2: In response to a click operation by the user, the intelligent terminal adjusts the order of the multimedia files included in the multimedia file set to be set, and then sets the obtained multiple sub-images as the cover images of the multimedia files in the multimedia file set to be set in sequence according to the adjusted order of the multimedia files included in the multimedia file set to be set.

[0129] For example, see Figure 7C As shown, it is assumed that the number of multimedia files contained in the multimedia file set to be set is 3, namely multimedia file 1, multimedia file 2, and multimedia file 3, and it is assumed that the intelligent terminal divides the target cover image into 3 sub-images, namely sub-image 1, sub-image 2, and sub-image 3.

[0130] Assuming that APP X is still used as an example, after the smart terminal runs APP X and logs in to the server, the smart terminal swaps the order of multimedia file 1 and multimedia file 2, and then sets sub-image 1 as the cover image of multimedia file 2, sets sub-image 2 as the cover image of multimedia file 1, and sets sub-image 3 as the cover image of multimedia file 3.

[0131] In this way, the smart terminal can obtain a better playback order based on the multimedia files by adjusting the order of the multimedia files included in the multimedia file set to be set, and then the smart terminal can also set each sub-image for the multimedia files in batches at one time. Therefore, after the smart terminal and other smart terminals log in to the homepage page of the smart terminal, when the preview image interface of the multimedia files is displayed to each smart terminal, the cover images of the above-mentioned multimedia files are spliced ​​into a complete image in the preview image interface for presentation, thereby highlighting the video content and the relevance of the video files.

[0132] After the smart terminal sets the cover image of each multimedia file based on the above two methods, it can further set a validity period for each cover image, so that the operation of setting the cover image has timeliness; optionally, refer to Fig.7D As shown, when the set duration 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 collection to the original cover image of each multimedia file.

[0133] For example, see Fig.7D As shown, it is assumed that the number of multimedia files contained in the multimedia file set to be set is 3, namely multimedia file 1, multimedia file 2, and multimedia file 3, and it is assumed that the intelligent terminal divides the target cover image into 3 sub-images, namely sub-image 1, sub-image 2, and sub-image 3.

[0134] Assuming that APP X is still used as an example, after the smart terminal runs APP X, the smart terminal first sets sub-image 1 as the cover image of the multimedia file 1, sets sub-image 2 as the cover image of the multimedia file 2, and sets sub-image 3 as the cover image of the multimedia file 3.

[0135] Assuming that the smart terminal has set a validity period for the customized cover image of each multimedia file in the multimedia file set to be set, such as setting a threshold value to 24 hours, then when the set duration of the cover image of each multimedia file reaches 24 hours, the smart terminal cancels sub-image 1 set for multimedia file 1 and restores the original cover image, cancels sub-image 2 set for multimedia file 2 and restores the original cover image, cancels sub-image 3 set for multimedia file 3 and restores the original cover image.

[0136] In this way, the smart terminal can also set a validity period. When the set time reaches a set threshold, it can cancel the customized cover images set for the multiple multimedia files and restore the original cover images, thereby meeting the diverse needs of users, giving users better visual effects, and increasing fun and practicality.

[0137] Based on the same inventive concept, refer to Figure 8 As shown, in an embodiment of the present disclosure, a computer device (eg, a smart terminal) is provided, including:

[0138] A first selection unit 810 is used to determine a set of multimedia files to be set in response to a cover image setting instruction;

[0139] The second selection unit 820 is used to obtain a target cover image in response to a selection instruction;

[0140] A segmentation unit 830 is used to segment 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;

[0141] The setting unit 840 is used to set the plurality of sub-images as cover images of the multimedia files in the multimedia file set to be set.

[0142] Optionally, the first selecting unit 810 is used to:

[0143] In response to the cover image setting instruction, determining a plurality of multimedia files;

[0144] In response to the click operation, each time the click operation is responded, the multimedia file corresponding to the click position is used as the multimedia file to be set; or,

[0145] In response to the click operation, each time the click operation is responded, the multimedia file corresponding to the click position and other multimedia files whose positional relationship with the multimedia file meets the specified condition are taken as the multimedia files to be set.

[0146] Optionally, the second selecting unit 820 is used to:

[0147] Selecting a designated image from a folder storing image files as the target cover image; or,

[0148] From a folder storing video files, a frame image corresponding to a specified video frame in a specified video file is selected as the target cover image.

[0149] Optionally, after acquiring the target cover image and before performing a segmentation operation on the target cover image, the segmentation unit 830 is further used to:

[0150] In response to the adjustment instruction, any one or any combination of adjustment operations are performed on the target cover image, and the adjustment operations include any one or any combination of the following:

[0151] Moving the target cover image; or,

[0152] scaling the target cover image; or,

[0153] Rotate the target cover image; or,

[0154] adding a filter effect to the target cover image; or

[0155] Add a text effect to the target cover image.

[0156] Optionally, the setting unit 840 is used to:

[0157] According to the existing order of the multimedia files included in the multimedia file set to be set, the obtained plurality of sub-images are sequentially set as the cover images of the multimedia files.

[0158] Optionally, if the multimedia files are file segments obtained by segmenting a target multimedia file, and the existing order of the multimedia files is the time sequence corresponding to the file segments, the setting unit 840 is used to:

[0159] The obtained several sub-images are sequentially set as cover images of the respective file segments, so that the set cover images are spliced ​​into an overall cover image corresponding to the target multimedia file in the chronological order.

[0160] Optionally, the setting unit 840 is used to:

[0161] In response to a click operation by the user, adjusting the order of the multimedia files included in the multimedia file set to be set;

[0162] According to the adjusted sequence of the multimedia files included in the multimedia file set to be set, the obtained plurality of sub-images are sequentially set as cover images of the multimedia files.

[0163] Optionally, after the plurality of sub-images are respectively set as the cover images of the respective multimedia files in the multimedia file set to be set, the setting unit 840 is further configured to:

[0164] When the set duration of the cover image of each multimedia file reaches a set threshold, the original cover image of each multimedia file is restored.

[0165] Based on the same inventive concept, see Fig. 9 As shown, an embodiment of the present application provides a computer device. For example, the electronic device 900 can be a mobile phone, a computer, a digital broadcast terminal, a message sending and receiving device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0166] Reference Fig. 9 , the electronic device 900 may include one or more of the following components: a processing component 902 , a memory 904 , a power component 906 , a multimedia component 908 , an audio component 910 , an input / output (I / O) interface 912 , a sensor component 914 , and a communication component 916 .

[0167] The processing component 902 generally controls the overall operation of the electronic device 900, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 902 may include one or more processors 920 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 902 may include one or more modules to facilitate the interaction between the processing component 902 and other components. For example, the processing component 902 may include a multimedia module to facilitate the interaction between the multimedia component 908 and the processing component 902.

[0168] The memory 904 is configured to store various types of data to support operations on the electronic device 900. Examples of such data include instructions for any application or method operating on the electronic device 900, contact data, phone book data, messages, pictures, videos, etc. The memory 904 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, 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 disk or optical disk.

[0169] The power supply component 906 provides power to the various components of the electronic device 900. The power supply component 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 900.

[0170] The multimedia component 908 includes a screen that provides an output interface between the electronic device 900 and the 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 input signals from the 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 boundaries of the 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 camera and / or a rear camera. When the electronic device 900 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0171] The audio component 910 is configured to output and / or input audio signals. For example, the audio component 910 includes a microphone (MIC), and when the electronic device 900 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 904 or sent via the communication component 916. In some embodiments, the audio component 910 also includes a speaker for outputting audio signals.

[0172] I / O interface 912 provides an interface between processing component 902 and peripheral interface modules, such as 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.

[0173] The sensor assembly 914 includes one or more sensors for providing various aspects of status assessment for the electronic device 900. For example, the sensor assembly 914 can detect the open / closed state of the electronic device 900, the relative positioning of components, such as the display and keypad of the electronic device 900, and the sensor assembly 914 can also detect the position change of the electronic device 900 or a component of the electronic device 900, the presence or absence of user contact with the electronic device 900, the orientation or acceleration / deceleration of the electronic device 900, and the temperature change of the electronic device 900. The sensor assembly 914 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 914 may also include an optical 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 accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0174] The communication component 916 is configured to facilitate wired or wireless communication between the electronic device 900 and other devices. The electronic device 900 can 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-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 916 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0175] 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, microcontrollers, microprocessors, or other electronic components to execute any one of the methods executed by the computer device in the above-described embodiments.

[0176] Based on the same inventive concept, an embodiment of the present disclosure provides a computer-readable storage medium. When instructions in the computer-readable storage medium are executed by a processor, any one of the methods executed by the computer device in the above embodiments can be executed.

[0177] Based on the same inventive concept, an embodiment of the present disclosure provides a computer program product, which includes executable instructions. When the executable instructions of the computer program product are executed by a processor, any method executed by the computer device in the above embodiments can be implemented.

[0178] To summarize, in the disclosed embodiment, after the intelligent terminal determines the multimedia file set to be set and obtains the target cover image, it divides the target cover image according to the number of multimedia files contained in the multimedia file set to be set to obtain a number of sub-images, and then sets the several sub-images as the cover images of each multimedia file in the multimedia file set to be set. In this way, cover images can be set for multiple multimedia files (such as a series of related multimedia files) in batches at one time, thereby effectively improving the execution efficiency of setting the cover image without increasing the implementation complexity, thereby improving the user experience.

[0179] On the other hand, in the embodiment of the present disclosure, before segmenting the target cover image, the smart terminal can perform adjustment operations such as scaling and setting filters on the target cover image. At the same time, before setting the target cover image, the smart terminal can also adjust the content continuity between the multimedia files by adjusting the order of the multimedia files according to the user's subjective wishes, thereby giving the user a better user experience and further improving the user's satisfaction with the smart terminal used.

[0180] Furthermore, the smart terminal can also set a validity period. When the set duration of the cover image of each multimedia file reaches a set threshold, the customized cover image set for the multiple multimedia files can be canceled and the original cover image can be restored, thereby meeting the diverse needs of users, giving users better visual effects, and increasing fun and practicality.

[0181] Those skilled in the art will appreciate that the embodiments of the present disclosure may be provided as methods, systems, or computer program products. Therefore, the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present disclosure may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0182] The present disclosure is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present disclosure. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0183] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0184] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0185] Although the preferred embodiments of the present disclosure have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present disclosure.

[0186] Obviously, those skilled in the art can make various changes and modifications to the embodiments of the present disclosure without departing from the spirit and scope of the embodiments of the present disclosure. Thus, if these 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 include these modifications and variations.

Claims

1. An image processing method, characterized in that: Applied to a smart terminal, the method comprises: After opening a designated multimedia application and logging into a server, obtaining preview images of each multimedia file that has been shot and presented on a homepage of a user in the server, and presenting the preview images of each multimedia file on a screen; In response to the cover image setting instruction, determining a set of multimedia files to be set among the multimedia files; In response to the cover selection instruction, obtaining a target cover image corresponding to the multimedia file set to be set; According to the number of multimedia files included in the multimedia file set to be set, the target cover image is divided to obtain a plurality of sub-images; and the plurality of sub-images are respectively set as cover images of each multimedia file in the multimedia file set to be set, so as to enable the smart terminal to batch set cover images for multiple multimedia files at one time, thereby improving execution efficiency.

2. The method according to claim 1, characterized in that In response to the cover image setting instruction, determining a multimedia file set to be set includes: In response to the cover image setting instruction, determining a plurality of multimedia files; In response to the click operation, each time the click operation is responded, the multimedia file corresponding to the click position is used as the multimedia file to be set; or, In response to the click operation, each time the click operation is responded, the multimedia file corresponding to the click position and other multimedia files whose positional relationship with the multimedia file meets the specified condition are taken as the multimedia files to be set.

3. The method according to claim 1, characterized in that Get the target cover image, including: Selecting a designated image from a folder storing image files as the target cover image; or, From a folder storing video files, a frame image corresponding to a specified video frame in a specified video file is selected as the target cover image.

4. The method according to claim 1, 2 or 3, characterized in that: After acquiring the target cover image and before performing a segmentation operation on the target cover image, the method further includes: In response to the adjustment instruction, any one or any combination of adjustment operations are performed on the target cover image, and the adjustment operations include any one or any combination of the following: Moving the target cover image; or, scaling the target cover image; or, Rotate the target cover image; or, adding a filter effect to the target cover image; or Add a text effect to the target cover image.

5. The method according to claim 1, 2 or 3, characterized in that: The plurality of sub-images are respectively set as cover images of the respective multimedia files in the multimedia file set to be set, comprising: According to the existing order of the multimedia files included in the multimedia file set to be set, the obtained plurality of sub-images are sequentially set as the cover images of the multimedia files.

6. The method according to claim 5, characterized in that If the multimedia files are file segments obtained by segmenting a target multimedia file, and the existing order of the multimedia files is the time sequence corresponding to the file segments, then the obtained sub-images are sequentially set as cover images of the multimedia files, including: The obtained several sub-images are sequentially set as cover images of the respective file segments, so that the set cover images are spliced ​​into an overall cover image corresponding to the target multimedia file in the chronological order.

7. The method according to claim 1, 2 or 3, characterized in that: The plurality of sub-images are respectively set as cover images of the respective multimedia files in the multimedia file set to be set, comprising: In response to a click operation by the user, adjusting the order of the multimedia files included in the multimedia file set to be set; According to the adjusted sequence of the multimedia files included in the multimedia file set to be set, the obtained plurality of sub-images are sequentially set as cover images of the multimedia files.

8. The method according to claim 1, characterized in that After the plurality of sub-images are respectively set as the cover images of the respective multimedia files in the multimedia file set to be set, the method further includes: When the set duration of the cover image of each multimedia file reaches a set threshold, the original cover image of each multimedia file is restored.

9. An image processing device, characterized in that: Applied to a smart terminal, the device comprises: The first selection unit is used to, after opening a designated multimedia application and logging into a server, obtain preview images of various multimedia files that have been shot and are presented on a homepage of a user in the server, and present the preview images of various multimedia files on a screen; in response to a cover image setting instruction, determine a set of multimedia files to be set in the various multimedia files; A second selection unit, configured to obtain, in response to a selection instruction, a target cover image corresponding to the multimedia file set to be set; a segmentation unit, configured to segment 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 The setting unit is used to set the plurality of sub-images as cover images of each multimedia file in the multimedia file set to be set, so as to enable the smart terminal to batch set cover images for multiple multimedia files at one time, thereby improving execution efficiency.

10. The device according to claim 9, characterized in that The first selection unit is used for: In response to the cover image setting instruction, determining a plurality of multimedia files; In response to the click operation, each time the response is made, the multimedia file corresponding to the click position is used as the multimedia file to be set; or, In response to the click operation, each time the click operation is responded, the multimedia file corresponding to the click position and other multimedia files whose positional relationship with the multimedia file meets the specified condition are taken as the multimedia files to be set.

11. The device according to claim 9, characterized in that The second selection unit is used for: Selecting a designated image from a folder storing image files as the target cover image; or, From a folder storing video files, a frame image corresponding to a specified video frame in a specified video file is selected as the target cover image.

12. The device according to claim 9, 10 or 11, characterized in that After acquiring the target cover image and before performing a segmentation operation on the target cover image, the segmentation unit is further used to: In response to the adjustment instruction, any one or any combination of adjustment operations are performed on the target cover image, and the adjustment operations include any one or any combination of the following: Moving the target cover image; or, scaling the target cover image; or, Rotate the target cover image; or, adding a filter effect to the target cover image; or Add a text effect to the target cover image.

13. The device according to claim 9, 10 or 11, characterized in that The setting unit is used for: According to the existing order of the multimedia files included in the multimedia file set to be set, the obtained plurality of sub-images are sequentially set as the cover images of the multimedia files.

14. The device according to claim 13, characterized in that If the multimedia files are file segments obtained by segmenting a target multimedia file, and the existing order of the multimedia files is the time sequence corresponding to the file segments, the setting unit is used to: The obtained several sub-images are sequentially set as cover images of the respective file segments, so that the set cover images are spliced ​​into an overall cover image corresponding to the target multimedia file in the chronological order.

15. The device according to claim 9, 10 or 11, characterized in that The setting unit is used for: In response to a click operation by the user, adjusting the order of the multimedia files included in the multimedia file set to be set; According to the adjusted sequence of the multimedia files included in the multimedia file set to be set, the obtained plurality of sub-images are sequentially set as cover images of the multimedia files.

16. The device according to claim 9, characterized in that After the plurality of sub-images are respectively set as the cover images of the respective multimedia files in the multimedia file set to be set, the setting unit is further used to: When the set duration of the cover image of each multimedia file reaches a set threshold, the original cover image of each multimedia file is restored.

17. A computer device, characterized in that: include: 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 claims 1 to 8.

18. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor, the processor is enabled to execute the image processing method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Method and system for setting corresponding album covers for music files in batches

    CN103235679A

  • Image processing method and device

    CN110580678A