CN105787982B - A kind of method and apparatus making e-book - Google Patents

A kind of method and apparatus making e-book Download PDF

Info

Publication number
CN105787982B
CN105787982B CN201610112549.9A CN201610112549A CN105787982B CN 105787982 B CN105787982 B CN 105787982B CN 201610112549 A CN201610112549 A CN 201610112549A CN 105787982 B CN105787982 B CN 105787982B
Authority
CN
China
Prior art keywords
character image
image
face
target person
head portrait
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
CN201610112549.9A
Other languages
Chinese (zh)
Other versions
CN105787982A (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.)
Tencent Technology Beijing Co Ltd
Original Assignee
Tencent Technology Beijing 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 Tencent Technology Beijing Co Ltd filed Critical Tencent Technology Beijing Co Ltd
Priority to CN201610112549.9A priority Critical patent/CN105787982B/en
Publication of CN105787982A publication Critical patent/CN105787982A/en
Application granted granted Critical
Publication of CN105787982B publication Critical patent/CN105787982B/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
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • G06T3/4038Image mosaicing, e.g. composing plane images from plane sub-images
    • 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
    • G06V40/161Detection; Localisation; Normalisation

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (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 invention discloses a kind of method and apparatus making e-book, belong to Internet technical field.The method includes:The first character image of target person is obtained, and obtains the first head portrait template image of user's selection in the head portrait template image of pre-stored e-book;Face-image identification is carried out to first character image, determines the facial area in first character image, obtains the face-image for including in the facial area of first character image;It is added in the first head portrait template image the face-image at preset image insertion area, obtains combination head portrait;By the combination head portrait, the predetermined position of the target pages in the e-book is set.Using the present invention, the flexibility for making e-book can be enhanced.

Description

A kind of method and apparatus making e-book
Technical field
The present invention relates to Internet technical field, more particularly to a kind of method and apparatus making e-book.
Background technology
With the development of Internet technology, various terminals are widely used, correspondingly, the function of terminal Also more and more abundant, people can carry out recreation by terminal, for example, people can make e-book (such as by terminal Electron album etc.), the contents such as image and word are arbitrarily added in e-books.
In general, user can select one or more character images to be placed on the specified location of e-book.Based on upper It states processing mode and shows image in e-books, only to the direct displaying of image, exhibition method is more single, to cause The flexibility for making e-book is poor.
Invention content
In order to solve problems in the prior art, an embodiment of the present invention provides a kind of method and apparatus making e-book. The technical solution is as follows:
In a first aspect, a kind of method making e-book is provided, the method includes:
The first character image of target person is obtained, and obtains and uses in the head portrait template image of pre-stored e-book First head portrait template image of family selection;
Face-image identification is carried out to first character image, determines the facial area in first character image, Obtain the face-image for including in the facial area of first character image;
By the face-image, it is added in the first head portrait template image at preset image insertion area, obtains Combine head portrait;
By the combination head portrait, the predetermined position of the target pages in the e-book is set.
Optionally, described that face-image identification is carried out to first character image, it determines in first character image Facial area, obtain the face-image for including in the facial area of first character image, including:
Face-image identification is carried out to first character image, obtains positioning the facial area in first character image The marginal position point of the preset quantity in domain;
According to the marginal position of preset quantity point and first character image, first character image is obtained Facial area in include face-image.
In this way, the face-image of the first character image can automatically be obtained by marginal position point, obtained it is thus possible to improve Take the efficiency of face-image.
Optionally, the method further includes:
At least one character image of the target person is obtained, and obtains at least one character image everyone The shooting time of object image;
According to the date of birth of the pre-stored target person and the shooting time of each character image, really The fixed target person corresponding age in each character image;
According to the correspondence and the target person of pre-stored age and text message in each character image In the corresponding age, determine the corresponding text message of each character image;
Each character image, the corresponding text message of each character image are set in the target pages In.
In this way, can be that each character image matches corresponding text message automatically, matched text information can be improved Efficiency.
Optionally, the method further includes:
At least one character image of the target person is obtained, and obtains at least one character image everyone The shooting time of object image;
According to the shooting of pre-stored shooting time and the correspondence and each character image of text message Time determines the corresponding text message of each character image;
Each character image, the corresponding text message of each character image are set in the target pages In.
In this way, can be that each character image matches corresponding text message automatically, matched text information can be improved Efficiency.
Optionally, the shooting time for obtaining each character image at least one character image, including:
Obtain the corresponding exchangeable image file EXIF information of each character image at least one character image;
In the corresponding EXIF information of each character image, the shooting time of each character image is obtained.
Second aspect, provides a kind of device making e-book, and described device includes:
First acquisition module, the first character image for obtaining target person, and in the head of pre-stored e-book The the first head portrait template image selected as obtaining user in template image;
First determining module determines first personage for carrying out face-image identification to first character image Facial area in image obtains the face-image for including in the facial area of first character image;
Add module is inserted for by the face-image, being added to preset image in the first head portrait template image Enter at region, obtains combination head portrait;
First setup module, for by the combination head portrait, the predeterminated position of the target pages in the e-book to be arranged Place.
Optionally, first determining module, including:
It identifies submodule, for carrying out face-image identification to first character image, obtains positioning described the first The marginal position point of the preset quantity of facial area in object image;
First acquisition submodule is used for the marginal position point according to the preset quantity and first character image, Obtain the face-image for including in the facial area of first character image.
Optionally, described device further includes:
Second acquisition module, at least one character image for obtaining the target person, and at least one described in acquisition The shooting time of each character image in a character image;
Second determining module is used for the date of birth according to the pre-stored target person and each personage The shooting time of image determines the target person corresponding age in each character image;
Third determining module, for the correspondence and the target according to pre-stored age and text message Personage's corresponding age in each character image determines the corresponding text message of each character image;
Second setup module, for by each character image, the corresponding text message of each character image, if It sets in the target pages.
Optionally, described device further includes:
Second acquisition module, at least one character image for obtaining the target person, and at least one described in acquisition The shooting time of each character image in a character image;
Second determining module, for according to the correspondence of pre-stored shooting time and text message and described The shooting time of each character image, determines the corresponding text message of each character image;
Second setup module, for by each character image, the corresponding text message of each character image, if It sets in the target pages.
Optionally, second acquisition module, including:
Second acquisition submodule, it is corresponding commutative for obtaining each character image at least one character image Image file EXIF information;
Third acquisition submodule, in the corresponding EXIF information of each character image, obtain it is described everyone The shooting time of object image.
The advantageous effect that technical solution provided in an embodiment of the present invention is brought is:
In the embodiment of the present invention, the first character image of target person is obtained, and in the head portrait of pre-stored e-book The first head portrait template image that user's selection is obtained in template image carries out face-image identification to the first character image, determines Facial area in first character image obtains the face-image for including in the facial area of the first character image, and face is schemed Picture is added in the first head portrait template image at preset image insertion area, obtains combination head portrait, will combine head portrait, is arranged The predetermined position of target pages in e-books.In this way, terminal can carry out Automated Design to character image, change original The content of character image, image shown in e-book are the images after the character image Automated Design that terminal-pair user chooses, It is thus possible to enhance the flexibility for making e-book.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, other are can also be obtained according to these attached drawings Attached drawing.
Fig. 1 is a kind of method flow diagram making e-book provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic diagram of combination head portrait provided in an embodiment of the present invention;
Fig. 3 is a kind of schematic diagram at interface provided in an embodiment of the present invention;
Fig. 4 is a kind of schematic diagram of e-book provided in an embodiment of the present invention;
Fig. 5 is a kind of apparatus structure schematic diagram making e-book provided in an embodiment of the present invention;
Fig. 6 is a kind of apparatus structure schematic diagram making e-book provided in an embodiment of the present invention;
Fig. 7 is a kind of apparatus structure schematic diagram making e-book provided in an embodiment of the present invention;
Fig. 8 is a kind of apparatus structure schematic diagram making e-book provided in an embodiment of the present invention;
Fig. 9 is a kind of apparatus structure schematic diagram making e-book provided in an embodiment of the present invention;
Figure 10 is a kind of structural schematic diagram of terminal provided in an embodiment of the present invention.
Specific implementation mode
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention Formula is described in further detail.
An embodiment of the present invention provides a kind of method making e-book, the executive agent of this method is terminal.Wherein, should Terminal can be the mobile terminals such as mobile phone, tablet computer, can also be PC (Personal Computer, PC).The end Processor, memory can be provided in end, processor can be used for carrying out facial figure to the first character image of target person As identification, and it will identify that obtained face-image is added to the relevant treatment of head portrait template image, memory can be used for depositing Store up the data for needing and generating in following processing procedures.It is also provided with transceiver, transceiver can be used for sending and receiving Data.
Below in conjunction with specific implementation mode, process flow shown in FIG. 1 is described in detail, content can be as Under:
Step 101, the first character image of target person is obtained, and in the head portrait template image of pre-stored e-book Middle the first head portrait template image for obtaining user's selection.
Wherein, the first character image can be the personal direct picture of target person.
In force, it can be equipped in terminal with the application program for making ebook function, user can be by this The image (such as photo) of oneself or household's (i.e. target person) are made e-book by application program, you can to pass through terminal-pair target The content of the image (i.e. the first character image) of personage is modified, for example, can be by by the first figure map of target person As being combined making e-book with cartoon image.In addition, user can also be by with the website system for making ebook function Make e-book.Specifically, user is when making e-book, it first can be in the head portrait template image of pre-stored e-book A head portrait template image (i.e. the first head portrait template image) is selected, and chooses the first character image of target person, terminal will The first character image of the target person of user's selection can be obtained, and obtains the first head portrait template image of user's selection.Below Detailed statement will be carried out to present disclosure so that user is by website making e-book as an example.Terminal obtains the first personage After image and the first head portrait template image, server can be sent it to, wherein after server can be above-mentioned website Platform server.
Step 102, face-image identification is carried out to the first character image, determines the facial area in the first character image, Obtain the face-image for including in the facial area of the first character image.
In force, server can receive the first character image of terminal transmission, and can carry out recognition of face to it (i.e. face-image identifies), determines the facial area in the first character image, in turn, can obtain face according to the first character image The face-image for including in portion region.
Optionally, the face-image of the first character image, phase can be obtained by positioning the marginal position point of facial area It answers, the processing procedure of step 102 can be as follows:Face-image identification is carried out to the first character image, obtains positioning the first The marginal position point of the preset quantity of facial area in object image;According to the marginal position of preset quantity point and the first personage Image obtains the face-image for including in the facial area of the first character image.
Wherein, marginal position point can be the location point of the facial area surrounding in the first character image, can be pixel Position.
In force, the number of the marginal position point for positioning the facial area in the first character image can be pre-set Amount.After server receives the first character image of terminal transmission, face-image identification can be carried out to the first character image, obtained To the marginal position point for the preset quantity that can position the facial area in the first character image, wherein 21 sides can be obtained Edge location point.After server gets the marginal position point of preset quantity, the storage of the first character image can be sent to terminal The marginal position point of position (such as network address) and the preset quantity obtained, terminal can receive the storage location of server transmission And the marginal position point of preset quantity, storage location that can be by the first character image in server store, and can be with According to the marginal position point for the preset quantity that local pre-stored first character image and server are sent, obtain the first The face-image for including in the facial area of object image deducts it according to the marginal position of acquisition o'clock from the first character image In the facial area face-image that includes.
Step 103, by face-image, it is added in the first head portrait template image at preset image insertion area, obtains Combine head portrait.
In force, after terminal obtains face-image, the face-image of acquisition can be added to first obtained in advance At preset image insertion area in head portrait template image, as shown in Fig. 2, obtaining face-image and the first head portrait template image Combination head portrait, wherein the first head portrait template image can be the cartoon image for having image insertion area.Specifically, terminal The maximum length or maximum width of the image insertion area of the first head portrait template image can be obtained, terminal can will obtain first Face-image zoom in and out, so that the size of the face-image after scaling is inserted with the preset image in the first head portrait template image The size for entering region is almost the same, and the face-image after scaling is then added to preset figure in the first head portrait template image again As at insert region, at this point, user can manually be micro-adjusted the position where the face-image after scaling, being combined Head portrait.
Optionally, terminal can also be according to the correspondence at age and text message, to other character image matched texts Information, correspondingly, processing procedure can be as follows:At least one character image of target person is obtained, and obtains at least one people The shooting time of each character image in object image;According to the date of birth of pre-stored target person and each figure map The shooting time of picture determines target person corresponding age in each character image;According to pre-stored age and text At the correspondence and target person of information corresponding age in each character image, determine that each character image is corresponding Text message;Each character image, the corresponding text message of each character image are set in target pages.
In force, user can input the personal information of target person first by terminal when making e-book, In, personal information can be name, gender, hobby, birthday (i.e. date of birth) etc., to make electricity when making e-book The philosophical works is combined with personal information, and later, personal information input by user can be sent to server by terminal, and server can To judge the integrality and legitimacy of personal information, when personal information is complete and legal, and then user can select it is above-mentioned First character image.After obtaining combination head portrait, terminal can pop up the page for continuing to upload image, as shown in figure 3, user can be with Continuing a upload at least character image according to page prompts, (wherein, which can be the first character image, can also It is other character images for including target person), for example, may include addition picture button in the page, user wants to continue to When uploading image, can click addition picture button in turn can be from least one figure map for locally selecting target person Picture, at this point, will triggering terminal obtain at least one character image of target person, and can will at least character image hair It send to server, server can receive at least one character image of terminal transmission, and can be according at least one of reception The shooting time that character image obtains each character image at least one character image in turn can be according to input by user The shooting time of the date of birth of target person and each character image determines that target person is corresponding in each character image Age, i.e., when shooting each character image, the age of target person.It is corresponding with text message that the age can be prestored Relationship determines that target person, can be corresponding with text message at the above-mentioned age in each character image after the corresponding age Relationship determines that the corresponding text message of each age obtained determines the corresponding text message of each character image, example in turn Such as, the age of the corresponding target person of one of character image is 3 years old, matched text message can be " baby can more than Kindergarten ".It, can be by the storage of each character image after server determines the corresponding text message of each character image Position and corresponding text message are sent to terminal, and in turn, terminal can be by personal information input by user, each figure map Picture and its corresponding text message, are arranged in the target pages of e-book, as shown in Figure 4, wherein can be preset in e-book There are multiple positions for placing personal images that can be randomly placed in predeterminated position after terminal obtains each character image.With Family can preserve the e-book of making, at this point, will triggering terminal to server send target person e-book, In, terminal can send the corresponding storage location of each character image, clothes when uploading the e-book of target person to server Business device can receive the e-book of the target person of terminal transmission, and the storage location acquisition that can be sent according to terminal is each deposited Storage space sets the character image of storage, and then can obtain including the e-book of each character image, and is preserved to it, when with Family be intended to preview generate e-book when, the e-book of preservation can be sent to terminal by server so that user can carry out it is pre- It lookes at.
Optionally, terminal can also match other character images according to the correspondence of shooting time and text message Text message, correspondingly, processing procedure can be as follows:At least one character image of target person is obtained, and obtains at least one The shooting time of each character image in a character image;It is closed according to pre-stored shooting time is corresponding with text message System, and each shooting time of character image, determine the corresponding text message of each character image;By each character image, The corresponding text message of each character image, is arranged in target pages.
In force, user can input the personal information of target person first by terminal when making e-book, In, personal information can be name, gender, hobby, birthday (i.e. date of birth) etc., to make electricity when making e-book The philosophical works is combined with personal information, and later, personal information input by user can be sent to server by terminal, and server can To judge the integrality and legitimacy of personal information, when personal information is complete and legal, and then user can select it is above-mentioned First character image.After obtaining combination head portrait, terminal can pop up the page for continuing to upload image, as shown in figure 3, user can be with Continuing a upload at least character image according to page prompts, (wherein, which can be the first character image, can also It is other character images for including target person), for example, may include addition picture button in the page, user wants to continue to When uploading image, can click addition picture button in turn can be from least one figure map for locally selecting target person Picture, at this point, will triggering terminal obtain at least one character image of target person, and can will at least character image hair It send to server, server can receive at least one character image of terminal transmission, and can be according at least one of reception Character image obtains the shooting time of each character image at least one character image.Shooting time and text can be prestored The correspondence of this information can be in above-mentioned shooting time and text message after the shooting time for obtaining each character image Correspondence determines the corresponding text message of each character image.Server determines the corresponding text envelope of each character image After breath, the storage location of each character image and corresponding text message can be sent to terminal, in turn, terminal can incite somebody to action Personal information, each character image and its corresponding text message input by user, are arranged in the target pages of e-book, such as Shown in Fig. 4, wherein multiple positions for placing personal images can be preset in e-book, after terminal obtains each character image, Predeterminated position can be randomly placed in.User can preserve the e-book of making, at this point, will triggering terminal to Server sends the e-book of target person, wherein terminal can be sent when uploading the e-book of target person to server The corresponding storage location of each character image, server can receive the e-book of the target person of terminal transmission, and can root The storage location sent according to terminal obtains the character image of each storage location storage, and then can obtain including each figure map The e-book of picture, and it is preserved, when user is intended to the e-book that preview generates, server can be by the e-book of preservation It is sent to terminal, so that user can carry out preview.
Optionally, the shooting time of each character image can be obtained, correspondingly, processing procedure can by EXIF information With as follows:Obtain the corresponding exchangeable image file EXIF information of each character image at least one character image;Each In the corresponding EXIF information of character image, the shooting time of each character image is obtained.
In force, after getting at least one character image, each personage at least one character image can be obtained The corresponding exchangeable image file EXIF information of image can obtain in the corresponding EXIF information of each character image in turn The shooting time of each character image.
In addition, user can preserve the atlas of obtained target person or share on the net, can also carry out It places an order and prints, terminal will receive the simultaneously print command that places an order at this time, and send it to server, and staff receives After order, it will printed to the atlas of target person, and according to pre-stored address, the atlas of printing is sent to use Family.
Step 104, head portrait will be combined, the predetermined position of target pages in e-books is set.
In force, it can be preset with the position for placing combination head portrait in e-book, can be the wherein page (i.e. page object Face) a certain position (i.e. predeterminated position).After obtaining combination head portrait, terminal can place it in target pages in e-book Predetermined position.
In the embodiment of the present invention, the first character image of target person is obtained, and in the head portrait of pre-stored e-book The first head portrait template image that user's selection is obtained in template image carries out face-image identification to the first character image, determines Facial area in first character image obtains the face-image for including in the facial area of the first character image, and face is schemed Picture is added in the first head portrait template image at preset image insertion area, obtains combination head portrait, will combine head portrait, is arranged The predetermined position of target pages in e-books.In this way, terminal can carry out Automated Design to character image, change original The content of character image, image shown in e-book are the images after the character image Automated Design that terminal-pair user chooses, It is thus possible to enhance the flexibility for making e-book.
Based on the same technical idea, the embodiment of the present invention additionally provides a kind of device making e-book, such as Fig. 5 institutes Show, which includes:
First acquisition module 510, the first character image for obtaining target person, and in pre-stored e-book The first head portrait template image of user's selection is obtained in head portrait template image;
First determining module 520 determines described the first for carrying out face-image identification to first character image Facial area in object image obtains the face-image for including in the facial area of first character image;
Add module 530, for by the face-image, being added to preset image in the first head portrait template image At insert region, combination head portrait is obtained;
First setup module 540, for by the combination head portrait, the default position of target pages to be arranged in the e-book Set place.
Optionally, as shown in fig. 6, first determining module 520, including:
It identifies submodule 5201, for carrying out face-image identification to first character image, obtains positioning described the The marginal position point of the preset quantity of facial area in one character image;
First acquisition submodule 5202 is used for the marginal position point according to the preset quantity and first figure map Picture obtains the face-image for including in the facial area of first character image.
Optionally, as shown in fig. 7, described device further includes:
Second acquisition module 550, at least one character image for obtaining the target person, and described in acquisition at least The shooting time of each character image in one character image;
Second determining module 560, for according to the date of birth of the pre-stored target person and described each The shooting time of character image determines the target person corresponding age in each character image;
Third determining module 570, for the correspondence and the mesh according to pre-stored age and text message Personage's corresponding age in each character image is marked, determines the corresponding text message of each character image;
Second setup module 580, for by each character image, the corresponding text envelope of each character image Breath is arranged in the target pages.
Optionally, as shown in figure 8, described device further includes:
Second acquisition module 550, at least one character image for obtaining the target person, and described in acquisition at least The shooting time of each character image in one character image;
Second determining module 560, for the correspondence according to pre-stored shooting time and text message, Yi Jisuo The shooting time for stating each character image determines the corresponding text message of each character image;
Second setup module 580, for by each character image, the corresponding text envelope of each character image Breath is arranged in the target pages.
Optionally, as shown in figure 9, second acquisition module 550, including:
Second acquisition submodule 5501, for obtain at least one character image it is each character image is corresponding can Swap image file EXIF information;
Third acquisition submodule 5502, it is described every in the corresponding EXIF information of each character image, obtaining The shooting time of a character image.
In the embodiment of the present invention, the first character image of target person is obtained, and in the head portrait of pre-stored e-book The first head portrait template image that user's selection is obtained in template image carries out face-image identification to the first character image, determines Facial area in first character image obtains the face-image for including in the facial area of the first character image, and face is schemed Picture is added in the first head portrait template image at preset image insertion area, obtains combination head portrait, will combine head portrait, is arranged The predetermined position of target pages in e-books.In this way, terminal can carry out Automated Design to character image, change original The content of character image, image shown in e-book are the images after the character image Automated Design that terminal-pair user chooses, It is thus possible to enhance the flexibility for making e-book.
It should be noted that:The device for the making e-book that above-described embodiment provides is when making e-book, only with above-mentioned The division progress of each function module, can be as needed and by above-mentioned function distribution by different for example, in practical application Function module is completed, i.e., the internal structure of equipment is divided into different function modules, with complete it is described above whole or Partial function.In addition, the device for the making e-book that above-described embodiment provides belongs to same with the embodiment of the method for making e-book One design, specific implementation process refer to embodiment of the method, and which is not described herein again.
The embodiment of the present invention additionally provides a kind of terminal, referring to FIG. 10, it illustrates involved by the embodiment of the present invention The structural schematic diagram of terminal, the method for the making e-book which can be used for implementing to provide in above-described embodiment.It is specific next It says:
Terminal 1000 may include RF (Radio Frequency, radio frequency) circuit 110, include one or more The memory 120 of computer readable storage medium, input unit 130, display unit 140, sensor 150, voicefrequency circuit 160, WiFi (wireless fidelity, Wireless Fidelity) module 170, include there are one or more than one processing core processing The components such as device 180 and power supply 190.It will be understood by those skilled in the art that terminal structure shown in Figure 10 is not constituted pair The restriction of terminal may include either combining certain components or different component cloth than illustrating more or fewer components It sets.Wherein:
RF circuits 110 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base station After downlink information receives, one or the processing of more than one processor 180 are transferred to;In addition, the data for being related to uplink are sent to Base station.In general, RF circuits 110 include but not limited to antenna, at least one amplifier, tuner, one or more oscillators, use Family identity module (SIM) card, transceiver, coupler, LNA (Low Noise Amplifier, low-noise amplifier), duplex Device etc..In addition, RF circuits 110 can also be communicated with network and other equipment by radio communication.The wireless communication can make With any communication standard or agreement, and including but not limited to GSM (Global System of Mobile communication, entirely Ball mobile communcations system), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), LTE (Long Term Evolution, long term evolution), Email, SMS (Short Messaging Service, short message service) etc..
Memory 120 can be used for storing software program and module, and processor 180 is stored in memory 120 by operation Software program and module, to perform various functions application and data processing.Memory 120 can include mainly storage journey Sequence area and storage data field, wherein storing program area can storage program area, the application program (ratio needed at least one function Such as sound-playing function, image player function) etc.;Storage data field can be stored uses created number according to terminal 1000 According to (such as audio data, phone directory etc.) etc..In addition, memory 120 may include high-speed random access memory, can also wrap Include nonvolatile memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts. Correspondingly, memory 120 can also include Memory Controller, to provide processor 180 and input unit 130 to memory 120 access.
Input unit 130 can be used for receiving the number or character information of input, and generate and user setting and function Control related keyboard, mouse, operating lever, optics or the input of trace ball signal.Specifically, input unit 130 may include touching Sensitive surfaces 131 and other input equipments 132.Touch sensitive surface 131, also referred to as touch display screen or Trackpad are collected and are used Family on it or neighbouring touch operation (such as user using any suitable object or attachment such as finger, stylus in touch-sensitive table Operation on face 131 or near touch sensitive surface 131), and corresponding attachment device is driven according to preset formula.It is optional , touch sensitive surface 131 may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detection is used The touch orientation at family, and the signal that touch operation is brought is detected, transmit a signal to touch controller;Touch controller is from touch Touch information is received in detection device, and is converted into contact coordinate, then gives processor 180, and can receive processor 180 The order sent simultaneously is executed.Furthermore, it is possible to using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves Realize touch sensitive surface 131.In addition to touch sensitive surface 131, input unit 130 can also include other input equipments 132.Specifically, Other input equipments 132 can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), It is one or more in trace ball, mouse, operating lever etc..
Display unit 140 can be used for showing information input by user or the information and terminal 1000 that are supplied to user Various graphical user interface, these graphical user interface can be made of figure, text, icon, video and its arbitrary combination. Display unit 140 may include display panel 141, optionally, LCD (Liquid Crystal Display, liquid crystal may be used Show device), the forms such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) configure display panel 141.Further, touch sensitive surface 131 can cover display panel 141, when touch sensitive surface 131 detects on it or neighbouring touches After touching operation, processor 180 is sent to determine the type of touch event, is followed by subsequent processing type of the device 180 according to touch event Corresponding visual output is provided on display panel 141.Although in Fig. 10, touch sensitive surface 131 and display panel 141 are conducts Two independent components realize input and input function, but in some embodiments it is possible to by touch sensitive surface 131 and display Panel 141 is integrated and realizes and outputs and inputs function.
Terminal 1000 may also include at least one sensor 150, such as optical sensor, motion sensor and other sensings Device.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 141, and proximity sensor can close display when terminal 1000 is moved in one's ear Panel 141 and/or backlight.As a kind of motion sensor, gravity accelerometer can detect in all directions (generally Three axis) acceleration size, size and the direction of gravity are can detect that when static, can be used to identify mobile phone posture application (ratio Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);Extremely In other sensors such as gyroscope, barometer, hygrometer, thermometer, the infrared sensors that terminal 1000 can also configure, herein It repeats no more.
Voicefrequency circuit 160, loud speaker 161, microphone 162 can provide the audio interface between user and terminal 1000.Sound The transformed electric signal of the audio data received can be transferred to loud speaker 161, is converted to by loud speaker 161 by frequency circuit 160 Voice signal exports;On the other hand, the voice signal of collection is converted to electric signal by microphone 162, is received by voicefrequency circuit 160 After be converted to audio data, it is such as another to be sent to through RF circuits 110 then by after the processing of audio data output processor 180 Terminal, or audio data is exported to memory 120 to be further processed.Voicefrequency circuit 160 is also possible that earplug is inserted Hole, to provide the communication of peripheral hardware earphone and terminal 1000.
WiFi belongs to short range wireless transmission technology, and terminal 1000 can help user to receive and dispatch electricity by WiFi module 170 Sub- mail, browsing webpage and access streaming video etc., it has provided wireless broadband internet to the user and has accessed.Although Figure 10 shows Go out WiFi module 170, but it is understood that, and it is not belonging to must be configured into for terminal 1000, it completely can be according to need It to be omitted in the range for the essence for not changing invention.
Processor 180 is the control centre of terminal 1000, utilizes each portion of various interfaces and connection whole mobile phone Point, by running or execute the software program and/or module that are stored in memory 120, and calls and be stored in memory 120 Interior data execute the various functions and processing data of terminal 1000, to carry out integral monitoring to mobile phone.Optionally, it handles Device 180 may include one or more processing cores;Preferably, processor 180 can integrate application processor and modulation /demodulation processing Device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is mainly located Reason wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 180.
Terminal 1000 further includes the power supply 190 (such as battery) powered to all parts, it is preferred that power supply can pass through electricity Management system and processor 180 are logically contiguous, to realize management charging, electric discharge and power consumption by power-supply management system The functions such as management.Power supply 190 can also include one or more direct current or AC power, recharging system, power supply event Hinder the random components such as detection circuit, power supply changeover device or inverter, power supply status indicator.
Although being not shown, terminal 1000 can also include camera, bluetooth module etc., and details are not described herein.Specifically at this In embodiment, the display unit of terminal 1000 is touch-screen display, terminal 1000 further include have memory and one or More than one program, either more than one program is stored in memory and is configured to by one or one for one of them A above processor execution states one or more than one program includes the instruction for being operated below:
The first character image of target person is obtained, and obtains and uses in the head portrait template image of pre-stored e-book First head portrait template image of family selection;
Face-image identification is carried out to first character image, determines the facial area in first character image, Obtain the face-image for including in the facial area of first character image;
By the face-image, it is added in the first head portrait template image at preset image insertion area, obtains Combine head portrait;
By the combination head portrait, the predetermined position of the target pages in the e-book is set.
Optionally, described that face-image identification is carried out to first character image, it determines in first character image Facial area, obtain the face-image for including in the facial area of first character image, including:
Face-image identification is carried out to first character image, obtains positioning the facial area in first character image The marginal position point of the preset quantity in domain;
According to the marginal position of preset quantity point and first character image, first character image is obtained Facial area in include face-image.
Optionally, the method further includes:
At least one character image of the target person is obtained, and obtains at least one character image everyone The shooting time of object image;
According to the date of birth of the pre-stored target person and the shooting time of each character image, really The fixed target person corresponding age in each character image;
According to the correspondence and the target person of pre-stored age and text message in each character image In the corresponding age, determine the corresponding text message of each character image;
Each character image, the corresponding text message of each character image are set in the target pages In.
Optionally, the method further includes:
At least one character image of the target person is obtained, and obtains at least one character image everyone The shooting time of object image;
According to the shooting of pre-stored shooting time and the correspondence and each character image of text message Time determines the corresponding text message of each character image;
Each character image, the corresponding text message of each character image are set in the target pages In.
Optionally, the shooting time for obtaining each character image at least one character image, including:
Obtain the corresponding exchangeable image file EXIF information of each character image at least one character image;
In the corresponding EXIF information of each character image, the shooting time of each character image is obtained.
In the embodiment of the present invention, the first character image of target person is obtained, and in the head portrait of pre-stored e-book The first head portrait template image that user's selection is obtained in template image carries out face-image identification to the first character image, determines Facial area in first character image obtains the face-image for including in the facial area of the first character image, and face is schemed Picture is added in the first head portrait template image at preset image insertion area, obtains combination head portrait, will combine head portrait, is arranged The predetermined position of target pages in e-books.In this way, terminal can carry out Automated Design to character image, change original The content of character image, image shown in e-book are the images after the character image Automated Design that terminal-pair user chooses, It is thus possible to enhance the flexibility for making e-book.
One of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can be stored in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all the present invention spirit and Within principle, any modification, equivalent replacement, improvement and so on should all be included in the protection scope of the present invention.

Claims (8)

1. a kind of method making e-book, which is characterized in that the method includes:
The first character image of target person is obtained, and obtains user's choosing in the head portrait template image of pre-stored e-book The the first head portrait template image selected;
Face-image identification is carried out to first character image, determines the facial area in first character image, is obtained The face-image for including in the facial area of first character image;
By the face-image, it is added in the first head portrait template image at preset image insertion area, is combined Head portrait;
By the combination head portrait, the predetermined position of the target pages in the e-book is set;
The method further includes:
At least one character image of the target person is obtained, and obtains each figure map at least one character image The shooting time of picture;
According to the date of birth of the pre-stored target person and the shooting time of each character image, institute is determined State target person corresponding age in each character image;
It is right in each character image according to the correspondence and the target person of pre-stored age and text message The age answered determines the corresponding text message of each character image;
By the personal information of the target person of input, each character image, the corresponding text envelope of each character image Breath is arranged in the target pages.
2. according to the method described in claim 1, it is characterized in that, described carry out face-image knowledge to first character image Not, it determines the facial area in first character image, obtains the face for including in the facial area of first character image Portion's image, including:
Face-image identification is carried out to first character image, obtains positioning the facial area in first character image The marginal position point of preset quantity;
According to the marginal position of preset quantity point and first character image, the face of first character image is obtained The face-image for including in portion region.
3. according to the method described in claim 1, it is characterized in that, the method further includes:
At least one character image of the target person is obtained, and obtains each figure map at least one character image The shooting time of picture;
When according to the shooting of the correspondence and each character image of pre-stored shooting time and text message Between, determine the corresponding text message of each character image;
Each character image, the corresponding text message of each character image are set in the target pages.
4. method according to claim 1 or 3, which is characterized in that described to obtain at least one character image often The shooting time of a character image, including:
Obtain the corresponding exchangeable image file EXIF information of each character image at least one character image;
In the corresponding EXIF information of each character image, the shooting time of each character image is obtained.
5. a kind of device making e-book, which is characterized in that described device includes:
First acquisition module, the first character image for obtaining target person, and in the head portrait mould of pre-stored e-book The first head portrait template image of user's selection is obtained in plate image;
First determining module determines first character image for carrying out face-image identification to first character image In facial area, obtain the face-image for including in the facial area of first character image;
Add module, for by the face-image, being added to preset image insert district in the first head portrait template image At domain, combination head portrait is obtained;
First setup module, for by the combination head portrait, the predetermined position of the target pages in the e-book to be arranged;
Described device further includes:
Second acquisition module, at least one character image for obtaining the target person, and obtain at least one people The shooting time of each character image in object image;
Second determining module is used for the date of birth according to the pre-stored target person and each character image Shooting time, determine the target person corresponding age in each character image;
Third determining module, for the correspondence and the target person according to pre-stored age and text message The corresponding age in each character image determines the corresponding text message of each character image;
Second setup module, the personal information of the target person for that will input, each character image, each personage The corresponding text message of image is arranged in the target pages.
6. device according to claim 5, which is characterized in that first determining module, including:
It identifies submodule, for carrying out face-image identification to first character image, obtains positioning first figure map The marginal position point of the preset quantity of facial area as in;
First acquisition submodule is used for the marginal position point according to the preset quantity and first character image, obtains The face-image for including in the facial area of first character image.
7. device according to claim 5, which is characterized in that described device further includes:
Second acquisition module, at least one character image for obtaining the target person, and obtain at least one people The shooting time of each character image in object image;
Second determining module, for according to the correspondence of pre-stored shooting time and text message and described each The shooting time of character image determines the corresponding text message of each character image;
Second setup module, for will each character image, the corresponding text message of each character image, be arranged and exist In the target pages.
8. the device according to claim 5 or 7, which is characterized in that second acquisition module, including:
Second acquisition submodule, for obtaining the corresponding commutative image of each character image at least one character image File EXIF information;
Third acquisition submodule, in the corresponding EXIF information of each character image, obtaining each figure map The shooting time of picture.
CN201610112549.9A 2016-02-29 2016-02-29 A kind of method and apparatus making e-book Active CN105787982B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610112549.9A CN105787982B (en) 2016-02-29 2016-02-29 A kind of method and apparatus making e-book

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610112549.9A CN105787982B (en) 2016-02-29 2016-02-29 A kind of method and apparatus making e-book

Publications (2)

Publication Number Publication Date
CN105787982A CN105787982A (en) 2016-07-20
CN105787982B true CN105787982B (en) 2018-11-09

Family

ID=56386522

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610112549.9A Active CN105787982B (en) 2016-02-29 2016-02-29 A kind of method and apparatus making e-book

Country Status (1)

Country Link
CN (1) CN105787982B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106454328B (en) * 2016-10-21 2018-10-30 航天恒星科技有限公司 Quality of image grade prediction technique and system
CN108520508B (en) * 2018-04-04 2019-02-01 掌阅科技股份有限公司 User image optimization method, calculating equipment and storage medium based on user behavior
CN111556251A (en) * 2020-05-20 2020-08-18 深圳前海微众银行股份有限公司 Electronic book generation method, device and medium
CN114205318B (en) * 2020-08-31 2023-12-08 荣耀终端有限公司 Head portrait display method and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101477696A (en) * 2009-01-09 2009-07-08 彭振云 Human character cartoon image generating method and apparatus
CN104156476A (en) * 2014-08-25 2014-11-19 小米科技有限责任公司 Image synthesis method and device
CN104657974A (en) * 2013-11-25 2015-05-27 腾讯科技(上海)有限公司 Image processing method and device
CN105302315A (en) * 2015-11-20 2016-02-03 小米科技有限责任公司 Image processing method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101477696A (en) * 2009-01-09 2009-07-08 彭振云 Human character cartoon image generating method and apparatus
CN104657974A (en) * 2013-11-25 2015-05-27 腾讯科技(上海)有限公司 Image processing method and device
CN104156476A (en) * 2014-08-25 2014-11-19 小米科技有限责任公司 Image synthesis method and device
CN105302315A (en) * 2015-11-20 2016-02-03 小米科技有限责任公司 Image processing method and device

Also Published As

Publication number Publication date
CN105787982A (en) 2016-07-20

Similar Documents

Publication Publication Date Title
CN106933525B (en) A kind of method and apparatus showing image
CN104618217B (en) Share method, terminal, server and the system of resource
CN104978176B (en) Application programming interfaces call method, device and computer readable storage medium
CN106371689B (en) Picture joining method, apparatus and system
CN106488296B (en) A kind of method and apparatus showing video barrage
CN104519404B (en) The player method and device of graphic interchange format file
CN104238893B (en) A kind of method and apparatus that video preview picture is shown
CN104407804B (en) Screenshotss method, apparatus and electronic equipment
CN105808060B (en) A kind of method and apparatus of playing animation
CN105094513B (en) User's head portrait setting method, device and electronic equipment
CN104021129B (en) Show the method and terminal of group picture
CN104516624B (en) A kind of method and device inputting account information
CN106504303B (en) A kind of method and apparatus playing frame animation
CN105787982B (en) A kind of method and apparatus making e-book
CN108549519A (en) split screen processing method, device, storage medium and electronic equipment
CN106204423A (en) A kind of picture-adjusting method based on augmented reality, device and terminal
CN106254910A (en) A kind of method and apparatus recording image
CN104166646B (en) A kind of method and apparatus for inputting uniform resource locator
CN107436948A (en) File search method, device and terminal
CN106951139A (en) Message notifying frame display methods and device
CN104516890B (en) Method for processing business, device and electronic equipment
CN104660769B (en) A kind of methods, devices and systems for adding associated person information
CN107809531A (en) A kind of schedule creation method, mobile terminal
CN109491632A (en) A kind of resource sharing method and terminal
CN107396193B (en) The method and apparatus of video playing

Legal Events

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