Electronic album generating method and electronic equipment

文档序号:1428787 发布日期:2020-03-17 浏览:4次 中文

阅读说明:本技术 电子相册生成方法及电子设备 (Electronic album generating method and electronic equipment ) 是由 杜奇 于 2019-11-27 设计创作,主要内容包括:本发明实施例提供了一种电子相册生成方法及电子设备,该方法包括:获取在预设时间周期内拍摄的多幅图像;根据目标选取参数,在所述多幅图像中选取目标图像;其中,所述目标选取参数包括图像内容、图像拍摄地点、图像拍摄时间和图像中像素点的像素值中的至少一项;确定所述目标图像对应的电子相册生成参数;根据所述电子相册生成参数和所述目标图像,生成电子相册。通过本发明实施例,能够自动为用户建立电子相册,解决用户手动建立电子相册操作繁琐的问题。(The embodiment of the invention provides an electronic album generating method and electronic equipment, wherein the method comprises the following steps: acquiring a plurality of images shot in a preset time period; selecting a target image from the plurality of images according to a target selection parameter; the target selection parameters comprise at least one of image content, image shooting places, image shooting time and pixel values of pixel points in the images; determining an electronic photo album generation parameter corresponding to the target image; and generating the electronic photo album according to the electronic photo album generation parameters and the target image. By the embodiment of the invention, the electronic photo album can be automatically established for the user, and the problem that the operation of manually establishing the electronic photo album by the user is complicated is solved.)

1. An electronic album creating method, comprising:

acquiring a plurality of images shot in a preset time period;

selecting a target image from the plurality of images according to a target selection parameter; the target selection parameters comprise at least one of image content, image shooting places, image shooting time and pixel values of pixel points in the images;

determining an electronic photo album generation parameter corresponding to the target image;

and generating the electronic photo album according to the electronic photo album generation parameters and the target image.

2. The method of claim 1, wherein the target selection parameters include image capturing time and pixel values of pixels in the image, and wherein selecting the target image from the plurality of images according to the target selection parameters comprises:

dividing the plurality of images into a plurality of groups based on the image capturing time of the plurality of images, wherein in each group of images, the image capturing time interval between two images adjacent to each other in the image capturing time is less than a preset time length;

in each group of images, selecting a first image with a pixel value meeting the requirement of a preset pixel value from the group of images according to the pixel value of the pixel point of each image in the group;

the target image is determined in the selected first images from each group.

3. The method of claim 1, wherein the target selection parameters include image capture content, image capture time, and pixel values of pixels in the image, and wherein selecting the target image from the plurality of images according to the target selection parameters comprises:

classifying the plurality of images into a plurality of categories according to image content of the plurality of images, each of the categories including at least one image;

in each category, dividing each image in the category into a plurality of groups according to the image shooting time of each image in the category, wherein in each group of images, the image shooting time interval between two adjacent images in the image shooting time is less than a preset time length;

in each group of images, selecting a first image with a pixel value meeting the requirement of a preset pixel value from the group of images according to the pixel value of the pixel point of each image in the group;

and determining the target image of the category in each first image belonging to the same category.

4. The method of claim 1, wherein the target selection parameters include image content and image capture location, and wherein selecting the target image from the plurality of images according to the target selection parameters comprises:

classifying the plurality of images into a plurality of categories according to image content of the plurality of images, each of the categories including at least one image;

in each category, dividing each image in the category into a plurality of groups according to the image shooting place of each image in the category;

and selecting a target image from the classified groups of images according to the number of the groups of images.

5. The method according to any one of claims 1 to 4, further comprising:

receiving a first editing operation;

and responding to the first editing operation, and editing the target image and/or the electronic album generation parameters.

6. An electronic device, comprising:

the device comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring a plurality of images shot in a preset time period;

the first determining module is used for selecting a target image from the plurality of images according to a target selection parameter; the target selection parameters comprise at least one of image content, image shooting places, image shooting time and pixel values of pixel points in the images;

the second determining module is used for determining the electronic album generating parameters corresponding to the target image;

and the generating module is used for generating the electronic photo album according to the electronic photo album generating parameters and the target image.

7. The device according to claim 6, wherein the target selection parameter includes an image capturing time and a pixel value of a pixel point in the image, and the first determining module is specifically configured to:

dividing the plurality of images into a plurality of groups based on the image capturing time of the plurality of images, wherein in each group of images, the image capturing time interval between two images adjacent to each other in the image capturing time is less than a preset time length;

in each group of images, selecting a first image with a pixel value meeting the requirement of a preset pixel value from the group of images according to the pixel value of the pixel point of each image in the group;

the target image is determined in the selected first images from each group.

8. The device according to claim 6, wherein the target selection parameter includes image capturing content, image capturing time, and pixel values of pixel points in the image, and the first determining module is specifically configured to:

classifying the plurality of images into a plurality of categories according to image content of the plurality of images, each of the categories including at least one image;

in each category, dividing each image in the category into a plurality of groups according to the image shooting time of each image in the category, wherein in each group of images, the image shooting time interval between two adjacent images in the image shooting time is less than a preset time length;

in each group of images, selecting a first image with a pixel value meeting the requirement of a preset pixel value from the group of images according to the pixel value of the pixel point of each image in the group;

and determining the target image of the category in each first image belonging to the same category.

9. The device of claim 6, wherein the target selection parameters include image content and an image capture location, and the first determining module is specifically configured to:

classifying the plurality of images into a plurality of categories according to image content of the plurality of images, each of the categories including at least one image;

in each category, dividing each image in the category into a plurality of groups according to the image shooting place of each image in the category;

and selecting a target image from the classified groups of images according to the number of the groups of images.

10. The apparatus according to any one of claims 6 to 9, further comprising an editing module for:

receiving a first editing operation;

and responding to the first editing operation, and editing the target image and/or the electronic album generation parameters.

11. An electronic device, comprising: memory, processor and computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the electronic album creating method according to any one of claims 1 to 5.

12. A computer-readable storage medium, characterized in that a computer program is stored thereon, which, when being executed by a processor, implements the steps of the electronic album creating method according to any one of claims 1 to 5.

Technical Field

The invention relates to the technical field of computers, in particular to an electronic album generating method and electronic equipment.

Background

At present, more and more users are familiar with taking pictures by using mobile phones. After the user takes a picture, the electronic photo album can be established. For example, a user may take many photos with a mobile phone for a period of deeply memorized travel, a nice birthday party, a rich group building activity, etc., and the user may create an electronic album with the photos for sharing with friends. In the prior art, a user can only manually select photos needing to establish an album and manually operate various complex electronic album generation tools to establish the electronic album, and the album establishing operation of the user is complicated.

Disclosure of Invention

The embodiment of the invention aims to provide an electronic album generating method and electronic equipment, which can automatically establish an electronic album for a user and solve the problem of complicated operation of manually establishing the electronic album by the user.

To solve the above technical problem, the embodiment of the present invention is implemented as follows:

in a first aspect, an embodiment of the present invention provides an electronic album generating method, including:

acquiring a plurality of images shot in a preset time period;

selecting a target image from the plurality of images according to a target selection parameter; the target selection parameters comprise at least one of image content, image shooting places, image shooting time and pixel values of pixel points in the images;

determining an electronic photo album generation parameter corresponding to the target image;

and generating the electronic photo album according to the electronic photo album generation parameters and the target image.

In a second aspect, an embodiment of the present invention provides an electronic device, including:

the device comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring a plurality of images shot in a preset time period;

the first determining module is used for selecting a target image from the plurality of images according to a target selection parameter; the target selection parameters comprise at least one of image content, image shooting places, image shooting time and pixel values of pixel points in the images;

the second determining module is used for determining the electronic album generating parameters corresponding to the target image;

and the generating module is used for generating the electronic photo album according to the electronic photo album generating parameters and the target image.

In a third aspect, an embodiment of the present invention provides an electronic device, including: a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the electronic album creating method according to the first aspect.

In a fourth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, and when executed by a processor, the computer program implements the steps of the electronic album generating method according to the first aspect.

In the embodiment of the invention, firstly, a plurality of shot images are obtained, then, a target image is selected from the plurality of images according to a target selection parameter, secondly, an electronic photo album generation parameter corresponding to the target image is determined, and finally, an electronic photo album is generated according to the electronic photo album generation parameter and the target image. Therefore, the method and the device for generating the electronic photo album can automatically select the target image and automatically determine the generation parameters of the electronic photo album, so that the electronic photo album is automatically generated, the generation efficiency of the electronic photo album is improved, the problem that the operation of manually establishing the electronic photo album by a user is complicated is solved, and the user experience is improved.

Drawings

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments described in the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.

Fig. 1 is a schematic flow chart of an electronic album creating method according to an embodiment of the present invention;

FIG. 2 is a schematic diagram of selecting a target image according to an embodiment of the present invention;

FIG. 3 is a schematic diagram of selecting a target image according to another embodiment of the present invention;

fig. 4 is a schematic flow chart of an electronic album creating method according to another embodiment of the present invention;

fig. 5 is a schematic diagram of a module composition of an electronic device according to an embodiment of the present invention;

fig. 6 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.

Detailed Description

In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention, and it is obvious that the described embodiment is only a part of the embodiment of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

The embodiment of the invention provides an electronic album generating method, electronic equipment and a computer readable storage medium, which can automatically establish an electronic album for a user and solve the problem of complicated operation of manually establishing the electronic album by the user. The electronic album generating method can be applied to the electronic equipment side and executed by the electronic equipment, and can also be applied to the server side and executed by the server. The electronic device mentioned in the embodiment of the present invention includes, but is not limited to, a mobile phone, a tablet computer, a wearable device, and the like.

Fig. 1 is a schematic flow chart of an electronic album creating method according to an embodiment of the present invention, as shown in fig. 1, the flow includes the following steps:

step 102, acquiring a plurality of images shot in a preset time period;

104, selecting a target image from the plurality of images according to the target selection parameter; the target selection parameters comprise at least one of image content, image shooting places, image shooting time and pixel values of pixel points in the images;

step 106, determining electronic album generation parameters corresponding to the target image;

and step 108, generating the electronic photo album according to the electronic photo album generation parameters and the target image.

In the embodiment of the invention, firstly, a plurality of shot images are obtained, then, a target image is selected from the plurality of images according to a target selection parameter, secondly, an electronic photo album generation parameter corresponding to the target image is determined, and finally, an electronic photo album is generated according to the electronic photo album generation parameter and the target image. Therefore, the method and the device for generating the electronic photo album can automatically select the target image and automatically determine the generation parameters of the electronic photo album, so that the electronic photo album is automatically generated, the generation efficiency of the electronic photo album is improved, the problem that the operation of manually establishing the electronic photo album by a user is complicated is solved, and the user experience is improved.

In the step 102, a plurality of images shot by the user within a preset time period are obtained, or a plurality of images automatically shot by the mobile phone within a preset time period are obtained. When the step is executed by the server, the server can receive a plurality of images which are uploaded by the mobile phone and shot by the user within a preset time period. When the step is executed by the mobile phone, the mobile phone can acquire a plurality of images shot by the user within a preset time period from the memory. The preset time period may be, for example, within the previous month or the previous week from the current time, and may also be other time periods.

In the step S104, a target image is selected from the plurality of images according to the target selection parameter, where the target image is an image that needs to be manufactured into the electronic album. The target selection parameter includes at least one of image content, image shooting location, image shooting time, and pixel values of pixel points in the image. This step 104 may be performed by the server or by the handset. Specifically, if the mobile phone uploads the image to the server through the step 102 in a cloud backup manner, the step 104 is executed by the server, and if the mobile phone obtains a plurality of images shot by the user within a preset time period from the memory and does not upload the images to the server, the step 104 is executed by the mobile phone.

In one case, the target selection parameter includes image content in step 104. In this case, step 104 specifically includes: according to the image content of the plurality of images, the plurality of images are divided into a plurality of categories, each category comprises at least one image, the target image with the largest number of images is determined in the various categories of images obtained through classification, and the target image is selected from the target images.

Specifically, the plurality of images are classified into a plurality of categories according to image contents of the plurality of images. For example, the plurality of images include multiple types of photos, such as landscape photos, single-person photos, multi-person group photos, and self-photographs. Then, in step 104, the multiple images are classified into multiple categories, such as scenery category, single person category, multi-person group photo category, self-timer category, etc., according to the image contents of the multiple images. Then, the target class image with the largest number of images is determined in the classified classes of images. Finally, selecting the target images from the target class images, for example, selecting the target class images as the target images, or selecting a predetermined number of images from the target class images as the target images. For example, in the classified multiple types of images, such as a landscape type, a single person type, a multi-person group photo type, a self-portrait type, and the like, if the target type image with the largest number of images is determined to be the landscape type image, the landscape type image is used as the target image, or a predetermined number of images are selected from the landscape type image to be the target image.

According to the mode, the same type of images with the largest quantity can be determined from the obtained multiple images according to the image content, and the target images are selected from the same type of images, so that the electronic album is automatically generated.

In another case, in step 104, the target selection parameter includes image capturing time and pixel values of pixel points in the image. In this case, step 104 specifically includes:

(a1) dividing the plurality of images into a plurality of groups based on the image shooting time of the plurality of images, wherein in each group of images, the image shooting time interval between two adjacent images is less than a preset time length;

(a2) in each group of images, selecting a first image with a pixel value meeting the requirement of a preset pixel value from the group of images according to the pixel value of the pixel point of each image in the group;

(a3) a target image is determined among the first images selected from the respective groups.

Specifically, in the act (a1), after a plurality of images are acquired, image capturing times of the plurality of images are determined, and the image capturing times may be, for example: 2019-10-25-15:33. Then, the plurality of images are divided into a plurality of groups based on the capturing times of the plurality of images, wherein in each group of images, the image capturing time interval between two images adjacent in image capturing time is less than a predetermined time length.

A specific operation of a packet may be: after a plurality of images are obtained, the plurality of images are sequenced according to the image shooting time of each image, in the sequencing, the image shooting time interval between every two adjacent images is calculated, the plurality of images are divided into a plurality of groups based on the image shooting time interval obtained by calculation, after the images are grouped, in each group of images, the image shooting time interval between the two adjacent images is less than a preset time length, and certainly, a certain group of images only comprises one image.

In one example, if the predetermined time is set to 30 seconds, a plurality of sets of images can be obtained by the above operation (a1), and each set of images can be regarded as images continuously captured by the user, and therefore each set of images is likely to correspond to the same sight point or person.

In the above action (a2), in each group of images, according to the pixel values of the pixel points of each image in the group, the first image with the pixel value meeting the requirement of the preset pixel value is selected from the group of images. Specifically, firstly, in each group of images, determining and removing an exposure transition image in the group according to the pixel values of pixel points of each image in the group; then, for the set of remaining images, calculating an average pixel value for each remaining image in the set, the average pixel value for each remaining image being calculated by: summing pixel values of all pixel points of any one of the images in the group to obtain an image pixel value of the image, and dividing the image pixel value of the image by the number of the pixel points in the image to obtain an average pixel value of the image; according to this process, the average pixel value of each remaining image in the group can be calculated; and finally, selecting the image with the highest average pixel value from the group of the rest images as the first image of the group of images. Accordingly, the predetermined pixel value requirement is the highest average pixel value.

In the above-described operation (a3), the target images are identified from the first images selected from the respective groups, and for example, the first images selected from the respective groups are collectively identified as the target images, or a predetermined number of images are randomly selected from the first images selected from the respective groups as the target images.

In one case, if it is determined through the above-described operations (a1) to (a3) that the number of target images does not exceed a predetermined number (for example, ten images), the subsequent steps are not performed, and the electronic album is not created.

Fig. 2 is a schematic diagram of selecting a target image according to an embodiment of the present invention, as shown in fig. 2, after a plurality of images are acquired, firstly, the plurality of images are divided into a plurality of groups based on image capturing time of the plurality of images; then, in each group of images, selecting a first image with a pixel value meeting the requirement of a preset pixel value from the group of images according to the pixel value of the pixel point of each image in the group; finally, the first images selected from the respective sets of images are collectively determined as the target image. In fig. 2, N is a positive integer greater than 2.

Through the actions (a1) to (a3), the target image can be selected according to the image shooting time and the pixel value of the pixel point in the image, so that the electronic album corresponding to the target image is manufactured, the efficiency of manufacturing the electronic album is improved, and the user experience is improved.

In another case, in step 104, the target selection parameter includes image capturing content, image capturing time, and pixel values of pixels in the image. In this case, step 104 specifically includes:

(b1) classifying the plurality of images into a plurality of categories according to image contents of the plurality of images, each category comprising at least one image;

(b2) in each category, dividing each image in the category into a plurality of groups according to the image shooting time of each image in the category, wherein in each group of images, the image shooting time interval between two adjacent images in the image shooting time is less than a preset time length;

(b3) in each group of images, selecting a first image with a pixel value meeting the requirement of a preset pixel value from the group of images according to the pixel value of the pixel point of each image in the group;

(b4) and determining the target image of the category in each first image belonging to the same category.

Specifically, the plurality of images are first classified into a plurality of categories according to image contents of the plurality of images, each category including at least one image, for example, the plurality of images include multiple types of photos such as landscape photos, single person photos, multiple person group photos, and self-photographs. In act (b1), the plurality of images are classified into a plurality of categories, such as landscape category, one-person portrait category, multi-person group photo category, self-portrait category, and the like, according to image content of the plurality of images. In this embodiment, the image content may be determined by an AI map recognition algorithm or other existing map recognition algorithms, so as to perform image classification.

In the above-described act (b2), in each of the categories, the images in the category are divided into a plurality of groups according to the image capturing times of the images in the category, and in each group of the images, the image capturing time interval between two images adjacent in image capturing time is less than a predetermined time period. The specific process of this action may refer to the description of the previous action (a1), and will not be repeated here.

In the above action (b3), in each group of images, according to the pixel values of the pixel points of each image in the group, the first image with the pixel value meeting the requirement of the preset pixel value is selected from the group of images. The specific process of this action may refer to the description of the previous action (a2), and will not be repeated here.

In the above-described operation (b4), the target image of the category is specified in each of the first images belonging to the same category, for example, each of the first images belonging to the same category is specified as the target image of the category, or a predetermined number of images are randomly selected as the target image of the category from among the first images belonging to the same category. In one example, the landscape images may be classified through the above-mentioned operation (b1), and the target image belonging to the landscape may be determined through the above-mentioned operations (b2) to (b4), so that the electronic album of the landscape images may be created through the subsequent operations. In another example, the images of the party building class may be classified through the above-mentioned operation (b2), and the target images belonging to the party building class may be determined through the above-mentioned operations (b2) to (b4), so as to create an electronic album of the party building class images through subsequent operations.

Fig. 3 is a schematic diagram of selecting a target image according to another embodiment of the present invention, as shown in fig. 3, after a plurality of images are acquired, firstly, the plurality of images are divided into a plurality of categories according to image contents of the plurality of images, and each category includes at least one image; then, in each category, dividing each image in the category into a plurality of groups according to the image shooting time of each image in the category, wherein in each group of images, the image shooting time interval between two adjacent images in the image shooting time is less than a preset time length; secondly, in each group of images, selecting a first image with a pixel value meeting the requirement of a preset pixel value from the group of images according to the pixel values of the pixel points of the images in the group; and finally, determining each first image belonging to the same category as a target image of the category. In fig. 3, N is a positive integer greater than 2. In fig. 3, for simplicity, an image of one category is taken as an example for illustration.

Through the actions (b1) to (b4), the target image can be selected according to the image shooting content, the image shooting time and the pixel value of the pixel point in the image, so that the electronic photo album corresponding to the target image is manufactured, the efficiency of manufacturing the electronic photo album is improved, and the user experience is improved.

In yet another case, in step 104, the target selection parameters include image content and image capturing location. In this case, step 104 specifically includes:

(c1) dividing the plurality of images into a plurality of categories according to image contents of the plurality of images, each category comprising at least one image;

(c2) in each category, dividing each image in the category into a plurality of groups according to the image shooting place of each image in the category, wherein a certain group of images only comprises one image;

(c3) and selecting a target image from the classified groups of images according to the number of the groups of images.

Specifically, the plurality of images are classified into a plurality of categories, such as a landscape category, a portrait category, and the like, according to image contents of the plurality of images. Then, in each category, dividing each image in the category into a plurality of groups according to the image shooting location of each image in the category, wherein the image shooting locations of the same group of images are the same or are close to each other, and the distance difference between the images meets the requirement of preset distance difference. Finally, according to the number of the groups of images, a target image is selected from the classified groups of images, for example, a group of images with the largest number is selected as the target image, or a group of images with the largest number is determined, and a predetermined number of images are selected from the group of images as the target image.

Through the actions (c1) to (c3), the target image can be selected according to the image content and the image shooting place, so that the electronic album corresponding to the target image is manufactured, the efficiency of manufacturing the electronic album is improved, and the user experience is improved.

In this embodiment, the target image may also be obtained by selecting pixel values of pixel points in the image. For example, an image having a pixel value satisfying a preset pixel value requirement is determined among a plurality of images, and the image is taken as a target image, or a predetermined number of images with the closest shooting time are selected among the images as the target image.

It should be noted that, in this embodiment, the target image can be selected according to at least one of the image content, the image capturing location, the image capturing time, and the pixel value of the pixel point in the image, and the above lists several cases as examples.

In another embodiment, after the plurality of images are acquired through step 102, a portrait image may be selected from the plurality of images according to image contents of the plurality of images, and a self-photographed image may be selected from the portrait image as a target image according to an area ratio of a face region in the portrait image. For example, when an electronic album of a self-timer image needs to be generated, a portrait image may be selected from the acquired multiple images, and an image with an area ratio larger than a preset ratio is determined as the self-timer image according to an area ratio of a face area in the portrait image, so as to generate the electronic album of the self-timer image. For another example, when the electronic album of the self-timer image needs to be generated, the portrait images may be selected from the acquired multiple images, the multiple images may be sorted according to the area ratio of the face area in the portrait images, and a predetermined number of images with the area ratio in the sorting being higher than that in the sorting may be used as the target images, so as to generate the electronic album of the self-timer image. When the self-photographing electronic photo album is generated, the target image can be selected according to the dimensions of the human face skin, the whiteness degree, the big eyes, the thin face and the like.

After the target image is selected, in step 106, the electronic album generating parameters corresponding to the target image are determined. In one case, the electronic album generation parameters corresponding to the target image may be determined according to the image content of the target image. For example, if the image content of the target image is a person, searching a parameter matched with the person in a preset parameter library as an electronic album generation parameter corresponding to the target image. In another case, the parameters may be randomly selected from a preset parameter library as the electronic album generation parameters corresponding to the target image.

In this embodiment, the electronic album is in a video format, and the electronic image generation parameters specifically include at least one of the following: at least one of the display duration of the image, the display mode of the image and the background music of the image. The display modes of the image comprise a mode of entering the image into the image, a mode of disappearing the image from the image and a mode of static display of the image. The electronic image generation parameters may further include one or more of information such as a video template of the electronic album, a video format of the electronic album, a file size range of the electronic album, a video resolution of the electronic album, a frame rate of the electronic album, and the like.

And step 108, generating the electronic album according to the electronic album generation parameters and the target image.

In one embodiment, steps 102 to 108 are performed by a server, the server determines the background music of the electronic album in step 106, and generates the electronic album in step 108 and sends the electronic album to the mobile phone. In another embodiment, steps 102 to 106 are executed by a server, the server further sends the target image and the electronic album generation parameter to the mobile phone, where the electronic album generation parameter does not include background music, and the mobile phone selects background music for the target image after receiving the target image and the electronic album generation parameter, and generates the electronic album according to the background music, the electronic album generation parameter, and the target image. In another embodiment, steps 102 to 106 are executed by a server, the server further sends the target image and the electronic album generation parameter to the mobile phone, the electronic album generation parameter includes background music, and the mobile phone generates the electronic album according to the electronic album generation parameter and the target image after receiving the target image and the electronic album generation parameter.

In this embodiment, the mobile phone may determine the background music corresponding to the target image in the following ways, 1, match the corresponding background music according to the image content of the target image, 2, generate the corresponding background music according to the most popular songs at present, and 3, generate the corresponding background music according to the most frequently listened songs by the user. When the background music is generated by the server, the background music is a part of the parameters for generating the electronic album, and the server can also generate the background music according to the three modes.

Further, the method in this embodiment further includes: and receiving a first editing operation, and editing the target image and/or the electronic album generation parameters in response to the first editing operation.

In this embodiment, the first editing operation may be an operation in which the user clicks or long-presses an icon of the electronic album. Specifically, the mobile phone may obtain a target image and an electronic album generation parameter, and display the target image and the electronic album generation parameter to the user, the user may edit the target image, such as zooming, rotating, clipping, adjusting brightness, adding a filter, and the like, and the user may also edit the electronic album generation parameter, such as adjusting a display duration of the image, a display mode of the image (such as a mode that the image enters the image and a mode that the image disappears from the image), reselecting a video template of the electronic album, or redetermining a video format of the electronic album, and the like.

In conclusion, the embodiment of the invention can automatically select the target image and automatically determine the generation parameters of the electronic album, thereby automatically generating the electronic album, improving the generation efficiency of the electronic album, solving the problem of complicated operation of manually establishing the electronic album by a user and improving the user experience.

Fig. 4 is a schematic flow chart of an electronic album creating method according to another embodiment of the present invention, as shown in fig. 4, the method includes the following steps:

and step 402, the server receives images shot by the user and uploaded by the mobile phone.

Specifically, after a user opens a cloud image backup function of the mobile phone, the mobile phone detects whether a network environment is wifi, if so, detects whether a screen is in a screen-off state, and if so, the mobile phone uploads an image shot by the user to a server, so that an image backup effect is achieved. When the mobile phone uploads the images to the server, the images shot by the user in the next month or the next week can be uploaded. When uploading images to the server, the mobile phone can not only upload image data, but also upload at least one item of information such as image shooting time, aperture, shutter, shooting place and the like during shooting.

In step 404, the server sorts the received images in ascending or descending order of the shooting time.

In step 406, the server selects a plurality of target images from the sorted images.

This step may be referred to specifically as described above with reference to step 104. In addition, after the server selects and obtains the target image, an electronic photo album category identifier is generated according to the target image, and the electronic photo album category identifier includes but is not limited to: portrait, landscape, party/building, self-portrait, etc.

In one embodiment, the server classifies the sorted images into categories, such as images of human, scenery, group photo, and the like, according to the image content of the sorted images. The server detects the number of each type of image, if the number of a certain type of image exceeds a preset number, the server determines the type of image as a target image, and correspondingly, the electronic album category identification is also the identification corresponding to the type of image. For example, the server determines that the number of portrait type images exceeds a predetermined number, and pushes a "portrait" identifier. Alternatively, the server determines that the number of landscape images exceeds a predetermined number, and pushes the "landscape" flag.

In another embodiment, the server classifies the sorted images into categories, such as images of human, scenery, group photo, and the like, according to the image content of the sorted images. The server detects the number of each type of image, determines the image with the largest number as a target image, and the electronic album category identification is also the identification corresponding to the image.

In another embodiment, the server determines the state of the user according to the photographing frequency of the user, for example, if the user photographs more than a certain number in the same day, it is determined that the user is likely to travel, and the image photographed by the user on the day is taken as a target image and the "travel" identifier is pushed.

And step 408, the server sends the metadata of the target image, the electronic album generation parameters and the electronic album category identification to the mobile phone.

Wherein, the electronic photo album can be in a video mode. Metadata of the target image includes, but is not limited to: file name, shooting time, shooting place, size, file size, focal length, aperture, exposure time, exposure ISO, etc.

The electronic album creating parameters include but are not limited to: the display time length of the image, the display mode of the image (such as the mode that the image enters the picture and the mode that the image disappears from the picture), one or more items of information such as a video template of the electronic album, the video format of the electronic album, the file size range of the electronic album, the video resolution of the electronic album, the frame rate of the electronic album and the like.

And step 410, the mobile phone presents the electronic photo album category identification to the user in a button mode.

The mobile phone presents the electronic photo album category identification to the user in a button mode, when the user clicks the button, the mobile phone displays the target images corresponding to the identification, and the user can edit the target images, wherein the editing mode includes but is not limited to: adding, deleting, cutting, beautifying, adding a filter, adding a pendant and the like. And after editing, the mobile phone generates an electronic photo album according to the preset electronic photo album generation parameters, wherein the electronic photo album is a video file.

In step 412, the mobile phone selects background music from the audio library for the electronic album to obtain a final electronic album.

The mobile phone can also display the finally generated electronic album to the user, and the user can enter an electronic album editing page by long pressing an electronic album thumbnail so as to edit the electronic album.

In the electronic album editing page, a user can edit each frame of video, can edit a target image, such as zooming, rotating, cutting, adjusting brightness, adding a filter and the like, and can also edit electronic album generation parameters, such as adjusting the display duration of the image, the display mode of the image (such as the mode that the image enters the image and the mode that the image disappears from the image), reselecting a video template of the electronic album, or redetermining the video format of the electronic album. The user may also delete, add, or replace the target image. The user can also change the background music of the electronic photo album.

In conclusion, the embodiment of the invention can automatically select the target image and automatically determine the generation parameters of the electronic album, thereby automatically generating the electronic album, improving the generation efficiency of the electronic album, solving the problem of complicated operation of manually establishing the electronic album by a user and improving the user experience.

An embodiment of the present invention further provides an electronic device, fig. 5 is a schematic diagram of a module composition of the electronic device according to an embodiment of the present invention, and as shown in fig. 5, the electronic device includes:

an obtaining module 51, configured to obtain a plurality of images captured within a preset time period;

a first determining module 52, configured to select a target image from the multiple images according to a target selection parameter; the target selection parameters comprise at least one of image content, image shooting places, image shooting time and pixel values of pixel points in the images;

a second determining module 53, configured to determine an electronic album generating parameter corresponding to the target image;

and the generating module 54 is configured to generate an electronic album according to the electronic album generating parameter and the target image.

Optionally, the target selection parameter includes an image capturing time and a pixel value of a pixel point in the image, and the first determining module 52 is specifically configured to:

dividing the plurality of images into a plurality of groups based on the image capturing time of the plurality of images, wherein in each group of images, the image capturing time interval between two images adjacent to each other in the image capturing time is less than a preset time length;

in each group of images, selecting a first image with a pixel value meeting the requirement of a preset pixel value from the group of images according to the pixel value of the pixel point of each image in the group;

the target image is determined in the selected first images from each group.

Optionally, the target selection parameter includes image capturing content, image capturing time, and a pixel value of a pixel point in the image, and the first determining module 52 is specifically configured to:

classifying the plurality of images into a plurality of categories according to image content of the plurality of images, each of the categories including at least one image;

in each category, dividing each image in the category into a plurality of groups according to the image shooting time of each image in the category, wherein in each group of images, the image shooting time interval between two adjacent images in the image shooting time is less than a preset time length;

in each group of images, selecting a first image with a pixel value meeting the requirement of a preset pixel value from the group of images according to the pixel value of the pixel point of each image in the group;

and determining the target image of the category in each first image belonging to the same category.

Optionally, the target selection parameter includes an image content and an image capturing location, and the first determining module 52 is specifically configured to:

classifying the plurality of images into a plurality of categories according to image content of the plurality of images, each of the categories including at least one image;

in each category, dividing each image in the category into a plurality of groups according to the image shooting place of each image in the category;

and selecting a target image from the classified groups of images according to the number of the groups of images.

Optionally, the apparatus further comprises an editing module configured to:

receiving a first editing operation;

and responding to the first editing operation, and editing the target image and/or the electronic album generation parameters.

In the embodiment of the invention, firstly, a plurality of shot images are obtained, then, a target image is selected from the plurality of images according to a target selection parameter, secondly, an electronic photo album generation parameter corresponding to the target image is determined, and finally, an electronic photo album is generated according to the electronic photo album generation parameter and the target image. Therefore, the method and the device for generating the electronic photo album can automatically select the target image and automatically determine the generation parameters of the electronic photo album, so that the electronic photo album is automatically generated, the generation efficiency of the electronic photo album is improved, the problem that the operation of manually establishing the electronic photo album by a user is complicated is solved, and the user experience is improved.

It should be noted that the electronic device in this embodiment can implement each process of the foregoing electronic album generating method embodiment, and achieve the same effect, which is not described herein again.

Fig. 6 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention, and as shown in fig. 6, the electronic device 800 includes, but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, a processor 810, and a power supply 811. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 6 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.

The memory 809 stores a computer program, and when the computer program is executed by the processor 810, the following processes can be implemented:

acquiring a plurality of images shot in a preset time period;

selecting a target image from the plurality of images according to a target selection parameter; the target selection parameters comprise at least one of image content, image shooting places, image shooting time and pixel values of pixel points in the images;

determining an electronic photo album generation parameter corresponding to the target image;

and generating the electronic photo album according to the electronic photo album generation parameters and the target image.

Optionally, when the computer program is executed by the processor 810, the target selection parameter includes an image capturing time and a pixel value of a pixel point in an image, and according to the target selection parameter, selecting a target image from the plurality of images includes:

dividing the plurality of images into a plurality of groups based on the image capturing time of the plurality of images, wherein in each group of images, the image capturing time interval between two images adjacent to each other in the image capturing time is less than a preset time length;

in each group of images, selecting a first image with a pixel value meeting the requirement of a preset pixel value from the group of images according to the pixel value of the pixel point of each image in the group;

determining the target image in the selected first images from each group

Optionally, when the computer program is executed by the processor 810, the target selection parameter includes image capturing content, image capturing time, and pixel values of pixel points in the image, and according to the target selection parameter, selecting a target image from the plurality of images includes:

classifying the plurality of images into a plurality of categories according to image content of the plurality of images, each of the categories including at least one image;

in each category, dividing each image in the category into a plurality of groups according to the image shooting time of each image in the category, wherein in each group of images, the image shooting time interval between two adjacent images in the image shooting time is less than a preset time length;

in each group of images, selecting a first image with a pixel value meeting the requirement of a preset pixel value from the group of images according to the pixel value of the pixel point of each image in the group;

and determining the target image of the category in each first image belonging to the same category.

Optionally, when the computer program is executed by the processor 810, the target selecting parameters include image content and image capturing location, and selecting the target image from the plurality of images according to the target selecting parameters includes:

classifying the plurality of images into a plurality of categories according to image content of the plurality of images, each of the categories including at least one image;

in each category, dividing each image in the category into a plurality of groups according to the image shooting place of each image in the category;

and selecting a target image from the classified groups of images according to the number of the groups of images.

Optionally, the computer program, when executed by the processor 810, further includes:

receiving a first editing operation;

and responding to the first editing operation, and editing the target image and/or the electronic album generation parameters.

In the embodiment of the invention, firstly, a plurality of shot images are obtained, then, a target image is selected from the plurality of images according to a target selection parameter, secondly, an electronic photo album generation parameter corresponding to the target image is determined, and finally, an electronic photo album is generated according to the electronic photo album generation parameter and the target image. Therefore, the method and the device for generating the electronic photo album can automatically select the target image and automatically determine the generation parameters of the electronic photo album, so that the electronic photo album is automatically generated, the generation efficiency of the electronic photo album is improved, the problem that the operation of manually establishing the electronic photo album by a user is complicated is solved, and the user experience is improved.

It should be noted that the electronic device in this embodiment can implement each process of the foregoing electronic album generating method embodiment, and achieve the same effect, which is not described herein again.

It should be understood that, in the embodiment of the present invention, the radio frequency unit 801 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 810; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 801 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the radio frequency unit 801 can also communicate with a network and other devices through a wireless communication system.

The electronic device provides wireless broadband internet access to the user via the network module 802, such as to assist the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.

The audio output unit 803 may convert audio data received by the radio frequency unit 801 or the network module 802 or stored in the memory 809 into an audio signal and output as sound. Also, the audio output unit 803 may also provide audio output related to a specific function performed by the electronic apparatus 800 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 803 includes a speaker, a buzzer, a receiver, and the like.

The input unit 804 is used for receiving an audio or video signal. The input Unit 804 may include a Graphics Processing Unit (GPU) 8041 and a microphone 8042, and the Graphics processor 8041 processes image data of a still picture or video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 806. The image frames processed by the graphics processor 8041 may be stored in the memory 809 (or other storage medium) or transmitted via the radio frequency unit 801 or the network module 802. The microphone 8042 can receive sound, and can process such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 801 in case of a phone call mode.

The electronic device 800 also includes at least one sensor 805, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 8061 according to the brightness of ambient light and a proximity sensor that can turn off the display panel 8061 and/or the backlight when the electronic device 800 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 805 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.

The display unit 806 is used to display information input by the user or information provided to the user. The Display unit 806 may include a Display panel 8061, and the Display panel 8061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.

The user input unit 807 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic apparatus. Specifically, the user input unit 807 includes a touch panel 8071 and other input devices 8072. The touch panel 8071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 8071 (e.g., operations by a user on or near the touch panel 8071 using a finger, a stylus, or any other suitable object or accessory). The touch panel 8071 may include two portions of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 810, receives a command from the processor 810, and executes the command. In addition, the touch panel 8071 can be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 8071, the user input unit 807 can include other input devices 8072. In particular, other input devices 8072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.

Further, the touch panel 8071 can be overlaid on the display panel 8061, and when the touch panel 8071 detects a touch operation on or near the touch panel 8071, the touch operation is transmitted to the processor 810 to determine the type of the touch event, and then the processor 810 provides a corresponding visual output on the display panel 8061 according to the type of the touch event. Although the touch panel 8071 and the display panel 8061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 8071 and the display panel 8061 may be integrated to implement the input and output functions of the electronic device, which is not limited herein.

The interface unit 808 is an interface for connecting an external device to the electronic apparatus 800. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 808 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the electronic device 800 or may be used to transmit data between the electronic device 800 and external devices.

The memory 809 may be used to store software programs as well as various data. The memory 809 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 809 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.

The processor 810 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 809 and calling data stored in the memory 809, thereby monitoring the whole electronic device. Processor 810 may include one or more processing units; preferably, the processor 810 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 810.

The electronic device 800 may also include a power supply 811 (e.g., a battery) for powering the various components, and preferably, the power supply 811 may be logically coupled to the processor 810 via a power management system to manage charging, discharging, and power consumption management functions via the power management system.

In addition, the electronic device 800 includes some functional modules that are not shown, and are not described in detail herein.

Preferably, an embodiment of the present invention further provides an electronic device, which includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, where the computer program, when executed by the processor, implements each process of the above-mentioned electronic album generating method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.

Further, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the electronic album generating method embodiment, and can achieve the same technical effect, and in order to avoid repetition, the detailed description is omitted here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.

It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.

Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the above-mentioned embodiment of the present invention.

While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

21页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种音乐推荐方法、装置、计算装置和存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!