Cover determination method and device, electronic equipment and computer readable storage medium

By analyzing image features and scene types, the image processing method of the target scene type is used to generate preview images, which solves the problem of low cover quality of terminal equipment and improves cover quality and user experience.

CN118628968APending Publication Date: 2024-09-10GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310227640.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-09
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

In the existing technology, when the terminal device selects the cover of the image collection, the quality is not high, which affects the user experience and cannot effectively capture the key content of the image collection.

Method used

By analyzing the image features and scene types in the image set, use the image processing method corresponding to the target scene type to process the image, generate a preview image to determine the cover, and improve the cover quality and user experience.

Benefits of technology

The generated cover is more aesthetic and interesting, can better reflect the content of the image collection, and improves the user's visual experience and usage experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118628968A
    Figure CN118628968A
Patent Text Reader

Abstract

The invention provides a cover determination method, and relates to the technical field of image processing. The method comprises the following steps: determining a target scene type according to image features and scene types of images in an image set; processing images belonging to the target scene type in the image set according to an image processing mode corresponding to the target scene type to obtain a preview image of the target scene type; a cover of the image set is determined based on the preview image. The target scene type can be adaptively determined according to the image features of the images in the image set and the scene type, and the cover of the image set is determined by using the image material related to the target scene type in the image set, so that the quality of the cover of the image set is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] The terminal device can usually realize multiple functions to meet the needs of users. When using the terminal device, the user often saves the content that he is interested in. The terminal device can display the cover content so that the user can select the image set to be opened according to the cover content.

[0003] In the related art, the terminal device selects the image with the most recent storage time as the cover, or randomly selects any image as the cover, or the cover is customized by the user. However, the cover determined by the above methods is of low quality, which affects the user experience to a certain extent. Summary of the invention

[0004] The purpose of the present disclosure is to provide a cover determination method, a cover determination device, an electronic device and a computer-readable storage medium, thereby improving the cover quality of an image collection at least to a certain extent.

[0005] According to a first aspect of the present disclosure, a cover determination method is provided, comprising: determining a target scene type based on image features and scene types of each image in an image set; processing images in the image set belonging to the target scene type according to an image processing method corresponding to the target scene type to obtain a preview image of the target scene type; and determining a cover of the image set based on the preview image.

[0006] According to a second aspect of the present disclosure, a cover determination device is provided, comprising: a scene determination module, used to determine a target scene type according to image features and scene types of each image in an image set; an image processing module, used to process images in the image set belonging to the target scene type according to an image processing method corresponding to the target scene type to obtain a preview image of the target scene type; and a cover determination module, used to determine a cover of the image set based on the preview image.

[0007] According to a third aspect of the present disclosure, there is provided an electronic device, comprising: a processor; and a memory for storing one or more programs, which, when the one or more programs are executed by one or more processors, enables the one or more processors to implement the above method.

[0008] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the above method is implemented.

[0009] The cover determination method provided by the embodiments of the present disclosure can, on the one hand, adaptively select a target scene type according to the image features and scene types of each image in the image set, and use the image processing method corresponding to the target scene type to process the image material related to the target scene type to obtain a preview image effect that matches the target scene type, so that the cover of the image set determined according to the preview image is more aesthetically pleasing and interesting, the cover quality is improved, the user's visual experience is enhanced, and the user is greatly attracted; on the other hand, the preview image is obtained by combining the target scene type and the relevant image material in the image set, and while ensuring beauty, the obtained preview image is displayed to facilitate users to quickly understand the content of the image set and improve the user experience.

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

[0011] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present disclosure, and together with the specification, are used to explain the principles of the present disclosure. Obviously, the drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0012] Figure 1 A schematic diagram showing an exemplary application environment in which a cover determination method and device according to an embodiment of the present disclosure can be applied;

[0013] Figure 2 A flowchart schematically illustrates a cover determination method in an exemplary embodiment of the present disclosure;

[0014] Figure 3 A schematic diagram showing the structure of a Block unit of a SENet network in an exemplary embodiment of the present disclosure is shown;

[0015] Figure 4 A flowchart schematically illustrates an implementation method of determining a target scene type in an exemplary embodiment of the present disclosure;

[0016] Figure 5 A flowchart for determining a minimum similar image set of a candidate scene type in an exemplary embodiment of the present disclosure is schematically shown;

[0017] Figure 6 A feature comparison diagram in an exemplary embodiment of the present disclosure is schematically shown;

[0018] Figure 7A schematic diagram schematically illustrates a method of acquiring pixel motion information of feature points of other images based on a reference image in an exemplary embodiment of the present disclosure;

[0019] Figure 8 A schematic diagram schematically shows a preview image obtained when the target scene type is a cloud during the day in an exemplary embodiment of the present disclosure;

[0020] Fig. 9 A flowchart schematically illustrates a method for obtaining a preview image in an exemplary embodiment of the present disclosure;

[0021] Fig.10 A schematic diagram schematically illustrates a method of displaying a dynamic image cover in an exemplary embodiment of the present disclosure;

[0022] Fig.11 A diagram schematically shows a display effect of a cover of an image collection in an exemplary embodiment of the present disclosure;

[0023] Fig.12 The following is a schematic diagram showing a flow chart of a method for determining a cover in an album cover scenario in an exemplary embodiment of the present disclosure;

[0024] Fig.13 A schematic diagram schematically shows the composition of a cover determination device in an exemplary embodiment of the present disclosure;

[0025] Fig.14 A schematic diagram of an electronic device to which the embodiments of the present disclosure can be applied is shown. DETAILED DESCRIPTION

[0026] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the disclosure will be more comprehensive and complete and to fully convey the concepts of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.

[0027] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.

[0028] Figure 1A schematic diagram showing an exemplary application environment in which a cover determination method and device according to an embodiment of the present disclosure can be applied.

[0029] like Figure 1 As shown, the terminal device may be an intelligent device with an image processing function, such as a smart phone, a computer, a tablet computer, a vehicle-mounted device, a wearable device, a monitoring device, etc. The terminal device may also be referred to as a mobile terminal, a terminal, a mobile device, etc. The present disclosure does not limit the type of the terminal device. A camera may or may not be set in the terminal device, as long as it can process images.

[0030] Among them, the images in the image set can be images in various scenarios, such as pictures captured by a camera device, video frame images obtained by video frame extraction, images saved by screenshot operations and other means, and of course, they can also be images obtained from the network or other terminal devices. The embodiments of the present disclosure do not impose any special restrictions on the source of the images in the image set.

[0031] In an embodiment of the present disclosure, a cover determination device of a terminal device may determine a target scene type according to image features and scene types of each image in an image set based on a cover determination method of an embodiment of the present disclosure, process images in the image set belonging to the target scene type according to an image processing method corresponding to the target scene type to obtain a preview image of the target scene type, and determine the cover of the image set based on the preview image.

[0032] It should be noted that the cover determination method provided in the embodiment of the present disclosure can be executed by a terminal device. The cover determination method provided in the embodiment of the present disclosure can also be executed by a server, and accordingly, the cover determination device can also be set in the server. The server can be a background system that provides video processing related services in the embodiment of the present disclosure, and can include a portable computer, a desktop computer, a smart phone, and other electronic devices with computing functions or a cluster formed by multiple electronic devices. In the embodiment of the present disclosure, the cover determination method is executed by a terminal device as an example for explanation.

[0033] In the related art, content is extracted from the image set as the cover, for example, the image with the most recent save time is used as the cover, or any image is randomly selected as the cover, or an image selected by the user is used as the cover. However, the above-mentioned methods of setting the cover directly use the existing image content as the cover, and the cover quality is low. Since displaying the cover content allows users to select the image set to open according to the cover content, the low cover quality affects the user's visual experience and usage experience to a certain extent. On the other hand, the above-mentioned methods of setting the cover often fail to capture the key content of the image set, which in turn affects the user's ability to quickly judge the true content of the image set.

[0034] Based on one or more of the above problems, this exemplary embodiment provides a cover determination method. Figure 2 As shown, the cover determination method may include the following steps S210 to S230:

[0035] In step S210, a target scene type is determined according to the image features and scene types of each image in the image set.

[0036] In an exemplary embodiment of the present disclosure, an image set is a file storing pictures and / or videos, such as an album or gallery of a terminal device. The images in the image set include not only pictures in the file, but also image frames obtained by extracting frames from the video in the file. Among them, the video can be scanned in a 1:N manner to obtain image frames, where N is an integer greater than 1 and can be selected according to actual conditions. It is worth noting that the image frames obtained by extracting frames are only used in the cover determination process and do not need to be saved in the file in the form of image frames.

[0037] The scene type is used to characterize the real scene of the image. For example, long exposure refers to a shooting technique that maintains the lens exposure for a long time to obtain special effects. Long exposure images can capture the motion trajectory of moving objects. For example, long exposure shooting of water (such as rivers and waterfalls) can obtain images with the dynamic effect of rushing water, and long exposure shooting of moving light sources in night scenes (such as car lights) can obtain the effect of continuous light tracks. The simulated long exposure shooting effect can be obtained by performing long exposure processing on the image through the terminal device. Images that support long exposure processing usually have a relatively fixed background and include objects that move regularly in the foreground. The scene types corresponding to the long exposure effect include but are not limited to: portraits during the day, portraits at night, traffic during the day, traffic at night, water during the day, water at night, ships during the day, ships at night, etc.

[0038] The disclosed embodiment can extract image features of an image through a trained scene classifier, and determine the scene type to which the image belongs based on the image features. The scene classifier can be any one of SENet (Squeeze-and-Excitation Networks), DenseNet (Dense Convolutional Network), ResNet (Deep residual network), deep network model VGG, MobileNets and other networks.

[0039] The SENet network adaptively recalibrates the feature responses of channels by explicitly modeling the interdependencies between channels. Figure 3 The structural diagram of the Block unit of the SENet network is shown below. Figure 3The extraction of image features and the determination of the scene type to which the image belongs are explained.

[0040] First, the image is input into the SENet network, and the traditional convolution operation Ftr is used to transform the input x(c 1 ×h×w) after convolution operation, the output is U(c 2 ×h×w). Secondly, the global average pooling Fsq of the channel is used to compress the feature map U containing global information into a feature map (1×1×c 2 ), that is, a value with a global receptive field is obtained according to each two-dimensional channel. Finally, the feature map is processed using the structure Fex consisting of a two-level fully connected layer and an activation layer, and the weight value with the same number of input features is output, and the weight value is multiplied element by element to the c of U 2 Each channel (Fsc weight operation) obtains a new feature map x' weighted by the channel importance, that is, the recalibration of the original features is completed.

[0041] The SENet network based on the SE module extracts features from the image and determines the scene type to output the scene type and image features of the image. The image features can be the result of the input of the last fully connected layer and dimensionality reduction, such as dimensionality reduction to 128 or 256 dimensions, which can be determined according to actual conditions. The image features can be reduced in dimensionality by PCA (Principal Component Analysis), which is not particularly limited.

[0042] During the network training phase, image samples corresponding to different scene types can be obtained, and the image samples can be used for model training to obtain a trained scene classifier.

[0043] In some possible embodiments, after obtaining the image features and scene types of each image in the image set, the target scene type may be determined from the scene types corresponding to each image in combination with the image features and scene types. Among them, at least one target scene type may be determined from the scene types corresponding to each image. When the target scene type cannot be determined from the scene types corresponding to each image based on the image features and scene types of each image, a preset scene type may be used as the target scene type, and the preset scene type may be set according to actual needs.

[0044] In step S220, the images in the image set that belong to the target scene type are processed according to the image processing method corresponding to the target scene type to obtain a preview image of the target scene type.

[0045] In an exemplary embodiment of the present disclosure, the image processing method is an image special effect processing method that matches the target scene type, and accordingly, the preview image is an image presented with the image special effect corresponding to the target scene type. The image processing method corresponding to the target scene type includes but is not limited to long exposure processing, image enhancement processing, etc.

[0046] The image set includes one or more images belonging to the target scene type. If there is only one image belonging to the target scene type, a preview image is obtained according to the image processing method corresponding to the target scene type; if there are multiple images belonging to the target scene type, each image can be processed according to the image processing method corresponding to the target scene type to obtain multiple processed images, and a preview image of the target scene type can be generated according to the multiple processed images, or at least one image can be selected from the multiple processed images as the preview image of the target scene type.

[0047] In step S230 , a cover of the image set is determined based on the preview image.

[0048] In an exemplary embodiment of the present disclosure, after obtaining a preview image of a target scene type, the cover of the image set may be determined according to the preview image.

[0049] In some possible embodiments, the preview image may be directly used as the cover of the image set, or the cover of the image set may be generated based on the preview image, such as by splicing or fusing multiple preview images to generate the cover of the image set, or by generating a dynamic image or short video from multiple preview images to serve as the cover of the image set.

[0050] Based on the cover determination method of the disclosed embodiment, the target scene type can be adaptively selected according to the image features and scene types of each image in the image set, and the image material related to the target scene type can be processed using the image processing method corresponding to the target scene type to obtain a preview image effect that matches the target scene type, so that the cover of the image set determined according to the preview image is more aesthetically pleasing and interesting, the cover quality is improved, the user's visual experience is enhanced, and the user is greatly attracted. The preview image is obtained by combining the target scene type and the relevant image material in the image set, while ensuring the aesthetic feeling, and by displaying the obtained preview image, it is convenient for the user to quickly understand the content of the image set, thereby improving the user's experience.

[0051] In an exemplary embodiment, a method for determining a target scene type is provided. Figure 4 A flow chart of determining a target scene type according to an exemplary embodiment of the present disclosure is shown. Figure 4 , determining the target scene type according to the image features and scene types of each image in the image set may include steps S410 to S420:

[0052] Step S410: determining a first number of images belonging to each scene type, eliminating scene types corresponding to images whose first number is less than a number threshold, and obtaining candidate scene types.

[0053] In order to make the cover of the image collection reflect the main content of the image collection, the scene types corresponding to the first number of images less than the number threshold can be eliminated according to the first number of images belonging to each scene type to obtain candidate scene types. For example, if the first number of images corresponding to a certain scene type is less than 5, the scene type is eliminated, and the number threshold can be set according to actual needs, and no special requirements are made for this.

[0054] Step S420: for each candidate scene type, compare the image features of each image under the candidate scene type, and determine a similar image set according to the feature comparison result.

[0055] After determining the candidate scene types, similar image sets of each candidate scene type are obtained respectively. Since the image content deviation between images of the same candidate scene type may affect the image processing effect due to changes in shooting angle or jitter, the image features of each image are compared to determine a similar image set that can reflect the main content of the candidate scene type and facilitate image processing.

[0056] A similar image set refers to images in the set whose similarity between two images is greater than the similarity threshold. In the image feature dimension, it refers to images in the set whose distance between two image features is greater than the distance threshold, to ensure that the contents between the images are similar. For example, if the cosine distance between two image features is greater than the distance threshold, such as 0.87, then both images belong to the similar image set. Of course, other discrimination methods such as the Euclidean distance between two image features can also be used.

[0057] In some possible embodiments, a method for determining a minimum similar image set is also provided. Figure 5 As shown, determining the minimum similar image set of the candidate scene type may include step S510 and step S520:

[0058] Step S510: determining a plurality of candidate image sets of the candidate scene type according to the feature comparison result, wherein the similarity between the images in the candidate image sets is greater than a similarity threshold.

[0059] Step S520: determining a similar image set from a plurality of candidate image sets, so that the number of images included in the similar image set is minimized.

[0060] The corresponding minimum candidate scene type is obtained for each candidate scene type, which improves the algorithm processing efficiency while ensuring the similarity of image content.

[0061] Figure 6 A feature comparison diagram according to an exemplary embodiment of the present disclosure is shown, wherein the images corresponding to the candidate scene types include images A to L, wherein the line between two images indicates that the similarity of the images at both ends of the line is greater than the similarity threshold. Figure 6 The method of obtaining a minimum similar image set of candidate scene types according to an embodiment of the present disclosure is described.

[0062] First, take image A as the starting point to traverse the images in the entire feature comparison graph. Through image feature comparison, determine that similar images of image A include images B to G, and obtain the image set X1 = {image A, image B, image C, image D, image E, image F, image G}.

[0063] Secondly, according to the similarity between the two images in the image set X1, the image set X2 = {image A, image B, image D, image E, image G} and the image set X3 = {image A, image C, image D, image F} are obtained. Since the similarity between the two images in the candidate image set is greater than the similarity threshold, there is no need to re-traverse all the images in the entire feature comparison map in the process of determining the image set X2 and the image set X3. Each time, the similarity between the images in the set can be determined based on the obtained image set, which greatly improves the processing efficiency.

[0064] Finally, the one with the smallest number of images is determined from the two obtained candidate image sets as the similar image set, that is, the minimum similar image set is the image set X3 = {image A, image C, image D, image F}.

[0065] Through the above exemplary description, similar images with similar image contents can be obtained, and images that do not meet the similarity requirements can be eliminated to obtain a similar image set of candidate scene types.

[0066] Step S430: determining the target scene type according to a matching relationship between the number of images in the similar image set of each candidate scene type and the second number of images required by the image processing method corresponding to each candidate scene type.

[0067] The second number of images required by the image processing method corresponding to the candidate scene type refers to the minimum number of images required by the image processing method of the candidate scene type to process images. First, the number of images in the similar image set of the candidate scene type is obtained, and the second number of images required by the image processing method corresponding to the candidate scene type is determined, and then the number of images is compared and matched with the second number to determine the target scene type from the candidate scene types according to the matching result.

[0068] Through a special comparison process and an image quantity matching process, a target similar image set and a corresponding target scene type whose image features and image quantity meet the image processing requirements can be obtained to ensure the quality of subsequent image processing.

[0069] In an exemplary embodiment, when determining the target scene type based on the matching relationship between the number of images in the similar image set of each candidate scene type and the second number of images required by the corresponding image processing method, if there is a target similar image set whose number of images matches the second number, at least one target scene type is determined from the candidate scene types corresponding to the target similar image set.

[0070] For example, the candidate scene type "traffic during the day" requires 10 or more images. If the number of images in the target similar image set corresponding to the candidate scene type meets the requirement, the candidate scene type can be determined as the target scene type.

[0071] Exemplarily, at least one target scene type may be determined according to the number of images in the target similar image set. For example, each candidate scene type is sorted in descending order according to the number of images in the corresponding target similar image set, and the candidate scene type corresponding to the largest number of images is taken as the target scene type. At least one target scene type is determined from each candidate scene type to ensure that the target scene type has sufficient image materials.

[0072] In an exemplary embodiment, the number of images in the target similar image set corresponding to the target scene type may be multiple; processing the images in the image set belonging to the target scene type according to the image processing method corresponding to the target scene type to obtain a preview image of the target scene type may be processing the images in the target similar image set corresponding to the target scene type according to the image processing method, and fusing the processed images to obtain the preview image, that is, after determining the target scene type, the target similar image set corresponding to the target scene type is used as the image material for processing to obtain the preview image. Based on this, the obtained preview image obtains the special effects corresponding to the target scene type and can represent the main content of the image set to a certain extent.

[0073] In some possible embodiments, when the target scene type is not a long exposure effect with a portrait as the main body, the foreground area and the background area of ​​each image in the target similar image set corresponding to the target scene type can be extracted respectively, and a reference image is determined from the target similar image set. Based on the reference image, the foreground area of ​​each image is processed respectively to obtain a fused foreground area, and based on the reference image, each background area is processed to obtain a fused background image. Finally, the fused foreground area and the fused background area are fused to obtain a preview image.

[0074] Among them, see Figure 7 As shown, during the long exposure processing, the pixel motion information of the feature points of other images can be obtained based on the reference image, and interpolation processing is performed based on the pixel motion information of the feature points to obtain a fused image with the object motion trajectory effect. The embodiment of the present disclosure is applicable to any long exposure processing algorithm without any special limitation. Figure 8 It shows that the preview image obtained when the target scene type is clouds during the day has the effect of running clouds and providing an excellent visual experience.

[0075] In some possible embodiments, another implementation method for obtaining a preview image is also provided, such as Fig. 9 As shown, if the target scene type is a long exposure effect type with a portrait as the main body, processing the images in the target similar image set corresponding to the target scene type according to the image processing method, and fusing the processed images to obtain a preview image may include steps S910 to S930:

[0076] Step S910: Determine the human body region of each image in the target similar image set.

[0077] The disclosed embodiment extracts and marks the human body region in the foreground of each image in the target similar image set. A deep learning model based on image semantic segmentation can be used to extract the human body region in the foreground of each image, such as a semantic segmentation model such as UNet.

[0078] Step S920: determining a reference image from the target similar image set, processing each image with the human body region removed based on the reference image, and fusing the processing results to obtain a fused image.

[0079] After eliminating the human body area of ​​each image in the target similar image set, the process of processing each image with the human body area eliminated based on the reference image is also to process the foreground area and the background area separately, and fuse the obtained fused foreground area and fused background area to obtain a fused image.

[0080] Step S930: Fusing the human body region of the reference image with the fused image to obtain a preview image.

[0081] After obtaining a fused image with an object motion trajectory effect, the human body region of the reference image is fused with the fused image to obtain a preview image with a long exposure effect.

[0082] Through this exemplary embodiment, when the foreground area is processed by using the long exposure algorithm, the human body area does not participate in the calculation, so the integrity and clarity of the portrait area in the foreground area can be guaranteed.

[0083] In another exemplary embodiment, the images in the image set belonging to the target scene type are processed according to an image processing method corresponding to the target scene type to obtain a preview image of the target scene type. Alternatively, the images in the target similar image set corresponding to the target scene type are processed according to the image processing method, and at least one image is selected from the processed images as a preview image.

[0084] Exemplarily, the images in the target similar image set can be processed according to corresponding image processing methods (such as long exposure of different effect types, brightness enhancement, denoising, etc.) to obtain different processed images, and then at least one image is selected from the processed images as a preview image, such as selecting the image with the best noise reduction effect or the highest clarity, etc., so as to ensure the quality of the preview image.

[0085] In an exemplary embodiment, if there are multiple target scene types, the images in the image set belonging to each target scene type may be processed according to the image processing method of the corresponding target scene type to obtain preview images of each target scene type. Based on this, determining the cover of the image set according to the preview image may include:

[0086] First, a dynamic image cover is formed according to the preview images of each target scene type, and the dynamic image cover displays the preview images of each target scene type in a carousel form, and then the dynamic image cover is determined as the cover of the image set. The dynamic image cover can be in the form of a dynamic image or a short video.

[0087] Fig.10 A schematic diagram showing a dynamic image cover according to an exemplary embodiment of the present disclosure is shown. Fig.10 As shown, the dynamic image cover can be displayed at preset intervals (such as 5 minutes), which improves the visual effect of the cover and allows users to quickly determine the real content of the image set in a shorter time, helping users to quickly find the target image.

[0088] In a possible embodiment, there may be a situation where the target similar image set is not obtained based on the matching relationship between the number of images in the similar image set of each candidate scene type and the second number of images required by the corresponding image processing method, that is, the preview image that meets the special effect effect corresponding to the candidate scene type cannot be obtained, and the preset scene type is determined as the target scene type. For example, color adjustment, background blur, adding filters, etc. can be set according to actual conditions, and of course, can also be selected or set by the user.

[0089] Furthermore, the target image with the largest heat value can be obtained from the similar image set corresponding to each candidate scene type, and the target image can be determined as an image belonging to the target scene type. The heat value can be determined based on multiple data such as viewing behavior, editing behavior, interactive behavior, and sharing behavior corresponding to the image. For example, if a user frequently forwards or edits an image, the heat value of the image is high, and it is more likely to be set as the image corresponding to the target scene type for subsequent preview image generation.

[0090] After extracting the target image from the similar image set of each candidate scene type, each target image is processed according to the image processing method corresponding to the preset scene type to obtain a preview image of each target image.

[0091] In a possible embodiment, any one of a static image, a dynamic image or a short video can be generated based on each preview image corresponding to each target image, and the generated result can be determined as the cover of the image set, thereby improving the quality of the cover and facilitating users to quickly find the desired image content based on the cover.

[0092] Furthermore, the target image may be updated at a first preset time interval according to the heat values ​​of the images in the similar image set corresponding to each candidate scene type. Since the image content that the user needs to view may be different in different time periods or scenes, the target image may be updated at a first preset time interval to obtain an updated preview image and cover.

[0093] In an exemplary embodiment, since the image content and the number of images in the image set may change, such as adding an image or deleting an image, the target scene type may be updated at a second preset time interval according to the image features and scene types of each image in the image set. In order to accurately obtain a cover with a good visual effect and at the same time integrate the main image content in the image set, the target scene type and the corresponding similar image set are re-determined at a second preset time interval, so that the cover determined subsequently takes into account both the interest and the accuracy of the content.

[0094] It should be noted that the detailed details of updating the target scene type according to the image features and scene types of each image in the image set after the second preset time interval can be found in the records of determining the target scene type according to the image features and scene types of each image in the image set in steps S410 to S420, which will not be repeated here.

[0095] Fig.11 FIG. 1 shows a display effect diagram of a cover of a different image collection according to an exemplary embodiment of the present disclosure. Fig.11As shown, the preview image with long exposure effect is used as the cover of the image set, which improves the aesthetic effect of the cover and can reflect the important image content in the image set to a certain extent. The cover can be a cover of a photo album, a video clip cover (such as a video network log vlog cover), and other scenes.

[0096] Combine the following Fig.12 , taking the album cover scenario as an example, the cover determination method of the embodiment of the present disclosure is explained.

[0097] Step S1210: Determine an album folder, which includes image or video media files.

[0098] The album folder can be specified by the user or selected randomly.

[0099] Step S1220: Extract image features from the images in the album folder in sequence using a scene classifier, and determine the scene type corresponding to each image based on the image features.

[0100] Step S1230: Determine the target scene type according to the image features and scene types of the images in the album file, so that the image materials corresponding to the target scene type are the largest and meet the number of images required by the image processing method.

[0101] Among them, the first number of images belonging to each scene type can be determined first, and the scene types corresponding to the first number being less than the number threshold are eliminated to obtain candidate scene classes, and for each candidate scene type, the image features of each image under the candidate scene type are compared, and a similar image set is determined based on the feature comparison result, so that the number of images contained in the similar image set is minimized, and at least one target scene type is determined based on the matching relationship between the number of images in the similar image set of each candidate scene type and the second number of images required by the corresponding image processing method.

[0102] Step S1240: Process the images in the album folder that belong to the target scene type according to the image processing method corresponding to the target scene type to obtain a preview image corresponding to the target scene type.

[0103] Among them, if the target scene type is a long exposure effect type, in step S1241, if the target scene type is a long exposure effect type, it is necessary to further determine whether it is a long exposure effect type with a portrait as the main body.

[0104] In step S1242, if the target scene type is a long exposure effect type with a portrait as the main body, the human body area of ​​each image is extracted, and the images with the extracted human body area are processed based on the reference image to obtain a fused image. Finally, the portrait area of ​​the reference image is fused with the fused image to obtain a preview image.

[0105] In step S1243, if the target scene type is a long exposure effect type that does not take a portrait as the main subject, there is no need to extract the portrait area, and the preview image can be obtained by processing according to the long exposure effect.

[0106] In step S1250, the cover of the album folder is determined based on the obtained preview image.

[0107] In summary, the cover determination method of the exemplary embodiment of the present disclosure can adaptively select the target scene type according to the image features and scene types of each image in the album folder, and use the image processing method corresponding to the target scene type to process the image material related to the target scene type, so as to obtain a preview image effect consistent with the target scene type, so that the cover of the image set determined according to the preview image is more beautiful and interesting, the cover quality is improved, the user's visual experience is enhanced, and the user is greatly attracted. The preview image is obtained by combining the target scene type and the relevant image material in the album folder, and while ensuring the aesthetic feeling, the obtained preview image is displayed to facilitate the user to quickly understand the content of the album folder and improve the user experience.

[0108] It should be noted that the above figures are only schematic illustrations of the processes included in the method according to the exemplary embodiments of the present disclosure, and are not intended to be limiting. It is easy to understand that the processes shown in the above figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.

[0109] For further reference, Fig.13 As shown, in an exemplary embodiment of the present disclosure, a cover determination device 1300 is provided, comprising a scene determination module 1310, an image processing module 1320 and a cover determination module 1330. Among them:

[0110] A scene determination module 1310, configured to determine a target scene type according to image features and scene types of each image in the image set;

[0111] An image processing module 1320, configured to process the images in the image set belonging to the target scene type according to an image processing method corresponding to the target scene type, so as to obtain a preview image of the target scene type;

[0112] The cover determination module 1330 is used to determine the cover of the image set based on the preview image.

[0113] In an exemplary embodiment, the scene determination module 1310 is configured to perform: determining a first number of images belonging to each scene type, eliminating scene types corresponding to the first number being less than a quantity threshold, and obtaining candidate scene types; for each candidate scene type, comparing image features of each image under the candidate scene type, and determining a similar image set based on the feature comparison result; obtaining a second number of images required for an image processing method corresponding to each candidate scene type, and determining a target scene type based on a matching relationship between the number of images in the similar image set of each candidate scene type and the second number corresponding to each candidate scene type.

[0114] In an exemplary embodiment, the scene determination module 1310 is configured to perform: determining multiple candidate image sets of candidate scene types based on feature comparison results, wherein the similarity between images in the candidate image sets is greater than a similarity threshold; and determining similar image sets from the multiple candidate image sets so that the number of images contained in the similar image sets is minimized.

[0115] In an exemplary embodiment, the scene determination module 1310 is configured to execute: if there is a target similar image set whose number of images matches the second number, determine at least one target scene type from the candidate scene types corresponding to the target similar image set.

[0116] In an exemplary embodiment, the image processing module 1320 is configured to execute: processing the images in the target similar image set corresponding to the target scene type according to the image processing method, and fusing the processed images to obtain a preview image.

[0117] In an exemplary embodiment, the target scene type is a long exposure effect type with a portrait as the main body; the image processing module 1320 is configured to execute: determining the human body area of ​​each image in the target similar image set; determining a reference image from the target similar image set, processing each image excluding the human body area based on the reference image, and fusing the processing results to obtain a fused image; fusing the human body area of ​​the reference image with the fused image to obtain a preview image.

[0118] In an exemplary embodiment, the image processing module 1320 is configured to execute: processing the images in the target similar image set corresponding to the target scene type according to the image processing method, and selecting at least one image from the processed images as a preview image.

[0119] In an exemplary embodiment, the image processing module 1320 is configured to execute: if there are multiple target scene types, the images belonging to each target scene type in the image set are processed according to the image processing method of the corresponding target scene type to obtain preview images of each target scene type; the cover determination module 1330 is configured to execute: based on the preview images of each target scene type, a dynamic image cover is formed, and the dynamic image cover displays the preview images of each target scene type in a carousel format; and the dynamic image cover is determined as the cover of the image set.

[0120] In an exemplary embodiment, the scene determination module 1310 is configured to perform: if there is no target similar image set, determining the preset scene type as the target scene type; obtaining the target image with the largest heat value from the similar image sets corresponding to each candidate scene type, and determining the target image as an image belonging to the target scene type; wherein each target image is processed according to the image processing method corresponding to the preset scene type to obtain a preview image of each target image.

[0121] In an exemplary embodiment, the cover determination device 1300 is further configured to execute: updating the target image according to the heat values ​​of the images in the similar image set corresponding to each candidate scene type at intervals of a first preset time.

[0122] In an exemplary embodiment, the cover determination module 1330 is further configured to execute: generating any one of a static image, a dynamic image, and a short video according to each preview image; and determining the generated result as the cover of the image set.

[0123] In an exemplary embodiment, the cover determination device 1300 is further configured to execute: updating the target scene type according to the image features and scene types of each image in the image set at a second preset time interval.

[0124] The specific details of each module in the above device have been described in detail in the implementation method of the method part. The undisclosed details can be found in the implementation method of the method part, so they will not be repeated here.

[0125] Those skilled in the art will appreciate that various aspects of the present disclosure may be implemented as systems, methods or program products. Therefore, various aspects of the present disclosure may be specifically implemented in the following forms, namely: complete hardware implementation, complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein as "circuits", "modules" or "systems".

[0126] The exemplary embodiments of the present disclosure also provide an electronic device for the above method, which may be the above imaging device or server. Generally, the electronic device includes at least a processor and a memory, the memory is used to store executable instructions of the processor, and the processor is configured to execute the above method by executing the executable instructions.

[0127] Below Fig.14 Taking the mobile terminal 1400 in the example, the structure of the electronic device in the embodiment of the present disclosure is exemplarily described. It should be understood by those skilled in the art that in addition to the components specifically used for mobile purposes, Fig.14 The structure in the figure can also be applied to fixed type devices. In other embodiments, the mobile terminal 1400 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure can be implemented in hardware, software, or a combination of software and hardware. The interface connection relationship between the components is only shown schematically and does not constitute a structural limitation of the mobile terminal 1400. In other embodiments, the mobile terminal may also adopt the same Fig.14 Different interface connection methods, or a combination of multiple interface connection methods.

[0128] like Fig.14 As shown, the mobile terminal 1400 may specifically include: a processor 1401, a memory 1402, a bus 1403, a mobile communication module 1404, an antenna 1, a wireless communication module 1405, an antenna 2, a display screen 1406, a camera module 1407, an audio module 1408, a power module 1409, and a sensor module 1410.

[0129] Processor 1401 may include one or more processing units, for example, processor 1401 may include an AP (Application Processor), a modem processor, a GPU (Graphics Processing Unit), an ISP (Image Signal Processor), a controller, an encoder, a decoder, a DSP (Digital Signal Processor), a baseband processor and / or an NPU (Neural-Network Processing Unit), etc.

[0130] The encoder can encode (i.e. compress) an image or video to reduce the data size for easy storage or transmission. The decoder can decode (i.e. decompress) the encoded data of the image or video to restore the image or video data. The mobile terminal 1400 can support one or more encoders and decoders, such as: image formats such as JPEG (Joint Photographic Experts Group), PNG (Portable Network Graphics), BMP (Bitmap), and video formats such as MPEG (Moving Picture Experts Group) 1, MPEG10, H.1063, H.1064, and HEVC (High Efficiency Video Coding).

[0131] The processor 1401 may be connected to the memory 1402 or other components via a bus 1403 .

[0132] The memory 1402 may be used to store computer executable program codes, which may include instructions. The processor 1401 executes various functional applications and data processing of the mobile terminal 1400 by running the instructions stored in the memory 1402. The memory 1402 may also store application data, such as images, videos, and other files.

[0133] The communication function of the mobile terminal 1400 can be implemented by the mobile communication module 1404, antenna 1, wireless communication module 1405, antenna 2, modulation and demodulation processor and baseband processor. Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. The mobile communication module 1404 can provide 3G, 4G, 5G and other mobile communication solutions applied to the mobile terminal 1400. The wireless communication module 1405 can provide wireless communication solutions such as wireless LAN, Bluetooth, and near field communication applied to the mobile terminal 1400.

[0134] The display screen 1406 is used to implement display functions, such as displaying user interfaces, images, videos, etc., and displaying abnormal prompt information. The camera module 1407 is used to implement shooting functions, such as shooting images, videos, etc., to collect scene images. The audio module 1408 is used to implement audio functions, such as playing audio, collecting voice, etc. The power module 1409 is used to implement power management functions, such as charging the battery, powering the device, monitoring the battery status, etc. The sensor module 1410 may include one or more sensors to implement corresponding induction detection functions.

[0135] In addition, the exemplary embodiments of the present disclosure further provide a computer-readable storage medium on which a program product capable of implementing the above-mentioned method of the present specification is stored. In some possible implementations, various aspects of the present disclosure may also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary embodiments of the present disclosure described in the above-mentioned "Exemplary Method" section of the present specification.

[0136] It should be noted that the computer-readable medium shown in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0137] In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, apparatus, or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0138] In addition, program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).

[0139] Other embodiments of the present disclosure will be readily apparent to those skilled in the art after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and embodiments are to be considered merely as exemplary, and the true scope and spirit of the present disclosure are indicated by the claims.

Claims

1. A cover determination method, characterized in that: include: Determine the target scene type according to the image features and scene types of each image in the image set; Processing the images in the image set belonging to the target scene type according to the image processing method corresponding to the target scene type to obtain a preview image of the target scene type; A cover for the image collection is determined based on the preview image.

2. The method according to claim 1, characterized in that The step of determining the target scene type according to the image features and scene types of each image in the image set includes: Determine a first number of images belonging to each of the scene types, and eliminate scene types corresponding to images whose first number is less than a number threshold, to obtain candidate scene types; For each of the candidate scene types, image features of each image under the candidate scene type are compared, and a similar image set is determined according to the feature comparison result; A second number of images required by the image processing method corresponding to each of the candidate scene types is obtained, and the target scene type is determined according to a matching relationship between the number of images in the similar image set of each of the candidate scene types and the second number corresponding to each of the candidate scene types.

3. The method according to claim 2, characterized in that For each of the candidate scene types, comparing the image features of each image under the candidate scene type, and determining a similar image set according to the feature comparison result, including: Determine a plurality of candidate image sets of the candidate scene type according to the feature comparison result, wherein the similarity between images in the candidate image sets is greater than a similarity threshold; The similar image set is determined from the multiple candidate image sets so that the number of images included in the similar image set is minimized.

4. The method according to claim 2, characterized in that: The determining the target scene type according to a matching relationship between the number of images in the similar image sets of each candidate scene type and the second number corresponding to each candidate scene type includes: If there is a target similar image set whose number of images matches the second number, at least one target scene type is determined from the candidate scene types corresponding to the target similar image set.

5. The method according to claim 2, characterized in that: There are a plurality of images in the target similar image set corresponding to the target scene type; and processing the images in the image set belonging to the target scene type according to the image processing method corresponding to the target scene type to obtain a preview image of the target scene type, including: The images in the target similar image set corresponding to the target scene type are processed according to the image processing method, and the processed images are fused to obtain the preview image.

6. The method according to claim 5, characterized in that The target scene type is a long exposure effect type with a portrait as the main body; the images in the target similar image set corresponding to the target scene type are processed according to the image processing method, and the processed images are fused to obtain the preview image, including: Determine the human body region of each image in the target similar image set; Determine a reference image from the target similar image set, process each image excluding the human body region based on the reference image, and fuse the processing results to obtain a fused image; The human body region of the reference image is fused with the fused image to obtain the preview image.

7. The method according to claim 2, characterized in that The step of processing the images in the image set belonging to the target scene type according to an image processing method corresponding to the target scene type to obtain a preview image of the target scene type includes: The images in the target similar image set corresponding to the target scene type are processed according to the image processing method corresponding to the target scene type, and at least one image is selected from the processed images as the preview image.

8. The method according to any one of claims 5 to 7, characterized in that If there are multiple target scene types, the images in the image set belonging to each target scene type are processed according to the image processing method of the corresponding target scene type to obtain preview images of each target scene type; The determining a cover of the image set based on the preview image comprises: forming a dynamic image cover according to the preview images of each target scene type, wherein the dynamic image cover displays the preview images of each target scene type in a carousel form; The dynamic image cover is determined as the cover of the image collection.

9. The method according to claim 4, characterized in that The method further comprises: If the target similar image set does not exist, determining a preset scene type as the target scene type; Acquire a target image with the largest heat value from a set of similar images corresponding to each of the candidate scene types, and determine the target image as an image belonging to the target scene type; Wherein, each of the target images is processed according to the image processing method corresponding to the preset scene type to obtain a preview image of each of the target images.

10. The method according to claim 9, characterized in that The method further comprises: At first preset time intervals, the target image is updated according to heat values ​​of images in a similar image set corresponding to each of the candidate scene types.

11. The method according to claim 9 or 10, characterized in that: Determining a cover of the image set based on the preview image includes: Generate any one of a static image, a dynamic image, and a short video according to each of the preview images; The generated result is determined as the cover of the image set.

12. The method according to claim 1, characterized in that The method further comprises: At second preset time intervals, the target scene type is updated according to the image features and scene types of each image in the image set.

13. A cover determination device, characterized in that: include: A scene determination module, used to determine the target scene type according to the image features and scene types of each image in the image set; An image processing module, used for processing the images in the image set belonging to the target scene type according to an image processing method corresponding to the target scene type, so as to obtain a preview image of the target scene type; A cover determination module is used to determine the cover of the image set based on the preview image.

14. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to perform the method of any one of claims 1 to 12 by executing the executable instructions.

15. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 12 is implemented.