Image processing method, device, electronic device and storage medium
By obtaining and judging the time length of the image collection to be processed, updating the time length and repeatedly generating the picture collection, the problem of insufficient intelligence of the existing picture management software is solved, and the accuracy and user experience of picture collection generation are improved.
Patent Information
- Application Number
- CN202010916993.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-03
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2040-09-03
AI Technical Summary
The existing image management software lacks intelligence when managing and displaying user pictures, resulting in poor user experience and poor management results.
By obtaining the set of pending pictures within the first time period and determining whether the preset generation conditions are met. If they are not met, the time length is updated and the picture collection is repeatedly obtained until the conditions are met, the corresponding picture collection will be automatically generated, and each picture is unique. Exist in an atlas.
It improves the accuracy of picture collection generation and users' viewing efficiency and experience of pictures, and realizes more intelligent picture collection generation.
Smart Images

Figure CN112069345B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electronic devices, and more specifically, to an image processing method, device, electronic device and storage medium. Background Art
[0002] With the development of science and technology and the improvement of living standards, more and more users like to use electronic devices to take photos and record some things in life. A large amount of user picture data is stored in electronic devices. In order to effectively manage these picture data, a large number of album management software using new technologies have emerged. However, the picture management methods of related management software are usually simple and the picture management effect is not good. Summary of the invention
[0003] In view of the above problems, the present application proposes an image processing method, device, electronic device and storage medium, which can improve the above problems.
[0004] In a first aspect, an embodiment of the present application provides a method for processing an image, the method comprising: obtaining a set of images to be processed within a first time length; determining whether the set of images satisfies a preset generation condition for an atlas of the first time length; when the set of images does not satisfy the preset generation condition, obtaining a second time length greater than the first time length as a new first time length; repeating the step of obtaining the set of images to be processed within the first time length, to the step of determining whether the set of images satisfies the preset generation condition for an atlas of the first time length, until the set of images satisfies the preset generation condition; when the set of images satisfies the preset generation condition, generating an atlas of the first time length according to the set of images, wherein each image uniquely exists in one atlas.
[0005] In a second aspect, an embodiment of the present application provides an image processing device, comprising: an image acquisition module, used to acquire a set of images to be processed within a first time length; a condition judgment module, used to judge whether the image set satisfies a preset generation condition of an atlas of the first time length; a first execution module, used to acquire a second time length greater than the first time length as a new first time length when the image set does not meet the preset generation condition; a repeated execution module, used to repeatedly execute the step of acquiring the set of images to be processed within the first time length, to the step of judging whether the image set meets the preset generation condition of an atlas of the first time length, until the image set meets the preset generation condition; a second execution module, used to generate an atlas of the first time length according to the image set when the image set meets the preset generation condition, wherein each image uniquely exists in one atlas.
[0006] In a third aspect, an embodiment of the present application provides an electronic device, comprising: one or more processors; a memory; one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more applications are configured to execute the image processing method provided in the first aspect above.
[0007] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a program code is stored. The program code can be called by a processor to execute the image processing method provided in the first aspect above.
[0008] The solution provided by the present application is that the electronic device first obtains a set of pictures to be processed within a first time length, and determines whether the set of pictures meets the preset generation condition of the atlas of the first time length. When the set of pictures does not meet the preset generation condition, the electronic device obtains a second time length greater than the first time length as a new first time length, and then repeats the above steps of obtaining the set of pictures to be processed within the first time length according to the new first time length, to the above steps of determining whether the set of pictures meets the preset generation condition of the atlas of the first time length, until the set of pictures meets the preset generation condition, and when the set of pictures meets the preset generation condition, the electronic device can automatically generate an atlas corresponding to the first time length according to the set of pictures to be processed for the first time length, wherein each picture exists only in one atlas. In this way, when the set of pictures within the first time length meets the preset generation condition, the atlas of the first time length can be automatically generated first, and when the set of pictures within the first time length does not meet the preset generation condition, the time length of the first time length can be updated, and then it can be determined whether the atlas of the updated first time length can be automatically generated first, thereby realizing a more intelligent generation of the atlas. At the same time, since each picture only exists in one atlas, by automatically generating the atlas of the first duration first, each picture can be generated into the appropriate atlas, which improves the accuracy of atlas generation and enhances the user's viewing efficiency and viewing experience of pictures. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0010] Figure 1 A schematic diagram of a process flow of a picture processing method provided by an embodiment of the present application is shown.
[0011] Figure 2A flowchart of a picture processing method provided by another embodiment of the present application is shown.
[0012] Figure 3 A flow chart of step S220 in the image processing method provided in another embodiment of the present application is shown.
[0013] Figure 4 A schematic flow chart of step S230 in the image processing method provided in another embodiment of the present application is shown.
[0014] Figure 5 Another flowchart of a picture processing method provided by another embodiment of the present application is shown.
[0015] Figure 6 A schematic flow chart of step S240 in the image processing method provided in another embodiment of the present application is shown.
[0016] Figure 7 A flowchart of a picture processing method provided by yet another embodiment of the present application is shown.
[0017] Figure 8 A block diagram of an image processing device provided by an embodiment of the present application is shown.
[0018] Fig. 9 A block diagram of an electronic device according to an embodiment of the present application is shown for executing the image processing method according to an embodiment of the present application.
[0019] Fig.10 A storage unit according to an embodiment of the present application is shown for storing or carrying program codes for implementing the image processing method according to an embodiment of the present application. DETAILED DESCRIPTION
[0020] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0021] With the development of science and technology and the improvement of living standards, more and more users like to use electronic devices to take photos and record some things in life. As a result, a large amount of user picture data is stored in electronic devices. In order to effectively manage these picture data, a large number of album management software using new technologies have emerged to help users manage their album collections intelligently and effectively.
[0022] However, the inventors found in their research on related image processing methods that the image management methods of related management software are single. For example, images are displayed directly in the order of their acquisition time, and the images cannot be displayed intelligently, resulting in poor user experience and poor image management effect.
[0023] After long-term research, the inventors have discovered and proposed the image processing method, device, electronic device, and storage medium provided in the embodiments of the present application, which can preferentially generate an atlas of the first duration, so that each image can be generated into an appropriate atlas, thereby improving the accuracy of atlas generation and improving the user's viewing efficiency and viewing experience of images. The specific image processing method is described in detail in the subsequent embodiments.
[0024] See also Figure 1 , Figure 1 FIG. 1 is a flow chart of a method for processing an image provided by an embodiment of the present application. In a specific embodiment, the method for processing an image can be applied to Figure 8 The picture processing device 700 and the electronic device equipped with the picture processing device 700 are shown in FIG. Fig. 9 ). Figure 1 The process shown is described in detail, and the image processing method shown may specifically include the following steps:
[0025] Step S110: Obtain a set of pictures to be processed within a first time period.
[0026] In an embodiment of the present application, when the electronic device needs to automatically generate an atlas, it can first obtain a set of pictures to be processed within a first time period. The set of pictures to be processed can be composed of pictures that need to generate an atlas.
[0027] In some embodiments, the electronic device can perform time statistics. Specifically, the electronic device can record the length of time between the current time and the time when the atlas was last generated, so as to obtain a set of pictures to be processed within the first time when the time reaches the first time. Among them, the first time is the priority time period in which the electronic device can generate an atlas, which can be one day, one week, or one month, etc., to correspond to the generation of a one-day atlas, a one-week atlas, or a one-month atlas, etc. The time length of the first time can be a default value or can be set by the user, which is not limited here. In some embodiments, each time the electronic device generates an atlas, it refreshes the time record to re-perform time statistics, so that the time length between the current time and the time when the atlas was last generated can be accurately recorded.
[0028] In some embodiments, pictures collected by the camera of the electronic device within the first time period and not generated into an atlas may be obtained as the picture set to be processed within the first time period. For example, the picture set to be processed may be obtained from the photo album of the electronic device. In other embodiments, pictures received from the network or other electronic devices within the first time period and not generated into an atlas may be obtained as the picture set to be processed within the first time period. For example, the picture set to be processed may be obtained from the cache of a chat application of the electronic device, or may be obtained from a server connected to the electronic device, etc. This is not limited here.
[0029] In some embodiments, the electronic device may be provided with a cache pool, which may be used to store a collection of pictures to be processed. When a user uses an electronic device to take a picture, the electronic device may store the captured picture and put the picture into the cache pool. Thus, when the time length between the current time and the time when the last collection was generated reaches the first time length, the electronic device may obtain the collection of pictures to be processed from the cache pool.
[0030] In some embodiments, each image may be configured with an atlas generation identifier, which may be used by the electronic device to identify which images have been used to execute the image processing method provided in this embodiment and which images have not been used to execute the image processing method provided in this embodiment. In this manner, the electronic device may determine the images that have not been used to execute the image processing method provided in this embodiment as a set of images to be processed based on the corresponding set generation identifier when the time length between the current time and the time of the last atlas generation reaches a first time length.
[0031] In some embodiments, the picture in the picture set to be processed within the first time length may be one or more pictures. If the picture set to be processed within the first time length includes only one picture, the electronic device may temporarily not process the picture, but extend the time length of the first time length to the second time length, so that the picture set to be processed within the second time length may include multiple pictures, and the multiple pictures may include one picture to be processed within the first time length. In other words, the electronic device can wait for a longer period of time, and the electronic device may obtain new pictures to be processed during the waiting period, so that when the electronic device waits to the second time length, the obtained picture set of all pictures to be processed within the second time length may include multiple pictures, including the one picture that was not processed within the first time length. Of course, in some special scenarios, the electronic device may also use only this one picture as the picture in the final generated picture set.
[0032] Step S120: Determine whether the picture set meets the preset generation condition of the picture set of the first duration. If yes, step S130 may be executed; if no, step S140 may be executed.
[0033] Step S130: Generate an atlas of the first duration based on the picture set.
[0034] Step S140: Acquire a second duration whose duration is greater than the first duration as a new first duration.
[0035] In an embodiment of the present application, when the electronic device needs to automatically generate an atlas, it can give priority to generating an atlas of the first duration. Therefore, when the electronic device obtains a set of pictures to be processed within the first duration, it can first determine whether it can give priority to generating an atlas of the first duration. Specifically, the electronic device can determine whether the set of pictures to be processed within the first duration meets the preset generation conditions of the atlas of the first duration. When the set of pictures to be processed within the first duration meets the preset generation conditions of the atlas of the first duration, the electronic device can generate an atlas corresponding to the first duration based on the picture set, wherein each picture exists uniquely in one atlas. When the set of pictures to be processed within the first duration does not meet the preset generation conditions of the atlas of the first duration, the electronic device may not process the picture set, and at the same time, may obtain a second duration whose time length is greater than the first duration as a new first duration, so as to continue the preset generation condition judgment of the atlas of the first duration based on the new first duration.
[0036] It is understandable that, since each picture exists only in one atlas, if the set of pictures to be processed within any time length can generate an atlas corresponding to any time length, then when the electronic device has generated an atlas with a long time span based on a recent picture, it can no longer generate an atlas with a short time span based on the same picture. As a result, when the user views the picture, he cannot view the recent atlas in the recent atlas, resulting in low accuracy of atlas generation and poor user viewing experience of the picture. Based on this, the priority time span for atlas generation can be set for the electronic device, the first time span, according to the time span corresponding to the atlas that the user prefers to view, so as to give priority to generating an atlas of a time span. When the atlas of the time span cannot be generated, a new time span, the second time span, is considered to give priority to generating the atlas of the time span again. Based on the principle that each picture exists only in one atlas, it can be guaranteed that each picture can exist in a suitable atlas, which improves the user's viewing efficiency and viewing experience of the picture. At the same time, it is also considered that there are other factors that affect the atlas generation, for example, too few pictures, low picture clarity, resulting in poor atlas generation. Therefore, corresponding generation conditions can also be set for atlas generation, so that the atlas can be generated only when the generation conditions are met, reducing the impact of other factors on atlas generation.
[0037] Specifically, the electronic device may preferentially obtain a set of pictures to be processed within a first duration to determine whether the atlas of the first duration can be preferentially generated. Among them, it may be determined whether the set of pictures to be processed within the first duration meets the preset generation condition of the atlas of the first duration. If the set of pictures to be processed within the first duration meets the preset generation condition of the atlas of the first duration, it may indicate that the electronic device can preferentially generate the atlas of the first duration, then the electronic device may directly generate the atlas of the first duration according to the set of pictures to be processed within the first duration obtained above, thereby improving the viewing efficiency and viewing experience of the user for the pictures. If the set of pictures to be processed within the first duration does not meet the preset generation condition of the atlas of the first duration, it may indicate that the electronic device cannot preferentially generate the atlas of the first duration, and the electronic device may set the second duration whose time length is greater than the first duration as the new priority time span for atlas generation, so as to preferentially generate the atlas of the second duration. That is, the electronic device may obtain the second duration whose time length is greater than the first duration as the new first duration, which extends the time length of the original first duration, and then determine whether the atlas of the new first duration can be generated. It can also be understood that the electronic device may use the second duration, which is longer than the first duration, as the new first duration to repeatedly execute steps S110 to S120.
[0038] It is understandable that, when the second time length greater than the first time length is used as the new first time length, and steps S110 to S120 are repeatedly executed, if the picture set to be processed in the new first time length still does not meet the preset generation conditions of the atlas of the new first time length, the electronic device can also re-execute step S140, that is, obtain the second time length greater than the new first time length, and use it as the new first time length again, to repeat steps S110 to S120, until the picture set to be processed in the new first time length meets the preset generation conditions of the atlas of the new first time length, and then the electronic device can generate the atlas corresponding to the new first time length according to the picture set in the new first time length. In this way, by giving priority to generating the atlas of the first time length, each picture can be generated into a suitable atlas, which improves the accuracy of atlas generation and improves the user's viewing efficiency and viewing experience of pictures.
[0039] That is to say, step S110, step S120, and step S140 form a loop structure, step S120 is the loop judgment condition in the loop structure, step S140 and step S110 are the loop body in the loop structure, when the loop judgment condition is not met, the electronic device executes the steps in the loop body and then returns to the loop judgment condition, when the loop judgment condition is met, the electronic device jumps out of the loop structure and executes step S120 after the loop structure.
[0040] The preset generation condition of the atlas of the first duration may be the minimum requirement that the picture set of the first duration needs to meet when the electronic device generates the atlas of the first duration based on the picture set. The preset generation condition of the atlas may be a default configuration or may be configured by the user. Different preset generation conditions of the atlas may be set according to different first durations, and different preset generation conditions of the atlas may be set according to different atlas types.
[0041] As a way, the preset generation condition of the atlas of the first duration may be the quantity condition that the picture set of the first duration needs to meet when the electronic device generates the atlas of the first duration based on the picture set, that is, when the picture set to be processed in the first duration reaches the quantity condition, the electronic device can successfully generate the atlas of the first duration based on the picture set. As another way, the preset generation condition of the atlas of the first duration may be the type requirement that the pictures in the picture set of the first duration need to meet when the electronic device generates the atlas of the first duration based on the picture set. The type may correspond to the type of the generated atlas. The type may be a person, an environment, or a specific type of collection location, etc., which is not limited here. For example, when the type of the picture in the picture set to be processed in the first duration is a person picture, or whether it contains a person, the electronic device can successfully generate a person atlas of the first duration based on the picture set. The specific preset generation condition of the atlas of the first duration is not limited here, for example, it can also be the image quality (such as clarity, picture size, etc.) requirements that the pictures in the picture set of the first duration need to meet when the electronic device generates the atlas of the first duration based on the picture set.
[0042] In some embodiments, after the electronic device generates an atlas of the first duration based on the set of pictures to be processed within the first duration, it can clear the set of pictures to be processed so as to subsequently accumulate new unprocessed pictures, thereby ensuring that each picture exists uniquely in one atlas.
[0043] The picture processing method provided by the embodiment of the present application is that the electronic device first obtains a picture set to be processed within a first time length, and determines whether the picture set meets the preset generation condition of the atlas of the first time length. When the picture set does not meet the preset generation condition, the electronic device obtains a second time length greater than the first time length as a new first time length, and then repeats the above steps of obtaining the picture set to be processed within the first time length according to the new first time length, to the above steps of determining whether the picture set meets the preset generation condition of the atlas of the first time length, until the picture set meets the preset generation condition, and when the picture set meets the preset generation condition, the electronic device can automatically generate an atlas corresponding to the first time length according to the picture set to be processed for the first time length, wherein each picture exists only in one atlas. In this way, when the picture set within the first time length meets the preset generation condition, the atlas of the first time length can be automatically generated first, and when the picture set within the first time length does not meet the preset generation condition, the time length of the first time length can be updated, and then it can be determined whether the updated atlas of the first time length can be automatically generated first, thereby realizing a more intelligent generation of the atlas. At the same time, since each picture only exists in one atlas, by automatically generating the atlas of the first duration first, each picture can be generated into the appropriate atlas, which improves the accuracy of atlas generation and enhances the user's viewing efficiency and viewing experience of pictures.
[0044] See also Figure 2 , Figure 2 A schematic diagram of a process flow of a picture processing method provided by another embodiment of the present application is shown below. Figure 2 The process shown is described in detail, and the image processing method shown may specifically include the following steps:
[0045] Step S210: Obtain a set of pictures to be processed within a first time period.
[0046] Step S220: Determine whether the picture set meets the preset generation condition of the picture set of the first duration. If yes, then execute step S230; if no, then execute steps S240 to S250.
[0047] In the embodiment of the present application, step S210 and step S220 can refer to the contents of the aforementioned embodiment and will not be described again here.
[0048] In some embodiments, the preset generation condition of the atlas of the first duration may be a quantity condition that the atlas of the first duration needs to meet when the electronic device generates the atlas of the first duration based on the picture set. Thus, when the electronic device needs to generate the atlas of the first duration first, it can determine whether the number of pictures in the picture set to be processed within the first duration meets the quantity condition. Figure 3, step S220 may include:
[0049] Step S221: Obtain the first number of pictures in the picture set.
[0050] Step S222: Determine whether the number of the first pictures reaches a specified number.
[0051] In some implementations, the preset generation condition of the atlas of the first duration may be that the number of pictures is greater than a specified number. The electronic device may obtain the first number of pictures in the picture set to be processed within the first duration, and then determine whether the first number of pictures reaches the specified number, and then determine whether the picture set meets the preset generation condition. The specific value of the specified number can be set according to actual needs, for example, it can be 1, or it can be 2, 10, etc.
[0052] When the number of first pictures reaches the specified number, it means that the picture set to be processed within the first time length meets the preset generation conditions of the picture set of the first time length. Therefore, the electronic device can generate the picture set of the first time length according to the picture set, that is, execute step S230. When the number of first pictures does not reach the specified number, it means that the picture set to be processed within the first time length does not meet the preset generation conditions of the picture set of the first time length. Therefore, the electronic device does not generate the picture set of the first time length according to the picture set, that is, does not execute step S230. At the same time, the electronic device can obtain a second time length greater than the first time length as a new first time length, and re-execute the above step of obtaining the picture set to be processed within the first time length, to the above step of determining whether the number of first pictures in the picture set reaches the specified number, until the number of first pictures in the picture set reaches the specified number. That is, execute steps S240 to S250.
[0053] Exemplarily, the specified number can be 10, that is, the electronic device generates a picture set of the first time length only when the number of first pictures in the picture set to be processed within the first time length is at least 10, and when the number of pictures is 0 to 9, the electronic device does not generate a picture set of the first time length.
[0054] Step S230: Generate an atlas of the first duration based on the picture set, wherein each picture exists only in one atlas.
[0055] In the embodiment of the present application, step S230 can refer to the contents of the aforementioned embodiment and will not be described again here.
[0056] In some embodiments, when the picture set meets the preset generation condition of the picture set of the first duration, the electronic device can further determine whether a more specific picture set can be generated. Figure 4 , step S230 may include:
[0057] Step S231: extracting pictures belonging to the same person from the picture set as a similar picture group.
[0058] In some examples, the electronic device can further determine whether a specified type of atlas can be generated, where the specified type can be a person type, an environment type, a location type, etc., where the person type can be a single person, a pair, multiple people, a parent and a child, a friend, etc., the environment type can be indoor, outdoor, natural scenery, an amusement park, etc., and the location type can be a city, a country, etc. This is not limited here.
[0059] As a method, the specified type may be a character type. The electronic device may further determine whether a character atlas can be generated when the picture set meets the preset generation condition of the atlas of the first duration. Specifically, the electronic device may extract pictures belonging to the same character in the picture set as a similar picture group. Among them, when there are multiple characters in the pictures in the picture set, pictures belonging to each character may also be extracted to obtain different picture groups for different characters.
[0060] In some embodiments, when there are two characters in a picture, the electronic device may also extract pictures of the same two characters from the picture set as the same picture group corresponding to the two characters. Of course, the same picture group corresponding to more than two characters may also be extracted.
[0061] Step S232: Obtain the number of second pictures in the same type of picture group.
[0062] Step S233: Determine whether the number of the second pictures reaches a preset number. If yes, then execute step S234; if no, then execute step S235.
[0063] Step S234: Generate a character atlas of the first duration based on the same type of atlas groups.
[0064] Step S235: Generate an atlas of the first duration based on the picture set.
[0065] In some implementations, the electronic device further determines whether a specified type of atlas can be generated, which may be to extract pictures of the same type in the picture set as a similar picture group, where the type corresponds to the specified type. The electronic device can then determine whether the number of pictures in the similar picture group of the type reaches a specified number, and when it reaches the specified number, the specified type of atlas can be generated based on the similar picture group of the type, otherwise it cannot be generated.
[0066] As a method, when the electronic device needs to further determine whether a collection of pictures of the character type can be generated, the electronic device can extract pictures of the same character from the picture collection as a similar picture group, obtain the second number of pictures in the similar picture group, and then determine whether the second number of pictures reaches the preset number, and then determine whether the similar picture group can generate a collection of pictures of the character type. The specific value of the preset number can be set according to actual needs, for example, it can be 1, 2, 10, etc.
[0067] When the number of the second pictures reaches the preset number, it means that there are enough character pictures in the picture set to be processed within the first duration to generate a character type atlas, so the electronic device can generate a character atlas of the first duration corresponding to the same character based on the extracted similar picture group belonging to the same character, that is, execute step S234. When the number of the second pictures does not reach the preset number, it means that there are not enough character pictures in the picture set to be processed within the first duration to generate a character type atlas, that is, it is impossible to generate a specific type of atlas, at this time, the electronic device can directly generate a large category of atlas. Therefore, the electronic device can not generate a character type atlas based on the extracted similar picture group belonging to the same character, that is, it does not execute step S234, but directly generates the atlas of the first duration based on the picture set, that is, execute step S235. Thus, when the electronic device can preferentially generate an atlas of the first duration, it can preferentially generate a specific type of atlas, and when it cannot generate a specific type of atlas, it can generate a large category of atlas, which not only improves the accuracy of atlas generation, but also improves the user's viewing efficiency and viewing experience of pictures.
[0068] In some embodiments, when the generated atlas of the first duration includes the above-mentioned character atlas, the electronic device can also generate different atlas covers according to different character atlases, so that the user can directly understand the character object corresponding to the character atlas through the cover, realizing a more intelligent display of pictures and improving the user's viewing efficiency and viewing experience of pictures. Figure 5 , the image processing method of the present application may also include:
[0069] Step S236: extracting a set of face images from the character atlas.
[0070] In some embodiments, the electronic device can determine the face region of each image in the character collection, and extract the face image according to the face region as the face image set in the character collection, and select a suitable face image from the face image set as the cover of the character collection. The extracted face image set can be a face image of one person or a plurality of people, which is not limited here.
[0071] Step S237: According to the face image set, determine a face image that meets a preset image condition as the cover image of the character album.
[0072] After extracting the face image set from the character collection, the electronic device can determine the face image that meets the preset image condition as the cover image of the character collection based on the face images in the face image set. The preset image condition can be a quality condition, a size condition, an importance condition, etc.
[0073] In some embodiments, the preset image condition may be that the image quality is greater than the preset quality. The electronic device may first obtain a target face image with an image quality greater than the preset quality from the face image set as the cover image of the character album, thereby avoiding the selected album cover image being of low quality, which reduces the display effect of the album cover. The preset quality may be a pixel value threshold, a clarity threshold, an image kb byte size threshold, etc., which are not limited here.
[0074] As a method, when there are multiple target face images with image quality greater than a preset quality, the face image with the highest image quality can be obtained from the multiple target face images as the cover image of the character album. When there are multiple target face images with image quality greater than a preset quality, if the multiple target face images are faces of different people, the electronic device can also combine the multiple target face images to obtain a combined image as the cover image of the character album.
[0075] In some embodiments, when the face image set includes faces of multiple characters, the preset image condition may also be that the number of face images of the same character is greater than a preset number, and the electronic device may first obtain the number of face images of each character from the face image set, and when the number of face images of the target character is greater than the preset number, the face image of the target character may be used as the cover image of the character atlas. Among the face images of the target character, the face image with the highest image quality may be used as the cover image of the character atlas.
[0076] Step S238: Generate a cover of the character album based on the cover image of the character album.
[0077] In an embodiment of the present application, after the electronic device obtains the cover image of the above-mentioned character atlas, it can generate the cover of the character atlas according to the cover image. Since the face image that meets the preset image conditions is selected from the set of face images extracted from the character atlas as the cover image, the electronic device can present the atlas with the cover image corresponding to the character atlas when displaying the character atlas, so as to facilitate users to identify different character atlases and enhance user experience. For example, in the "User A and User B Travel Memories Atlas", the face images of User A and User B are selected as the cover images in the above manner, so that the user can easily recognize that the travel memories atlas is a collection of atlases in which User A and User B travel together.
[0078] In some embodiments, after obtaining the cover image of the character album, the electronic device may also perform image processing on the cover image to ensure the cover presentation effect of the character album. The image processing may be text editing, texture editing, special effect editing, etc., which are not limited here.
[0079] Step S240: determining the next preset duration as the second duration from a plurality of preset durations according to the order of the preset duration priorities from high to low.
[0080] Among them, the preset duration can be a plurality of pre-set duration types for generating atlases, for example, it can be a one-day, one-week, two-week, three-week, one-month, and half-year atlases. Then different priorities can be set for different preset durations, so that when the electronic device needs to automatically generate an atlas, it can be determined which type of atlas to generate first based on the priority of the preset duration. Among them, the time length of the preset duration is negatively correlated with the size of the duration priority, that is, when the time length of the preset duration increases step by step, the corresponding duration priority is reduced step by step.
[0081] In some embodiments, the preset duration priority may be determined based on the length of time from the last atlas generation. Specifically, the longer the duration from the last atlas generation, that is, the longer the time from the last atlas generation, the lower the priority of the duration; the shorter the duration from the last atlas generation, that is, the closer the time from the last atlas generation, the higher the priority of the duration. In other words, if the atlas is successfully generated currently, the next atlas generation may give priority to generating the atlas with the preset duration closest to the current one, that is, give priority to generating the recent atlas. For example, the preset duration priority may be day>one week>two weeks>three weeks>one month>six months, or one week>two weeks>three weeks>one month>six months, or one week>one month>six months. There is no specific limitation, as long as the duration increases step by step and the priority decreases step by step.
[0082] In an embodiment of the present application, the electronic device can determine the highest priority duration type from multiple preset durations according to a preset duration priority, as the above-mentioned first duration, so that each time the electronic device needs to generate an atlas, it can give priority to generating an atlas of the highest priority duration type, that is, the atlas of the first duration.
[0083] That is to say, after determining the duration type with the highest priority as the above-mentioned first duration, the electronic device can record the time length between the current time and the time when the last atlas was generated, so as to obtain the set of pictures to be processed within the first duration when the time length reaches the above-mentioned first duration, and determine whether the preset generation conditions of the atlas of the above-mentioned first duration are met based on the picture set, so as to determine whether the atlas of the above-mentioned first duration type can be generated preferentially.
[0084] If the picture set does not meet the preset generation conditions of the atlas of the above-mentioned first duration, it may indicate that the electronic device cannot give priority to generating the atlas of the above-mentioned first duration. At this time, the electronic device can determine the next preset duration of the above-mentioned first duration as the second duration from multiple preset durations according to the preset duration priority from high to low, so that the electronic device can generate the atlas according to the second duration. In other words, each time the electronic device needs to generate an atlas, it can give priority to generating the atlas of the highest priority - the first duration. When the atlas of the first duration cannot be generated, the second duration of the second priority is determined according to the duration priority, so as to give priority to generating the atlas of the second duration. Thereby, the electronic device can determine which type of atlas of which duration is to be generated first according to the priority from high to low.
[0085] For example, when the preset duration priority is one day > one week, the electronic device can obtain the highest priority duration type "one day" as the first duration mentioned above, so that the electronic device can preferentially generate a one-day atlas. When the "one-day" atlas cannot be generated, the electronic device can determine the secondary priority duration type according to the preset duration priority from high to low, that is, the next preset duration "one week" of "one day" as the second duration, so that the electronic device can preferentially generate a one-week atlas.
[0086] For example, in a specific application scenario, if the user takes some pictures on the same day, the electronic device can give priority to determining whether these pictures can generate a memory album for the day. If the memory album for the day cannot be generated, the electronic device can wait for a week and then determine whether the pictures taken within the week can generate a memory album for the week. If the memory album for the week cannot be generated either, the electronic device can wait for another month to determine whether the pictures taken within the month can generate a memory album for one month… In this way, the album of corresponding duration is generated according to the duration priority of one day>one week>one month.
[0087] Among them, the judgment condition for generating an atlas can be a judgment on the number of pictures. For example, the electronic device can give priority to judging whether the number of these pictures taken on the day has reached the specified number for generating the atlas of the day. When it has reached, the electronic device can generate the memory atlas of the day based on these pictures; when it has not reached, the electronic device can judge that these pictures cannot generate the memory atlas of the day. At this time, the electronic device caches and records these pictures, and then waits for a week. The electronic device can judge whether the number of these pictures cached in this week has reached the specified number for generating a week of atlases. If the number of these pictures cached in this week reaches the specified number for generating a week of atlases due to the accumulation of a week of picture caches, then the electronic device can generate a week of memory atlases based on these pictures, and then regenerate a new atlas. On the contrary, if the specified number is not reached, the electronic device can make a judgment for the next time until the generation condition of the atlas is met.
[0088] It can be understood that, since the pictures to be processed within the first duration require time to be accumulated slowly, the order of the duration priority of the electronic device generating the atlas from high to low needs to be from a shorter preset duration, gradually increasing to a longer preset duration. And if the order of the duration priority of generating the atlas from high to low is from a longer preset duration, gradually decreasing to a shorter preset duration, it is easy to have a certain picture exist in the atlas of a longer preset duration, but not in the shorter preset duration, which is not conducive to the user's habit of viewing recent pictures.
[0089] In some embodiments, when the picture set within the first duration does not meet the preset generation condition of the atlas of the first duration, the electronic device can determine whether there is a next preset duration of the first duration, thereby determining whether to generate the atlas of the next preset duration. Figure 6 , step S240 may include:
[0090] Step S241: Obtain the priority of each preset time length among multiple preset time lengths.
[0091] In some embodiments, when an electronic device is set with multiple preset durations for generating an atlas, when a set of pictures within a first duration does not meet the preset generation conditions of the atlas for the first duration, the electronic device can obtain the priority of each preset duration among the multiple preset durations to determine the next preset duration of the first duration.
[0092] In some embodiments, the electronic device may also obtain the priority of each preset duration in multiple preset durations at the beginning of the method to determine the preset duration with the highest priority as the first duration, and then the electronic device may determine whether the atlas of the first duration can be generated preferentially by obtaining the set of to-be-processed pictures within the first duration. When the atlas of the first duration cannot be generated, the next duration of the first duration is determined based on the priority of each preset duration in multiple preset durations.
[0093] In some embodiments, each preset duration may correspond to a priority tag, so that the electronic device can obtain the priority of each preset duration among the multiple preset durations based on the corresponding priority tag while obtaining multiple preset durations.
[0094] Step S242: sorting the plurality of preset durations in descending order of priority to obtain a sorting result.
[0095] In some embodiments, after obtaining the priority of each preset duration in the multiple preset durations, the electronic device can sort the multiple preset durations in order from high to low priority to obtain multiple preset duration sorting results. Thus, the electronic device can determine the sorting of each preset duration according to the sorting result, and can also determine the previous duration or next duration of each preset duration.
[0096] Step S243: Determine from the sorting results whether there is a next duration of the first duration. If yes, then execute step S244; if no, then execute step S245.
[0097] Step S244: Determine that the next duration is the second duration.
[0098] Step S245: Generate an atlas of the first duration based on the picture set.
[0099] In some embodiments, since the number of preset durations is limited, there is a situation where a preset duration does not have a next duration. Therefore, when the electronic device needs to obtain the next duration of the first duration, it can first determine whether there is a next duration for the first duration. Specifically, the electronic device can obtain the sorting position of the first duration from the sorting results of multiple preset durations to determine whether there is a next duration for the first duration based on the sorting position. If there is no next duration for the first duration. It means that the duration span of the generated atlas has reached the upper limit, and there is no more suitable duration atlas to be generated. At this time, the electronic device can directly generate the atlas of the first duration based on the picture set within the first duration. If there is a next duration for the first duration, it means that the duration span of the generated atlas has not reached the upper limit, and there is still a more suitable duration atlas to be generated. At this time, the electronic device can determine that the next duration is the second duration, so that the subsequent electronic device can generate the atlas of the second duration.
[0100] Step S250: Determine the second duration as a new first duration.
[0101] In some embodiments, after obtaining the next time length of the first time length - the second time length, the electronic device can determine the second time length as the new first time length, and repeat steps S210 to S220, that is, obtain the picture set to be processed in the new first time length, and determine whether the picture set meets the preset generation conditions of the picture set of the new first time length. If not, execute steps S230 to S250 to redetermine the next time length of the new first time length as the above-mentioned first time length, and repeat steps S210 to S220, and repeat this cycle until the picture set meets the preset generation conditions.
[0102] The image processing method provided by the embodiment of the present application is that the electronic device first obtains a set of images to be processed within a first time length, and determines whether the set of images meets the preset generation condition of the atlas of the first time length. When the set of images does not meet the preset generation condition, the electronic device determines the next preset time length as the second time length from multiple preset time lengths according to the preset time length priorities from high to low, so as to determine the second time length as the new first time length, and then repeats the step of obtaining the set of images to be processed within the first time length according to the new first time length, to the step of determining whether the set of images meets the preset generation condition of the atlas of the first time length, until the set of images meets the preset generation condition. When the set of images meets the preset generation condition, the electronic device can automatically generate an atlas corresponding to the first time length according to the set of images to be processed for the first time length, wherein each image uniquely exists in one atlas. In this way, by setting priorities for different time lengths, the electronic device can give priority to generating atlases of high priority time lengths (i.e., the first time length). When the atlas of high priority time length cannot be generated, the electronic device can continue to determine whether it can give priority to generating atlases of secondary priority time lengths (i.e., the second time length) based on the preset time length priority, thereby achieving more intelligent atlas generation, improving the accuracy of atlas generation, and enhancing the user's viewing efficiency and viewing experience of images.
[0103] See also Figure 7 , Figure 7 A schematic diagram of a process flow of a picture processing method provided by another embodiment of the present application is shown. The picture processing method is applied to the above electronic device. Figure 7 The process shown is described in detail, and the image processing method may specifically include the following steps:
[0104] Step S310: Acquire a set of pictures to be processed within a first time period, wherein the set of pictures includes pictures in an album of the electronic device.
[0105] In an embodiment of the present application, the picture collection processed by the electronic device may be pictures in the album of the electronic device, wherein the album may be understood as management software in the electronic device that manages pictures collected by the camera and pictures received from the network or other electronic devices, which may also be referred to as a photo gallery. The photo gallery may be a gallery corresponding to the gallery icon displayed by the electronic device in the main interface or other interfaces. For example, a mobile phone may display a "gallery" icon on the main interface. When the electronic device detects a click operation on the icon, it may respond to the click operation and display the gallery interface. The gallery interface may include pictures, photos, videos, etc.
[0106] Step S320: Determine whether the picture set meets the preset generation conditions of the picture set of the first duration. If yes, then execute steps S330 to S350; if no, then execute step S360.
[0107] Step S330: Generate an atlas of the first duration based on the picture set, wherein each picture exists only in one atlas.
[0108] In the embodiment of the present application, steps S320 to S330 can refer to the contents of the aforementioned embodiment and will not be described again here.
[0109] Step S340: In response to an operation of viewing the photo album, the order of each picture in the album is determined according to the time information of each picture.
[0110] After generating the atlas of the first duration, the electronic device may also display the pictures in the atlas. In an embodiment of the present application, when responding to viewing the operation for the above album, the electronic device may sort the pictures according to the time information of each picture in the above atlas, so that the electronic device can determine the sorting of each picture in the atlas. Among them, the time information may be the shooting time recorded when the picture is taken, or the receiving time recorded when the picture is received from the network or other electronic devices, which is not limited here. Among them, the operation for the above album may be a click operation on the album icon, or a click operation on the atlas.
[0111] Specifically, the electronic device can obtain the time information of each picture in each atlas for the operation of viewing the album, and sort all the pictures in each atlas according to the chronological order of the time information, so as to determine the sorting result of each picture in each atlas. It can be understood that the more forward the picture is sorted in the atlas, the closer its time information can be to the current time, so that the user can quickly view recent pictures, making it easy for the user to find the desired pictures, thereby improving the user's search efficiency. In some embodiments, multiple atlases in the album can also be sorted according to the chronological order of the pictures in each atlas, so as to determine the sorting result of each atlas.
[0112] The electronic device can also obtain the time information of each picture in the target atlas in response to the operation of viewing a target atlas in the album, and sort all the pictures in the target atlas according to the chronological order of the time information, thereby determining the sorting result of each picture in the target atlas.
[0113] Step S350: presenting the atlas based on the sorting.
[0114] In an embodiment of the present application, after obtaining the ranking of each picture in the atlas, the electronic device can present the atlas according to the ranking. Optionally, for the operation of viewing a target atlas in an album, the electronic device can display multiple pictures in the atlas on a page in the order of ranking, and the higher the ranking of the picture in the atlas, the higher its position in the page. Optionally, for the operation of viewing an album, the electronic device can also display multiple atlases on a page in the order of ranking, and the higher the atlas is in the ranking, the higher its position in the page.
[0115] In some embodiments, when a photo album includes multiple atlases, in order to facilitate the user to search for pictures in each atlas, the electronic device can also sort each atlas or the pictures in each atlas according to preset rules. Optionally, the electronic device can obtain the historical operation record of the pictures in the atlas, wherein the historical operation record may include: the number of views of the pictures, the number of shares of the pictures, and the number of edits of the pictures. Among them, the electronic device can respond to the click operation on the atlas, display the atlas, and the electronic device can record the number of clicks on the atlas as the number of views of the pictures; the electronic device can also respond to the user's operation to share the pictures, such as sharing to other devices, and for example, sharing to social platforms, etc., and the electronic device can record the number of shares of each picture; the electronic device can also respond to the editing operation of the picture, edit the picture, for example, beautify the picture, etc., and the electronic device can record the number of edits of the picture. It can be understood that the number of views of the pictures, the number of shares of the pictures, and the number of edits of the pictures can all reflect the importance and preference of the users for the pictures, and can reflect the importance of the collection. Therefore, each collection or the pictures in each collection are sorted according to the importance of the collection. Of course, the specific historical operation records are not limited to the above content and are not limited here.
[0116] Step S360: Obtain a second duration whose duration is greater than the first duration as a new first duration. Repeat steps S310 to S320 until the picture set meets the preset generation condition. In the embodiment of the present application, step S360 can refer to the content of the above embodiment, which will not be repeated here.
[0117] The image processing method provided in the embodiment of the present application may include images in an album of an electronic device. After the electronic device automatically generates an album corresponding to the first duration based on the image collection to be processed of the first duration, it can also respond to an operation for viewing the album and determine the order of each image based on the time information of each image in the album. The album can then be presented based on the order, making it convenient for users to find recent albums and improving the efficiency of users viewing images.
[0118] See also Figure 8 , which shows a structural block diagram of a picture processing device 700 provided in an embodiment of the present application, and the picture processing device 700 includes: a picture acquisition module 710, a condition judgment module 720, a first execution module 730, a repeated execution module 740 and a second execution module 750. Among them, the picture acquisition module 710 is used to acquire a picture set to be processed within a first duration; the condition judgment module 720 is used to judge whether the picture set meets the preset generation condition of the atlas of the first duration; the first execution module 730 is used to acquire a second duration greater than the first duration as a new first duration when the picture set does not meet the preset generation condition; the repeated execution module 740 is used to repeatedly execute the step of acquiring the picture set to be processed within the first duration to the step of judging whether the picture set meets the preset generation condition of the atlas of the first duration, until the picture set meets the preset generation condition; the second execution module 750 is used to generate the atlas of the first duration according to the picture set when the picture set meets the preset generation condition, wherein each picture exists only in one atlas.
[0119] In some embodiments, the first execution module 730 may include: a duration acquisition unit, used to determine, when the picture set does not meet the preset generation condition, the next preset duration from multiple preset durations as the second duration according to the preset duration priority from high to low, wherein the time length of the preset duration is negatively correlated with the size of the duration priority; and a duration update unit, used to determine the second duration as the new first duration.
[0120] In some embodiments, the duration acquisition unit can be specifically used to: when the picture set does not meet the preset generation condition, obtain the priority of each preset duration in multiple preset durations; sort the multiple preset durations in order from high to low according to the priority to obtain a sorting result; determine from the sorting result whether there is a next duration of the first duration; when the next duration exists, determine that the next duration is the second duration.
[0121] In some embodiments, the image processing apparatus 700 may further include: a third execution module, configured to generate an atlas of the first duration according to the image set when the next duration does not exist.
[0122] In some embodiments, the condition determination module 720 may be specifically configured to: obtain the first number of pictures in the picture set; and determine whether the first number of pictures reaches a specified number. In this embodiment, the first execution module 730 may be specifically configured to: when the first number of pictures does not reach the specified number, obtain a second duration whose time length is greater than the first duration as a new first duration.
[0123] In some embodiments, the second execution module 750 can be specifically used to: when the picture collection meets the preset generation condition, extract the pictures belonging to the same person in the picture collection as the same type of picture group; obtain the second number of pictures in the same type of picture group; when the second number of pictures does not reach the preset number, generate a picture collection of the first duration based on the picture collection.
[0124] In some embodiments, the image processing device 700 may further include: a fourth execution module, configured to generate a character image set of the first duration based on the same type of image group when the number of the second images reaches a preset number.
[0125] In some embodiments, when the atlas of the first duration includes the character atlas, the image processing device 700 may further include: a cover generation module. The cover generation module may be specifically used to: extract a set of face images from the character atlas; determine, based on the set of face images, a face image that meets a preset image condition as the cover image of the character atlas; and generate a cover of the character atlas based on the cover image of the character atlas.
[0126] In some embodiments, the above-mentioned picture collection may include pictures in the photo album of the electronic device, and the picture processing device 700 may also include: a picture album display module, which is used to respond to the operation of viewing the photo album, determine the order of each picture in the picture album according to the time information of each picture in the picture album; and present the picture album based on the order.
[0127] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0128] In several embodiments provided in the present application, the coupling between modules may be electrical, mechanical or other forms of coupling.
[0129] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.
[0130] In summary, the image processing device provided in the embodiment of the present application is used to implement the corresponding image processing method in the aforementioned method embodiment, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.
[0131] Please refer to Fig. 9 , which shows a structural block diagram of an electronic device provided in an embodiment of the present application. The electronic device 100 may be a terminal device such as a PC, a mobile terminal, etc. that can run an application. The electronic device 100 in the present application may include one or more of the following components: a processor 110, a memory 120, and one or more applications, wherein the one or more applications may be stored in the memory 120 and configured to be executed by one or more processors 110, and the one or more applications are configured to execute the method described in the aforementioned method embodiment.
[0132] The processor 110 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts of the entire electronic device 100, and executes various functions and processes data of the electronic device 100 by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120. Optionally, the processor 110 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 110 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 110, but may be implemented separately through a communication chip.
[0133] The memory 120 may include a random access memory (RAM) or a read-only memory (ROM). The memory 120 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store data (such as a phone book, audio and video data, chat record data) created by the electronic device 100 during use.
[0134] Understandably, Fig. 9 The structure shown is only an example, and the electronic device 100 may also include Fig. 9 More or fewer components as shown, or with Fig. 9 The embodiment of the present application is not limited to this.
[0135] Please refer to Fig.10 , which shows a structural block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable medium 800 stores program codes, which can be called by a processor to execute the method described in the above method embodiment.
[0136] The computer readable storage medium 800 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 800 includes a non-transitory computer-readable storage medium. The computer readable storage medium 800 has storage space for program code 810 that performs any method step in the above method. These program codes can be read from or written to one or more computer program products. The program code 810 can be compressed, for example, in an appropriate form.
[0137] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for processing an image, It is characterized in that Applied to electronic equipment, the method comprises: Get the set of pictures to be processed within the first time period; Determining whether the picture set meets a preset generation condition of a picture set of the first duration; When the picture set does not meet the preset generation condition, obtaining a second duration whose time length is greater than the first duration as a new first duration; Repeat the step of obtaining a set of pictures to be processed within the first duration, to the step of determining whether the set of pictures meets a preset generation condition of a set of pictures of the first duration, until the set of pictures meets the preset generation condition; When the picture set meets the preset generation condition, extracting pictures belonging to the same person in the picture set as a similar picture group; Obtain the number of second pictures in the same type of picture group; When the number of the second pictures reaches a preset number, generating a character picture set of the first duration according to the same type of picture group; Extracting a set of face images from the character atlas; Determine, from the face image set, a target face image whose image quality is greater than a preset quality; If there are multiple target face images with image quality greater than a preset quality, the multiple target face images are combined to obtain a combined image as the cover image of the character image collection; When the number of the second pictures does not reach the preset number, an atlas of the first duration is generated according to the picture set, wherein each picture exists only in one atlas.
2. The method according to claim 1, It is characterized in that When the picture set does not meet the preset generation condition, obtaining a second duration greater than the first duration as a new first duration includes: When the picture set does not meet the preset generation condition, determining a next preset duration from a plurality of preset durations as the second duration according to the preset duration priorities from high to low, wherein the length of the preset duration is negatively correlated with the size of the duration priority; The second duration is determined as a new first duration.
3. The method according to claim 2, It is characterized in that When the picture set does not meet the preset generation condition, determining the next duration of the first duration as the second duration from multiple durations according to the preset duration priorities from high to low, includes: When the picture set does not meet the preset generation condition, obtaining the priority of each preset duration in multiple preset durations; Sorting the plurality of preset durations in descending order of priority to obtain a sorting result; Determining from the sorting results whether there is a next duration of the first duration; When the next duration exists, the next duration is determined to be the second duration.
4. The method according to claim 3, It is characterized in that After determining from the sorting results whether there is a next duration of the first duration, the method further includes: When the next duration does not exist, a picture set of the first duration is generated according to the picture set.
5. The method according to any one of claims 1 to 4, It is characterized in that The determining whether the picture set meets a preset generation condition of a picture set of the first duration includes: Obtain the number of first pictures in the picture set; Determine whether the number of the first pictures reaches a specified number; When the picture set does not meet the preset generation condition, obtaining a second duration whose time length is greater than the first duration as a new first duration includes: When the number of the first pictures does not reach the specified number, a second duration greater than the first duration is obtained as a new first duration.
6. The method according to any one of claims 1 to 4, It is characterized in that The picture set includes pictures in an album of the electronic device. After generating the picture set of the first duration according to the picture set, the method further includes: In response to an operation of viewing the photo album, determining the order of each picture in the photo album according to time information of each picture in the photo album; The atlas is presented based on the ordering.
7. A picture processing device, It is characterized in that Applied to electronic equipment, the device comprises: An image acquisition module is used to acquire a set of images to be processed within a first time period; A condition judgment module, used to judge whether the picture set meets the preset generation condition of the picture set of the first duration; A first execution module, configured to, when the picture set does not meet the preset generation condition, obtain a second duration whose time length is greater than the first duration as a new first duration; a repeated execution module, configured to repeatedly execute the step of obtaining a set of pictures to be processed within a first duration, to the step of determining whether the set of pictures meets a preset generation condition of a set of pictures of the first duration, until the set of pictures meets the preset generation condition; The second execution module is used to extract pictures belonging to the same person in the picture collection as a similar picture group when the picture collection meets the preset generation condition; obtain the second number of pictures in the similar picture group; when the second number of pictures reaches the preset number, generate a character picture collection of the first duration according to the similar picture group; extract a face image collection from the character picture collection; determine a target face image with an image quality greater than a preset quality from the face image collection; if there are multiple target face images with image quality greater than the preset quality, combine the multiple target face images to obtain the combined image as the cover image of the character picture collection; when the second number of pictures does not reach the preset number, generate a picture collection of the first duration according to the picture collection, wherein each picture exists only in one picture collection.
8. An electronic device, It is characterized in that include: one or more processors; Memory; One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more applications are configured to execute the method according to any one of claims 1-6.
9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores program codes, which can be called by a processor to execute the method according to any one of claims 1 to 6.
