Embodiment one
With reference to Fig. 1, it is shown that the flow chart of steps of a kind of image pickup method embodiment one of the present invention, specificallyMay include that
Step 101, gathered the first image by post-positioned pick-up head;
Step 102, gathered the second image by front-facing camera;
The embodiment of the present invention can apply to mobile phone, camera etc. and has in the electronic equipment of shoot function, usesThe photo of user's request is met in the ratio aspect obtaining personage and scenery for user's shooting.
In actual applications, post-positioned pick-up head, front-facing camera can be respectively used to expression and be positioned at electronic equipmentRear end and the photographic head of front end.Wherein, above-mentioned post-positioned pick-up head and front-facing camera can be different taking the photographAs head, it is also possible to for identical photographic head.For example, it is possible to realize above-mentioned rearmounted take the photograph by rotating cameraAs head and front-facing camera, front-facing camera can be played when above-mentioned rotating camera is in initial statusFunction, after above-mentioned rotating camera is in, the function etc. of post-positioned pick-up head during configuration state, can be played,Above-mentioned first image and the second image is shot, it can be ensured that the first image and second by identical photographic headThe resolution of image is consistent, therefore can improve combined coefficient, it is to avoid occurring that distortion is existing in composographAs such that it is able to improve synthetic effect.
It should be noted that the embodiment of the present invention is not added with for the execution sequence of step 101 and step 102With limit, wherein, step 101 can perform prior to step 102, it is also possible to after perform in step 102.
The alternative embodiment that a kind of step 101 of offer performs prior to step 102 at this:
The described step 101 being gathered the first image by post-positioned pick-up head, specifically be may include that and is receivingAfter the shooting instruction that user triggers, open post-positioned pick-up head, and gather first by described post-positioned pick-up headImage;
The described step 102 being gathered the second image by front-facing camera, specifically be may include that and is receivingAfter user instructs for the determination of described first image, open front-facing camera, and preposition taken the photograph by describedAs head gathers the second image.
In the embodiment of the present invention, this shooting instruction can be for by the user interface of photographing programThe instruction that control triggers, it is also possible to the instruction triggered by shortcut for user, this shooting instruction can be touchedSend out the shooting flow process of the embodiment of the present invention, it will be understood that the tool that the embodiment of the present invention instructs for this shootingBody triggering mode is not any limitation as.
During performing above-mentioned alternative embodiment, after receiving the shooting instruction that user triggers, permissibleSend the similar inquiry of " first pass through post-positioned pick-up head and shoot the first image or scene image ", to useThe shooting operation needing to perform is known at family.Further, after having gathered the first image, can send every time" whether determine the first image " or the similar inquiry of " whether current first image is satisfied with ", ifUser provides the selection of affirmative, then can perform step 102, otherwise, can continue executing with step 101,Until user provides the selection of affirmative.
After user provides the selection of affirmative for the first image, can send " shoot the second image orCharacter image or facial expression image " similar inquiry so that user know need perform shooting operation.Further, after having gathered the second image, can send " whether determining the second image " or " right every timeWhether current second image is satisfied with " similar inquiry, if user provides the selection of affirmative, then can holdRow step 103, otherwise, can continue executing with step 102, until user provides the selection of affirmative.
Step 103, determine described second image composite signal relative to described first image;
Step 104, according to described composite signal, described second image is blended in described first image,To obtain composograph;
Step 105, output composograph.
In the embodiment of the present invention, described composite signal is used as the second image is blended into described firstFoundation in image.Such as, in a kind of alternative embodiment of the present invention, described composite signal specifically may be usedTo include at least one in following information: the synthesis size of described second image, described second image existSynthesising position in described first image and the synthesis brightness of described second image.
In a kind of alternative embodiment of the present invention, above-mentioned steps 104 specifically may include that according to describedSynthesising position, is blended into the second image matched with described synthesis size in described first image.ItsIn, above-mentioned building-up process specifically may include that by described first image with described synthesising position and describedThe pixel of synthesis size replaces with the pixel of the second image matched with described synthesis size, and, rightBorderline region in described first image and the second image carries out BORDER PROCESSING, to realize the first image andThe perfect linking of two images, thus the nothing realizing the first image and the second image is stitched into.Above-mentioned boundaryThe algorithm that reason is used specifically may include that coloring treatment algorithm, eliminates shadow algorithm, elimination foreign material calculationMethod, softening algorithm and seamless composition algorithm etc., the embodiment of the present invention is for BORDER PROCESSING and will be with instituteState the detailed process that synthesis the second image of matching of size is blended in described first image not limitedSystem.
It should be noted that the second image that the present invention is blended in the first image can be original second figurePicture all or part of, part therein can be that the edge to original second image is cut out obtaining,Either all or part of, the second image being blended in the first image all can comprise the face of personageInformation or head image information.
For existing auto heterodyne emperorship, owing to the length of its expansion link and arm is limited, therefore easilyCause ratio shared by personage in the photo of shooting the most excessive;And in the embodiment of the present invention, the first imageCan be scene image, the second image can be character image, then at character image relative to scene imageComposite signal when including the synthesis size of character image, shooting can be controlled by this synthesis sizeRatio shared by personage in photo, to obtain personage's optimal proportion in photo;
Further, include that character image is at scene image at character image relative to the composite signal of scene imageIn synthesising position time, the embodiment of the present invention can also by this synthesising position control shooting photo inThe position of personage, to obtain personage optimum position in photo;
It addition, when character image includes the brightness of character image relative to the composite signal of scene image,The embodiment of the present invention can also control the brightness of personage in the photo shot by this brightness, to obtain peopleThe optimal brightness of thing.
It is appreciated that those skilled in the art can use synthesize letter arbitrarily according to practical application requestBreath, will state the second image and be blended in described first image so that composograph can either be at personage and scapeThe ratio aspect of color meets user's request, can meet user's request again in terms of other effect, these itsIts effect specifically may include that character positions effect, personage's brightness effects, seamless synthetic effect etc..
In a kind of application example of the present invention, it is assumed that user is intended to shooting before the Tian'anmen Square and carrys out this tripSouvenir photo, it is desirable to this souvenir photo had both comprised the ornamental column and the rostrum of Tian An Men, had comprised again quiet happy and auspicious faceExpress one's feelings in portion, then user can be by shooting the shooting flow process of the instruction triggers present invention, and this shooting flow process is permissibleThe scene image of the ornamental column and the rostrum of Tian An Men is comprised by post-positioned pick-up head collection, and, it is also possible to pass throughFront-facing camera collection comprises the character image of quiet happy and auspicious facial expression, and should according to composite signalCharacter image is blended in this scene image, and exports the scene image after the synthesis meeting user's request.
To sum up, embodiment of the present invention foundation the second image is relative to the first image synthesis information, by the second figureAs being blended in the first image, wherein, the first image gathered by post-positioned pick-up head can be to comprise the back of the bodyThe scene image of face scenery, and can be to comprise positive character by the second image of front end camera collectionCharacter image, thus character image can be blended into scenery figure by synthesis mode by the embodiment of the present inventionIn Xiang, and, can be controlled by composite signals such as the synthesis sizes of character image in building-up processRatio shared by personage in the photo of shooting, therefore, the composograph of output can be at personage and sceneryRatio aspect meets user's request.
Embodiment two
The present embodiment is on the basis of above-described embodiment one, it is also possible to include following optional technical scheme.
Relative to embodiment one, the present embodiment mainly describes and determines that described second image is relative to described firstThe detailed process of the composite signal of image.
In actual applications, described second image phase can be automatically determined by automated manner by photographing programComposite signal for described first image, it is also possible to determined described second figure by user manuallyAs the composite signal relative to described first image, or, it is also possible to by automated manner and manual modeJointly determine described second image composite signal relative to described first image.
There is provided one jointly to determine that described second image is relative to institute by automated manner and manual mode at thisState the alternative embodiment of the composite signal of the first image, with reference to Fig. 2, it is shown that the one of the present invention determinesDescribed second image, relative to the flow chart of steps of the composite signal of described first image, specifically may include that
Step 201, show described first image and based on described second image relative to described firstThe second image that the recommendation composite signal of image is placed on described first image or synthesized;
Step 202, foundation user, for the operational order of shown second image, determine described second figureAs the composite signal relative to described first image.
In actual applications, can determine according to characteristic parameters such as the layout in kind of the first image, brightnessSecond image is relative to the recommendation composite signal of described first image, and this recommendation composite signal specifically can wrapInclude: the recommendation synthesis recommending synthesis size, described second image in described first image of the second imageAt least one in the information such as the recommendation synthesis brightness of position and described second image, the embodiment of the present inventionFor concrete recommendation composite signal and determine that mode is not any limitation as.
Assume that the original size of the first image and the second image is identical, and assume that the recommendation of the second image is closedBecoming size can be the 1/2 of original size, and, it is assumed that the center recommending synthesising position to be the first image,Then size can be positioned on the first image equal to the second image recommending synthesis size by step 201,Wherein, the center of the second image can be with recommendation synthesising position (namely center of the first image)Overlap.
Or, size can be synthesized in the first figure by step 201 equal to the second image recommending synthesis sizeOn Xiang, wherein, synthesizing a difference relative to placing can be to place and simply put by the second imagePut and be covered on the first image, and synthesize the border also having carried out between the first image and the second imageProcess, with the reasonable link of both realizations with without being stitched into.
It should be noted that second image may be located at editable window or control shown by step 201In part, so that user realizes the editor for shown second image by operations such as movement, scalings, fromAnd, can determine that described second image is relative according to user for the operational order of shown second imageComposite signal in described first image.Such as, user can come real by mobile shown second imageReferring now to the adjustment of recommendation synthesising position, and for example, user can come real by shown second image of scalingReferring now to the adjustment recommending synthesis size.
In addition, it is necessary to explanation, in step 202 foundation user every time for shown second imageOperational order, after determining described second image composite signal relative to described first image, can will be somebody's turn to doComposite signal input again shows synthetic effect based on current composite signal to step 201, so that userDetermine whether to continue to adjust composite signal according to this synthetic effect.Alternatively, if user refers to sending operationNext operation instruction is not sent in preset time, then it is believed that user determines current synthesis after orderInformation, and be no longer adjusted.
To sum up, the present embodiment provides the second image relative to the recommendation composite signal of described first image and rightIn the operation interface of this recommendation composite signal, with according to user for the operational order of shown second image,Determine described second image composite signal relative to described first image;Synthesis letter can be determined in raisingIn the case of the efficiency of breath, meet user's adjustment demand for composite signal;Further, the present embodiment existsShooting process increases the operation interface of user, it is possible to increase user for the degree of control of shooting effect, fromAnd Consumer's Experience can be improved.
It should be noted that the embodiment of the present invention is except providing the behaviour for composite signal in shooting processMake outside interface, it is also possible to the operation interface for composite signal is provided in the navigation process of composograph.Such as, user is not free when viewing and admiring sight spot adjusts composite signal, then can be at the sky after viewing and admiring endBrowse the composograph once shot between idle, and according to demand according to aforesaid operations interface to composite signalBe adjusted, then the embodiment of the present invention can also be according to the composite diagram of the composite signal output correspondence after adjustingPicture.
The browsing method flow process of a kind of composograph of the present invention is provided at this, wherein, is receiving user coupleAfter the browsing instructions of composograph, this composograph can be shown, and in this composograph correspondence secondThe operation interface of image, so that user realizes the adjustment for composite signal according to this operation interface.
Example
With reference to Fig. 3, it is shown that the flow chart of steps of a kind of image pickup method example of the present invention, this example relates toAnd user is intended to shooting before the Tian'anmen Square and carrys out the souvenir photo of this trip, it is desirable to this souvenir photo had both comprised ChinaTable and the rostrum of Tian An Men, comprise again quiet happy and auspicious facial expression, specifically may include that
Step 301, receive user trigger shooting instruction after, open post-positioned pick-up head, and send batTake the photograph the prompting of scene image;
Step 302, receive user trigger first shooting instruction after, gather scape by post-positioned pick-up headColor image;
Step 303, send the first inquiry whether determining current scene image;
Step 304, receiving user for when ignoring instruction of the first inquiry, return and perform step 302;
Wherein, user, in the case of choosing place and angle and after shooting a scene image, shoots journeySequence sends above-mentioned first inquiry, if user is unsatisfied with, can select to delete current scene image, insteadAfter multiple shooting and inquiry, user may determine that a scene image being filled meaning.
Step 305, receive user for the first inquiry affirmative instruct time, open front-facing camera,And send the prompting of shooting character image;
Step 306, receive user trigger second shooting instruction after, gather people by front-facing cameraObject image;
Step 307, send the second inquiry whether determining current people's image;
Step 308, receiving user for when ignoring instruction of the second inquiry, return and perform step 306;
Owing to the execution process of step 306-step 308 and the execution process of step 302-step 304 are similar,And therefore not to repeat here, cross-referenced.
Step 309, when receiving user's affirmative for the second inquiry and instructing, according to the reality of scene imageThe characteristic parameters such as thing layout, brightness, determine the character image recommendation composite signal relative to scene image;
Step 310, display scene image and based on described recommendation composite signal at described scene imageUpper placement or the character image of synthesis;
Step 311, foundation user, for the operational order of shown character image, determine described figure mapAs the composite signal relative to described scene image;
In a kind of application example of the present invention, if user is less satisfied with the recommendation conjunction that photographing program providesOne-tenth information, then can manually scale the synthesis size of character image, after determining synthesis size, it is also possible toThe synthesising position of mobile task image.
Step 312, according to described composite signal, character image is blended in scene image;
Scene image after step 313, output synthesis.
Device embodiment
With reference to Fig. 4, it is shown that the structured flowchart of a kind of filming apparatus embodiment of the present invention, the most permissibleIncluding:
First acquisition module 401, for gathering the first image by post-positioned pick-up head;
Second acquisition module 402, for gathering the second image by front-facing camera;
Determine module 403, for determining described second image composite signal relative to described first image;
Synthesis module 404, for according to described composite signal, is blended into described the by described second imageIn one image, to obtain composograph;And
Output module 405, is used for exporting described composograph.
In a kind of alternative embodiment of the present invention, described composite signal specifically can include in following informationAt least one: the synthesis size of described second image, described second image are in described first imageSynthesising position and the synthesis brightness of described second image.
In the another kind of alternative embodiment of the present invention, described composite signal specifically may include that describedThe synthesis size of two images and described second image synthesising position in described first image, the most described conjunctionBecome module 404, specifically may include that
Synthon module, for according to described synthesising position, by with described synthesis size match secondImage is blended in described first image.
In another alternative embodiment of the present invention, described determine module 403, specifically may include that
Recommend submodule, be used for showing described first image and based on described second image relative to instituteState second image recommending composite signal to place on described first image or synthesize of the first image;
Determine submodule, for foundation user for the operational order of shown second image, determine describedSecond image is relative to the composite signal of described first image.
In another alternative embodiment of the present invention, described first acquisition module 401, specifically can wrapInclude:
First gathers submodule, for, after receiving the shooting instruction that user triggers, opening post-positioned pick-up head,And gather the first image by described post-positioned pick-up head.
In a kind of alternative embodiment of the present invention, described second acquisition module 402, specifically may include that
Second gathers submodule, after reception user for the determination instruction of described first image, beatsOpen front-facing camera, and gather the second image by described front-facing camera.
In the another kind of alternative embodiment of the present invention, described device can also include:
Display module, after reception user for the browsing instructions of composograph, shows described synthesisImage, and showing the operation interface of corresponding second image of described composograph, so that user is according to describedOperation interface realizes the adjustment for corresponding composite signal.
For device embodiment, due to itself and embodiment of the method basic simlarity, so the comparison describedSimply, relevant part sees the part of embodiment of the method and illustrates.
Device embodiment described above is only schematically, wherein said illustrates as separating componentUnit can be or may not be physically separate, the parts shown as unit can be orPerson may not be physical location, i.e. may be located at a place, or can also be distributed to multiple networkOn unit.Some or all of module therein can be selected according to the actual needs to realize the present embodimentThe purpose of scheme.Those of ordinary skill in the art are not in the case of paying performing creative labour, the most permissibleUnderstand and implement.
Through the above description of the embodiments, those skilled in the art is it can be understood that arrive each realityThe mode of executing can add the mode of required general hardware platform by software and realize, naturally it is also possible to by firmlyPart.Based on such understanding, the portion that prior art is contributed by technique scheme the most in other wordsDividing and can embody with the form of software product, this computer software product can be stored in computer canRead in storage medium, such as ROM/RAM, magnetic disc, CD etc., including some instructions with so that oneComputer equipment (can be personal computer, server, or the network equipment etc.) performs each to be implementedThe method described in some part of example or embodiment.
Last it is noted that above example is only in order to illustrate technical scheme, rather than to itLimit;Although the present invention being described in detail with reference to previous embodiment, the ordinary skill of this areaPersonnel it is understood that the technical scheme described in foregoing embodiments still can be modified by it, orPerson carries out equivalent to wherein portion of techniques feature;And these amendments or replacement, do not make corresponding skillThe essence of art scheme departs from the spirit and scope of various embodiments of the present invention technical scheme.