Summary of the invention
The invention provides a kind of method and the device that generate electronic post card, with thinking that the photo that will show provides the electronic post card of multiple format.
The invention provides a kind of method generating electronic post card, comprising: the image information receiving photo; Obtain the photo frame information preset; By the image information of described photo and photo frame information, synthesis electronic post card.
Wherein, by the image information of described photo and photo frame information, synthesis electronic post card, comprising: identify the white space in described photo frame; According to white space, intercept the parts of images information of described photo; By white space described in described parts of images information filling.
Wherein, according to white space, after intercepting the parts of images information of described photo, also comprise: background extraction pattern-information; By white space described in described background patterns information filling.
Wherein, after obtaining the photo frame information preset, also comprise:
Parse edge frame of photo frame information and photo frame decoration information; Change described photo frame decoration information.
Wherein, after obtaining the photo frame information preset; Also comprise: parse edge frame of photo frame information and photo frame decoration information; Change described edge frame of photo frame information, synthesizing photo frame information.
The present invention also provides a kind of device generating electronic post card, comprising: photo acquisition module, for obtaining the image information of photo; Photo frame acquisition module, for obtaining default photo frame information; Processing module, for by the image information of described photo and photo frame information, synthesizes electronic post card.
Wherein, described processing module comprises: white space identification module, for identifying the white space in described photo frame; Photo interception module, for according to white space, intercepts the parts of images information of described photo; Fill up module, for by white space described in described parts of images information filling.
Wherein, also comprise: background module, for background extraction pattern-information; Modify module, for by white space described in described background patterns information filling.
Wherein, also comprise: parsing module, for parsing edge frame of photo frame information and photo frame decoration information; Update module, for changing described photo frame decoration information.
The present invention is by real-time image acquisition information, and for described image information provides the photo frame of multiple format, thus it is more simple and efficient that the form of electronic photo is generated, content is abundanter, form is more attractive in appearance, has enriched the electronic information that network transmits, and makes the communication between people abundanter.
Other features and advantages of the present invention will be set forth in the following description, and, partly become apparent from instructions, or understand by implementing the present invention.Object of the present invention and other advantages realize by structure specifically noted in write instructions, claims and accompanying drawing and obtain.
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
Embodiment
Below in conjunction with accompanying drawing, the preferred embodiments of the present invention are described, should be appreciated that preferred embodiment described herein is only for instruction and explanation of the present invention, is not intended to limit the present invention.
The invention provides a kind of method generating electronic post card, see Fig. 1, comprise the following steps:
S100 receives the image information of photo;
By method provided by the invention, can be picture, photo provides photo easel format, makes it have the style of postcard.
Picture and photo can be stored in advance in local hard drive, and picture is also by Network Capture, and photo also can use existing capture apparatus to obtain, e.g., and camera, mobile phone, first-class equipment of making a video recording.
S200 obtains the photo frame information preset;
See Fig. 2, the photo frame of predeterminable multiple format, in this example, the photo frame of three kinds of forms is provided with below Fig. 2, the surrounding of described photo frame arranges decorative pattern, and what have is provided with decorative pattern and word in centre position, below decorative pattern being arranged on picture or photo also had.
S300, by the image information of described photo and photo frame information, synthesizes electronic post card.
Can show the photo frame of design in advance on screen, user, by triggering or selecting equipment choice to go out predetermined line photo frame, identifies the white space in described photo frame; According to white space, intercept the parts of images information of described photo; By white space described in described parts of images information filling.Thus formation electronic post card.
Preferably, also can be electronic post card and fill background patterns.
Described background patterns information, can be picture, may also be photo, from Network Capture, can may also be and obtained by drawing tool editor, by white space described in described background patterns information filling or described postcard, obtains the electronic post card with background patterns.
Parse edge frame of photo frame information and photo frame decoration information; Change described photo frame decoration information, form new photo frame information.
The present invention also provides a kind of device generating electronic post card, see Fig. 3, comprising: photo acquisition module 10, for obtaining the image information of photo; Photo frame acquisition module 20, for obtaining default photo frame information; Processing module 30, for by the image information of described photo and photo frame information, synthesizes electronic post card.
Preferably, described processing module comprises: white space identification module, for identifying the white space in described photo frame; Photo interception module, for according to white space, intercepts the parts of images information of described photo; Fill up module, for by white space described in described parts of images information filling.
Preferably, also comprise: background module, for background extraction pattern-information; Modify module, for by white space described in described background patterns information filling.
Preferably, also comprise: parsing module, for parsing edge frame of photo frame information and photo frame decoration information; Update module, for changing described photo frame decoration information, synthesizing photo frame information.
The present invention is by real-time image acquisition information, and for described image information provides the photo frame of multiple format, thus it is more simple and efficient that the form of electronic photo is generated, content is abundanter, form is more attractive in appearance, has enriched the electronic information that network transmits, and makes the communication between people abundanter.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disk memory and optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the process flow diagram of the method for the embodiment of the present invention, equipment (system) and computer program and/or block scheme.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block scheme and/or square frame and process flow diagram and/or block scheme and/or square frame.These computer program instructions can being provided to the processor of multi-purpose computer, special purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computing machine or other programmable data processing device produce device for realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be loaded in computing machine or other programmable data processing device, make on computing machine or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computing machine or other programmable devices is provided for the step realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.