CN110009646B - Electronic album generation method and device, electronic equipment and storage medium - Google Patents

Electronic album generation method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110009646B
CN110009646B CN201910300157.9A CN201910300157A CN110009646B CN 110009646 B CN110009646 B CN 110009646B CN 201910300157 A CN201910300157 A CN 201910300157A CN 110009646 B CN110009646 B CN 110009646B
Authority
CN
China
Prior art keywords
image
face
electronic album
filling
area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910300157.9A
Other languages
Chinese (zh)
Other versions
CN110009646A (en
Inventor
万光明
孙国永
黄俊维
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tianyi Yofus Technology Co ltd
Original Assignee
Tianyi Yofus Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tianyi Yofus Technology Co ltd filed Critical Tianyi Yofus Technology Co ltd
Priority to CN201910300157.9A priority Critical patent/CN110009646B/en
Publication of CN110009646A publication Critical patent/CN110009646A/en
Application granted granted Critical
Publication of CN110009646B publication Critical patent/CN110009646B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The application discloses a method and a device for generating an electronic album, electronic equipment and a storage medium, and relates to the technical field of image processing, wherein the method comprises the following steps: acquiring a target image set; screening face images from a target image set; determining a face filling image according to the face image; and generating the electronic album according to the face filling image. Compared with the existing automatic filling album with poor stability and low manual operation speed, the embodiment of the application can screen the face image from the target image set, determine the face filling image from the face image, further avoid filling errors during automatic filling and improve the reliability of automatic generation of the electronic album; and finally, generating an electronic album according to the face filling image, realizing automatic filling, and improving the generation speed of the electronic album.

Description

Electronic album generation method and device, electronic equipment and storage medium
Technical Field
The embodiment of the application relates to an image processing technology, in particular to a method and a device for generating an electronic album, electronic equipment and a storage medium.
Background
The electronic album is a special document of still pictures different from CD/VCD that can be viewed on a computer, and the contents thereof are not limited to photographic pictures but may include various artistic creation pictures.
At present, when an electronic album is manufactured, adobe Photoshop is generally used as a picture repair tool, a designer needs to prepare a large amount of materials before starting to manufacture the electronic album, and each photo is adjusted to form a psd file. After the manufacture is completed, the pictures are manually added into the album templates. If automatic typesetting is used, the problems that the photo does not correspond to the size of the picture in the template and the like can occur, so that the photo is in error when the template is filled.
However, this method requires a lot of manual operations, and the electronic album is created at a low speed. The error rate is higher and the stability is poor when automatic typesetting is used.
Disclosure of Invention
The application provides a method and a device for generating an electronic album, electronic equipment and a storage medium, so as to improve the generation speed and stability of the electronic album.
In a first aspect, an embodiment of the present application provides a method for generating an electronic album, including:
acquiring a target image set;
screening face images from a target image set;
determining a face filling image according to the face image;
and generating the electronic album according to the face filling image.
Further, the step of screening the face image from the target image set includes:
sequentially reading target images in a target image set;
judging whether the target image is a face image or not according to the label information of the target image; the tag information is information identifying the content of the target image.
Further, determining a face filling image according to the face image includes:
determining at least one face contour information according to the face image;
determining a cutting area according to the at least one face contour information, wherein the cutting area comprises an image area corresponding to the at least one face contour information;
and determining the face filling image according to the cutting area.
Further, the cutting area is an circumscribed rectangular area of the image area corresponding to the at least one face contour information.
Further, generating an electronic album according to the face filling image includes:
accessing the cloud end through a link address provided by album editing software;
acquiring an electronic album template from a cloud;
filling the face filling image and other images in the target image set into an electronic album template;
and storing the filled electronic album in a user storage space of the cloud.
Further, after the electronic album is generated according to the face filling image, the method further comprises the steps of:
acquiring evaluation information of an electronic album template;
and sending the evaluation information to the cloud.
Further, before the electronic album template is obtained from the cloud, the method further comprises:
acquiring an electronic album template manufactured by a user;
and sending the electronic album template to the cloud.
Further, after the electronic album is generated according to the face filling image, the method further comprises the steps of:
receiving an adjustment instruction input by a user, wherein the adjustment instruction is used for adjusting a primitive object in the electronic album;
and adjusting the generated electronic album according to the adjustment instruction.
In a second aspect, an embodiment of the present application further provides a device for generating an electronic album, including:
the acquisition module is used for acquiring a target image set;
the face image screening module is used for screening face images from the target image set acquired by the acquisition module;
the filling image determining module is used for determining a face filling image according to the face images screened by the face image screening module;
and the generating module is used for generating the electronic album according to the face filling image determined by the filling image determining module.
In a third aspect, an embodiment of the present application further provides an electronic device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor implements the method for generating an electronic album according to the first aspect when executing the program.
In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor, implements a method for creating an electronic album as described in the first aspect.
The method, the device, the electronic equipment and the storage medium for generating the electronic album acquire a target image set; screening face images from a target image set; determining a face filling image according to the face image; and generating the electronic album according to the face filling image. Compared with the existing automatic filling album with poor stability and low manual operation speed, the embodiment of the application can screen the face image from the target image set, determine the face filling image from the face image, further avoid filling errors during automatic filling and improve the reliability of automatic generation of the electronic album; and finally, generating an electronic album according to the face filling image, realizing automatic filling, and improving the generation speed of the electronic album.
Drawings
FIG. 1 is a flowchart of a method for creating an electronic album in an embodiment of the present application;
FIG. 2 is a flowchart of another method for creating an electronic album according to an embodiment of the present application;
FIG. 3 is a flowchart of another method for creating an electronic album according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a data storage system architecture of an electronic album according to an embodiment of the present application;
FIG. 5 is a schematic diagram of feedback of evaluation information according to an embodiment of the present application;
FIG. 6 is a schematic diagram of a device for creating an electronic album according to an embodiment of the present application;
FIG. 7 is a schematic diagram of a creating device of another electronic album according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of an electronic device in an embodiment of the present application.
Detailed Description
The application is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present application are shown in the drawings.
At present, when an electronic album is manufactured, adobe Photoshop is generally used as a picture repair tool, a designer needs to prepare a large amount of materials before starting to manufacture the electronic album, and each photo is adjusted to form a psd file. After the manufacture is completed, the pictures are manually added into the album templates. If automatic typesetting is used, the problems that the photo does not correspond to the size of the picture in the template and the like can occur, so that the photo is in error when the template is filled. However, this method requires a lot of manual operations, and the electronic album is created at a low speed. The error rate is higher and the stability is poor when automatic typesetting is used.
The inventor finds that the current electronic album is easy to directly fill the image into the picture area of the electronic album template when filling the image, especially filling the face image. At this time, a scheme of scaling the image to the size of the template picture region may occur, and the face may not be clearly seen after scaling the group photo, so that the typesetting effect is poor. Meanwhile, a more mechanical scheme for cutting the face image by using the picture area can also occur, and the integrity of the picture is damaged.
The embodiment of the application provides a method for generating an electronic album, which can automatically identify a face image by a machine when the electronic album is generated, and determine a face filling image from the face image, thereby ensuring the integrity and definition of the face image when the face image is filled, and improving the reliability of the electronic album generation. The automatic execution of the machine can save the operation of a user, reduce the time for manually repairing the picture by the user and improve the generation speed of the electronic album. The specific scheme is as follows:
fig. 1 is a flowchart of a method for creating an electronic album, where the method may be applied to the case of creating an electronic album, and the method may be executed by an electronic device, where the electronic device includes a personal computer, a notebook computer, a tablet computer, a smart phone, and the like, and the method specifically includes the following steps:
step S110, acquiring a target image set.
The target image set may be imported by a user. After a user shoots a photo through a mobile phone or a digital camera and the like, the shot photo is stored in a media library. When an electronic album is created, the user's photos may be exported from the media library. The user may select a picture desired to be added to the electronic album, and the user-selected picture is combined as the target image set.
And step S120, screening face images from the target image set.
The pictures contained in the target image set may contain face images and other images including scenery images, night scene images, still images, and the like.
In one implementation, target images in a target image set are sequentially read; judging whether the target image is a face image or not according to the label information of the target image; the tag information is information identifying the content of the target image.
When a user selects a target image set, the target image can be marked when the target image is selected, and tag information is formed after marking. The tag information includes a person tag, a scenic tag, a still tag, a night scene tag, and the like. When step S120 is performed, tag information of each target image is read, and if the tag information is a face tag, the target image is determined to be a face image.
In addition to marking the target image when the target image combination is selected, the photographs in the target image set may be marked when the target road image set is imported after the target image set is generated.
Further, when the target image is marked, manual marking may be performed by the user. The face recognition may be performed on the target image, and if the face is recognized in the target image, tag information of a face tag may be added to the target image.
The accuracy of the label information can be improved by manually marking the label information by the user, and the face is identified by the machine through a face identification algorithm, so that the user operation can be saved, and the image processing speed can be improved.
And step S130, determining a face filling image according to the face image.
After the face image is determined, a face-filling image is identified from the face image. The face filling image is an image cut from the face image, and the image is used for being filled into a template of the electronic album.
Specifically, as shown in fig. 2, step 130 may be implemented by:
step S131, at least one face contour information is determined according to the face image.
All face contour information is identified in the face image, and the face contour information can comprise edge point coordinates of a face image area of each task. Face regions may be identified based on skin color and then boundaries of the face regions determined based on color differences to obtain face contour information. The face image can also be input into a learned neural network, and contour information of each face in the face image can be output by the neural network.
Step S132, determining a cutting area according to at least one face contour information, wherein the cutting area comprises at least one image area corresponding to the face contour information.
In one implementation, whether all faces in the face image are located in a half image of the face image is judged according to the face contour information, if so, the half image in which all faces are located is taken as a cutting area, and the parts other than the half image are cut. If all faces in the face image are located in two half images of the face image, determining a cutting area according to the face contour information. Optionally, the size information of all the image filling templates can be obtained from the electronic album templates, and the matched image filling templates are searched according to the size information of the face images. The area of the pattern filling template is larger than the area of the circumscribed rectangular area of the image area corresponding to the face contour information. Further, the area of the image filling template, the area of which is close to the area of the circumscribed rectangular area, is taken as the area of the cutting area, and the cutting area in the face image is determined according to the area.
In another implementation manner, after all the face contour information is obtained, the circumscribed rectangular area of the image area corresponding to at least one face contour information is used as a cutting area, so that the face occupies the highest proportion in the cutting area, and the face is further clearly embodied.
And step S133, determining a face filling image according to the cutting area.
And reading the image content of the cutting area from the face image to serve as a face filling image.
And 140, generating the electronic album according to the face filling image.
Searching an image filling template matched with the face filling image from the electronic album, and filling the face image to obtain the electronic album of the face. Furthermore, the target image set comprises other images besides the face image, and the other images and the face filling image are filled into the electronic album template before, so that the electronic album is generated.
In a use scene, step one, a user imports a photograph; step two, detecting the photo type; step three, if the person is a photo, entering a face recognition flow; fourthly, saving the recognized face photo outline data to a photo element library; step five, carrying out a combined area detection on the areas of the faces of the photos during automatic typesetting to obtain circumscribed rectangles of the outline areas of the faces; step six, finally, the cutting position is outside the face area, so that the aim of avoiding cutting key information is fulfilled; and seventhly, after automatic typesetting, manually rechecking the works, and manually correcting unsatisfactory positions.
The method for generating the electronic album comprises the steps of firstly, obtaining a target image set; then, screening face images from the target image set, and determining face filling images according to the face images; and finally, generating the electronic album according to the face filling image. Compared with the existing automatic filling album with poor stability and low manual operation speed, the embodiment of the application can screen the face image from the target image set, determine the face filling image from the face image, further avoid filling errors during automatic filling and improve the reliability of automatic generation of the electronic album; and finally, generating an electronic album according to the face filling image, realizing automatic filling, and improving the generation speed of the electronic album.
Fig. 3 is a flowchart of a method for generating an electronic album according to an embodiment of the present application, which is further described in the above embodiments, including:
step S210, acquiring a target image set.
And S220, screening face images from the target image set.
Step S230, a face filling image is determined according to the face image.
Step S240, accessing the cloud end through the link address provided by the album editing software.
The album editing software can be X10 image design software developed by the company, and the cloud server can be accessed through the X10 image design software by the method provided by the embodiment of the application. And storing the cloud template library in the cloud server.
Fig. 4 is a schematic diagram of a data storage system architecture of an electronic album according to an embodiment of the present application, which includes a cloud template library 401, a local template library 402, a local product library 403, a user photo 404, and a local work 405. The cloud template library 401 may be shared by all users, and is provided by a platform provider.
The local template library 402 includes a set of optimized and adjusted cloud templates that the user has downloaded. The optimizing and adjusting refer to the operation of modifying the position or content of a picture filling area, a text box or an icon in an electronic album template by a user after downloading the electronic album template through the cloud template library 401. The local product library 403, user photos 404, and local works 405 are stored on the electronic device operated by the user. The local product library 403 includes non-standard products of user-defined pages or sizes, i.e., user-defined finished electronic photo albums. The user photos 404 include photo material imported by the user, including face images and non-face images, before the electronic album is made by the software. The local work 405 is made up of templates and photos, and may be a combination of the user's photo 404 and a template creative.
After the user downloads the X10 image design software, the user logs in the user name and can access the cloud server. The cloud server provides a plurality of electronic album templates for registered users.
Step S250, an electronic album template is obtained from the cloud.
After the cloud server is accessed, a user can select a certain faithful template to download, so that the electronic equipment can acquire the electronic album template.
And step S260, filling the face filling image and other images in the target image set into the electronic album template.
And step S270, storing the filled electronic album in a user storage space of the cloud.
After the user generates the electronic album, the user can send the electronic album to the cloud server for storage. The cloud server can establish a certain storage space for each user so as to provide the remote storage function of the electronic album for the user. At the moment, the user does not need to carry the electronic album in a USB flash disk or other modes, and can download the electronic album after accessing the cloud server through the network, so that usability is improved.
Further, after step S140 of generating the electronic album according to the face-filling image, the method further includes:
acquiring evaluation information of an electronic album template; and sending the evaluation information to the cloud.
After a user uses a certain electronic album template, the evaluation information is fed back to the cloud end, so that the cloud end can count the evaluation information of each electronic album template. And after the evaluation information is counted by the cloud, determining the recommendation sequence of the electronic album templates according to the evaluation information. Specifically, the cloud server configures a praise button for each electronic album template, so that a user can praise a favorite electronic album. And counting the number of praise obtained by the electronic album template to obtain the evaluation information of the electronic album template. As shown in fig. 5, a designer may send an electronic album template to a cloud server after creating the electronic album template. After the user uses the electronic album template, the effect is fed back in a praise mode. Alternatively, the rating information may also include rating star levels, such as 1-star to 5-star implementations, and the like. Optionally, the evaluation information may be a comment mode of the user, and the user may input the evaluation information in the form of graphics context to the electronic album template.
Correspondingly, after the evaluation information is acquired, the cloud template library can be ranked according to the use frequency and the popularity, so that the use frequency and the popularity ranking are realized.
In one use scenario, a designer designs a template locally with software, and issues the template to the cloud after proofing a test. Then, the user browses and selects the favorite template in the official template column of the software, downloads the favorite template to a local template library, and opens the template for fine adjustment if modification is needed, or directly uses the template to manufacture the autograph album work. Finally, in the using process, the user can praise the templates or cancel praise the templates according to the preference degree of the templates, and the feedback of the user can enable the user who does not use the templates to obtain a reference score so as to determine whether to select the templates.
According to the method for generating the electronic album, which is provided by the embodiment of the application, a cloud end can provide a plurality of different electronic album templates for a user, and the user can feed back the electronic album templates after using the electronic album templates.
Further, step S250, before obtaining the electronic album template from the cloud, further includes:
acquiring an electronic album template manufactured by a user; and sending the electronic album template to the cloud.
If the electronic album templates provided by the cloud end of the X10 image design software are not favorite by the user, the user can automatically manufacture the electronic album templates and then send the electronic album templates to the cloud end. At this time, the electronic album template may be stored in the storage space of the user. On the basis of user agreement, the electronic album templates uploaded by the users can be provided for other users, so that the information diversity can be further increased, and the user experience is improved.
Further, after step S140 of generating the electronic album according to the face-filling image, the method further includes:
receiving an adjustment instruction input by a user, wherein the adjustment instruction is used for adjusting a primitive object in the electronic album; and adjusting the generated electronic album according to the adjustment instruction.
After the user downloads the electronic album, the primitive objects in the electronic album template can be adjusted according to the use requirement. The primitive object comprises an image filling primitive, a text primitive, a icon primitive and the like in the electronic album template.
According to the method for generating the electronic album, the user can adjust the electronic album template downloaded in the cloud, and usability of the electronic album template is improved.
According to the method for generating the electronic album, the electronic album template can be acquired from the X10 image design software, and further, a third-party website downloading template is not needed, and the electronic album template is integrated in the software, so that the operation time of a user is saved, the user experience is improved greatly, and a designer can know the original requirements of the user and the market through a praise function, and therefore a more popular template can be designed. In the implementation process, firstly, thousands of commonly used electronic album templates are selected by designers, uniformly stored in a cloud, and built-in entries are in design software. Before the user uses, the user can view through the preview window immediately, after the user uses, the user can like the template to "like" and choose the template as a reference opinion for other users.
Meanwhile, when the user photo is imported, the face on the photo is automatically recognized, and the face position is marked. And when typesetting is performed automatically, the cutting position is adjusted according to the face position, so that the face area is prevented from being cut. By using the face detection technology, the automatic typesetting algorithm is more efficient and more foolproof, even if nothing is done, after the button is clicked, the satisfaction degree of the typeset works basically reaches 90%, and the complicated process of adjusting the cutting position of the photo is omitted. Based on the requirement of the user for 'photo preservation', the photo frame size of the template is adjusted during automatic typesetting, the whole content of the user photo can be displayed, and the requirement is met by fine adjustment of the template, so that usability is improved.
Fig. 6 is a schematic structural diagram of a generating device of an electronic album, which may be located on an electronic device, and the electronic device includes a personal computer, a notebook computer, a tablet computer, a smart phone, etc., and the device includes an obtaining module 31, a face image screening module 32, a filling image determining module 33, and a generating module 34.
An acquisition module 31 for acquiring a set of target images;
a face image screening module 32, configured to screen a face image from the target image set acquired by the acquisition module 31;
a filling image determining module 33, configured to determine a face filling image according to the face images screened by the face image screening module 32;
the generating module 34 is configured to generate an electronic album according to the face filling image determined by the filling image determining module 33.
Further, the face image filtering module 32 is configured to:
sequentially reading target images in a target image set;
judging whether the target image is a face image or not according to the label information of the target image; the tag information is information identifying the content of the target image.
Further, the filling image determining module 33 is configured to:
determining at least one face contour information according to the face image;
determining a cutting area according to the at least one face contour information, wherein the cutting area comprises an image area corresponding to the at least one face contour information;
and determining the face filling image according to the cutting area.
Further, the cutting area is an circumscribed rectangular area of the image area corresponding to the at least one face contour information.
Further, the generating module 34 is configured to:
accessing the cloud end through a link address provided by album editing software;
acquiring an electronic album template from a cloud;
filling the face filling image and other images in the target image set into an electronic album template;
and storing the filled electronic album in a user storage space of the cloud.
Further, as shown in fig. 7, the system further includes an evaluation module 35, a communication module 36, and an adjustment module 37.
Wherein the evaluation module 35 is configured to: acquiring evaluation information of an electronic album template; and sending the evaluation information to the cloud.
The communication module 36 is configured to: acquiring an electronic album template manufactured by a user; and sending the electronic album template to the cloud.
The adjustment module 37 is configured to: receiving an adjustment instruction input by a user, wherein the adjustment instruction is used for adjusting a primitive object in the electronic album; and adjusting the generated electronic album according to the adjustment instruction.
According to the electronic album generating device provided by the embodiment of the application, the acquisition module 31 acquires the target image set; the face image screening module 32 screens face images from the set of target images; the filling image determining module 33 determines a face filling image from the face image; the generation module 34 generates an electronic album from the face-fill image. Compared with the existing automatic filling album with poor stability and low manual operation speed, the embodiment of the application can screen the face image from the target image set, determine the face filling image from the face image, further avoid filling errors during automatic filling and improve the reliability of automatic generation of the electronic album; and finally, generating an electronic album according to the face filling image, realizing automatic filling, and improving the generation speed of the electronic album.
The device can execute the method provided by all the embodiments of the application, and has the corresponding functional modules and beneficial effects of executing the method. Technical details not described in detail in this embodiment can be found in the methods provided in all the foregoing embodiments of the application.
Fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application. Fig. 8 shows a block diagram of an electronic device 312 suitable for use in implementing embodiments of the application. The electronic device 312 shown in fig. 8 is merely an example and should not be construed as limiting the functionality and scope of use of embodiments of the present application. Device 312 is typically a personal computer, tablet, or smart phone for editing an electronic album.
As shown in FIG. 8, the electronic device 312 is in the form of a general purpose computing device. Components of electronic device 312 may include, but are not limited to: one or more processors 316, a storage device 328, and a bus 318 that connects the different system components (including the storage device 328 and the processor 316).
Bus 318 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include industry standard architecture (Industry Standard Architecture, ISA) bus, micro channel architecture (Micro Channel Architecture, MCA) bus, enhanced ISA bus, multimedia electronics standards association (Video Electronics Standards Association, VESA) local bus, and peripheral component interconnect (Peripheral Component Interconnect, PCI) bus.
Electronic device 312 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by electronic device 312 and includes both volatile and nonvolatile media, removable and non-removable media.
The storage 328 may include computer system-readable media in the form of volatile memory, such as random access memory (Random Access Memory, RAM) 330 and/or cache memory 332. The electronic device 312 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 334 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 8, commonly referred to as a "hard disk drive"). Although not shown in fig. 8, a disk drive for reading from and writing to a removable nonvolatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from and writing to a removable nonvolatile optical disk (e.g., a Compact Disc-Read Only Memory (CD-ROM), digital versatile Disc (Digital Video Disc-Read Only Memory, DVD-ROM), or other optical media) may be provided. In such cases, each drive may be coupled to bus 318 through one or more data medium interfaces. Storage 328 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of embodiments of the application.
Programs 336 having a set (at least one) of program modules 326 may be stored, for example, in storage 328, such program modules 326 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 326 generally perform the functions and/or methods in the described embodiments of the application.
The electronic device 312 may also communicate with one or more external devices 314 (e.g., keyboard, pointing device, camera, display 324, etc.), one or more devices that enable a user to interact with the electronic device 312, and/or any devices (e.g., network card, modem, etc.) that enable the electronic device 312 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 322. Also, the electronic device 312 may communicate with one or more networks (e.g., local area network (Local Area Network, LAN), wide area network Wide Area Network, WAN) and/or a public network, such as the internet) via the network adapter 320. As shown, the network adapter 320 communicates with other modules of the electronic device 312 over the bus 318. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 312, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, disk array (Redundant Arrays of Independent Disks, RAID) systems, tape drives, data backup storage systems, and the like.
The processor 316 executes various functional applications and data processing by running programs stored in the storage 328, for example, implementing the method for creating an electronic album according to the above-described embodiment of the present application.
The embodiment of the application also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the method for generating an electronic album as provided by the embodiment of the application.
Of course, the computer-readable storage medium provided by the embodiments of the present application, on which the computer program stored, is not limited to the method operations described above, but may also perform the related operations in the adjustment method of the eye tracking sensor provided by any of the embodiments of the present application.
The computer storage media of embodiments of the application may take the form of any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
Note that the above is only a preferred embodiment of the present application and the technical principle applied. It will be understood by those skilled in the art that the present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the application. Therefore, while the application has been described in connection with the above embodiments, the application is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the application, which is set forth in the following claims.

Claims (10)

1. The method for creating the electronic album is characterized by comprising the following steps:
acquiring a target image set;
screening face images from the target image set;
determining a plurality of face contour information according to the face image;
if all the faces in the face image are positioned in the half-frame image of the face image, taking the half-frame image in which all the faces are positioned as a cutting area;
if all faces in the face image are located in two half images of the face image, acquiring size information of all image filling templates from an electronic album template, and searching for a matched image filling template according to the size information of the face image; taking the area of the image filling template with the area close to the area of the circumscribed rectangular area as the area of the cutting area, and determining the cutting area in the face image according to the area;
determining a face filling image according to the cutting area;
and generating an electronic album according to the face filling image.
2. The method for generating an electronic album according to claim 1, wherein the step of screening face images from the target image set comprises:
sequentially reading target images in the target image set;
judging whether the target image is a face image or not according to the label information of the target image; the tag information is information identifying the target image content.
3. The method for generating an electronic album according to claim 1, wherein the cutout area is an circumscribed rectangular area of an image area corresponding to the plurality of face contour information.
4. The method for generating an electronic album according to claim 1, wherein generating the electronic album from the face-filling image comprises:
accessing the cloud end through a link address provided by album editing software;
acquiring an electronic album template from the cloud;
filling the face filling image and other images in the target image set into the electronic album template;
and storing the filled electronic album in a user storage space of the cloud.
5. The method for creating an electronic album according to claim 4, further comprising, after creating the electronic album from the face-filling image:
acquiring evaluation information of the electronic album template;
and sending the evaluation information to a cloud.
6. The method for creating an electronic album according to claim 5, further comprising, before the electronic album template is obtained from the cloud:
acquiring an electronic album template manufactured by a user;
and sending the electronic album template to a cloud.
7. The method for creating an electronic album according to any one of claims 1 to 6, further comprising, after creating an electronic album from the face-filling image:
receiving an adjustment instruction input by a user, wherein the adjustment instruction is used for adjusting a primitive object in the electronic album;
and adjusting the generated electronic album according to the adjustment instruction.
8. A creation device of an electronic album, comprising:
the acquisition module is used for acquiring a target image set;
the face image screening module is used for screening face images from the target image set acquired by the acquisition module;
the filling image determining module is used for determining a plurality of face contour information according to the face image;
if all the faces in the face image are positioned in the half-frame image of the face image, taking the half-frame image in which all the faces are positioned as a cutting area;
if all faces in the face image are located in two half images of the face image, acquiring size information of all image filling templates from an electronic album template, and searching for a matched image filling template according to the size information of the face image; taking the area of the image filling template with the area close to the area of the circumscribed rectangular area as the area of the cutting area, and determining the cutting area in the face image according to the area;
determining a face filling image according to the cutting area;
and the generating module is used for generating the electronic album according to the face filling image determined by the filling image determining module.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of creating an electronic album according to any of claims 1-7 when executing the program.
10. A computer-readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements a method of creating an electronic album according to any one of claims 1-7.
CN201910300157.9A 2019-04-15 2019-04-15 Electronic album generation method and device, electronic equipment and storage medium Active CN110009646B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910300157.9A CN110009646B (en) 2019-04-15 2019-04-15 Electronic album generation method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910300157.9A CN110009646B (en) 2019-04-15 2019-04-15 Electronic album generation method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110009646A CN110009646A (en) 2019-07-12
CN110009646B true CN110009646B (en) 2023-08-18

Family

ID=67171935

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910300157.9A Active CN110009646B (en) 2019-04-15 2019-04-15 Electronic album generation method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110009646B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112215919B (en) * 2020-09-16 2022-05-03 电子科技大学 Electronic photo album generating method and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103488749A (en) * 2013-09-24 2014-01-01 长沙裕邦软件开发有限公司 Network electronic album display method and system
CN105488156A (en) * 2015-11-30 2016-04-13 广州一刻影像科技有限公司 Method for automatically selecting electronic album template and generating electronic album
CN107437051A (en) * 2016-05-26 2017-12-05 上海市公安局刑事侦查总队 Image processing method and device
CN108108415A (en) * 2017-12-13 2018-06-01 广东欧珀移动通信有限公司 Image processing method, device, storage medium and electronic equipment
CN109446893A (en) * 2018-09-14 2019-03-08 百度在线网络技术(北京)有限公司 Face identification method, device, computer equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103488749A (en) * 2013-09-24 2014-01-01 长沙裕邦软件开发有限公司 Network electronic album display method and system
CN105488156A (en) * 2015-11-30 2016-04-13 广州一刻影像科技有限公司 Method for automatically selecting electronic album template and generating electronic album
CN107437051A (en) * 2016-05-26 2017-12-05 上海市公安局刑事侦查总队 Image processing method and device
CN108108415A (en) * 2017-12-13 2018-06-01 广东欧珀移动通信有限公司 Image processing method, device, storage medium and electronic equipment
CN109446893A (en) * 2018-09-14 2019-03-08 百度在线网络技术(北京)有限公司 Face identification method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN110009646A (en) 2019-07-12

Similar Documents

Publication Publication Date Title
CN109618222B (en) A kind of splicing video generation method, device, terminal device and storage medium
US8958662B1 (en) Methods and systems for automating insertion of content into media-based projects
US20180129898A1 (en) Apparatus, method and program for image search
US8990672B1 (en) Flexible design architecture for designing media-based projects in a network-based platform
US8774562B2 (en) Systems, methods, and media for creating multiple layers from an image
US11538096B2 (en) Method, medium, and system for live preview via machine learning models
US11676283B2 (en) Iteratively refining segmentation masks
US20120294514A1 (en) Techniques to enable automated workflows for the creation of user-customized photobooks
US8856656B2 (en) Systems and methods for customizing photo presentations
CN111062871A (en) Image processing method and device, computer equipment and readable storage medium
US7859543B2 (en) Displaying images
US20150143236A1 (en) Generating photo albums from unsorted collections of images
US9799099B2 (en) Systems and methods for automatic image editing
US20130155088A1 (en) Method, apparatus and system for generating an image slideshow
CN113808069A (en) Hierarchical multi-class exposure defect classification in images
CN111182367A (en) Video generation method and device and computer system
CN110009646B (en) Electronic album generation method and device, electronic equipment and storage medium
US20240078730A1 (en) Content-specific-preset edits for digital images
WO2024012289A1 (en) Video generation method and apparatus, electronic device and medium
TW201608398A (en) Methods and systems for image based searching
US20220284701A1 (en) Side by side image detection method and electronic apparatus using the same
CN113840099B (en) Video processing method, device, equipment and computer readable storage medium
US10235786B2 (en) Context aware clipping mask
US20240153038A1 (en) Image processing method and device, and training method of image processing model and training method thereof
CN113987239A (en) Image pushing method and device, computer equipment, storage medium and product

Legal Events

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