CN105578028A - Photographing method and terminal - Google Patents

Photographing method and terminal Download PDF

Info

Publication number
CN105578028A
CN105578028A CN201510452529.1A CN201510452529A CN105578028A CN 105578028 A CN105578028 A CN 105578028A CN 201510452529 A CN201510452529 A CN 201510452529A CN 105578028 A CN105578028 A CN 105578028A
Authority
CN
China
Prior art keywords
image region
picture frame
region
parameter
character image
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.)
Pending
Application number
CN201510452529.1A
Other languages
Chinese (zh)
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.)
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen 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 Yulong Computer Telecommunication Scientific Shenzhen Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority to CN201510452529.1A priority Critical patent/CN105578028A/en
Priority to PCT/CN2015/091344 priority patent/WO2017016069A1/en
Publication of CN105578028A publication Critical patent/CN105578028A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/61Control of cameras or camera modules based on recognised objects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof

Abstract

The embodiment of the invention discloses a photographing method and terminal. The method comprises the steps that a photographing instruction is received, and a first image frame and a second image frame are acquired through a front camera and a rear camera; figure image areas in the first image frame and the second image frame are acquired to act as a first figure image area and a second figure image area respectively; the first figure image area is adjusted according to the length parameters and the width parameters of the second figure image area so that the first figure image area is enabled to be matched with the second figure image area; and the adjusted first figure image area is synthesized into the second image frame so as to generate a synthesized photographing image. With application of the photographing method and terminal, the synthesized image including a photographer can be quickly obtained in photographing through an image synthesis technology so that user time can be saved, the figure image proportion in the image can also be adjusted and thus the figure images in the synthesized image are enabled to be more coordinated and beautiful.

Description

A kind of photographic method and terminal
Technical field
The present invention relates to image processing field, particularly relate to a kind of photographic method and terminal.
Background technology
Along with the development of the communication technology, the photographing device of the upper installation of various communication terminal is more and more advanced, develops into dual camera by original single camera.The front and back dual camera pattern of a camera is especially respectively installed at the front and back of communication terminal, user can be made whenever and wherever possible to carry out autodyning or photographed, record and share the animation of oneself and beautiful things at one's side, dark liking by users.
Current communication terminal can be supplied to the pattern that before and after user, dual camera is taken pictures simultaneously, is supplied to the photo that user has picture-in-picture effect, but does not further synthesize process to the photo that front camera and rear camera collects; And take pictures in process actual, user often meets with such situation: under a certain special screne, need to take opening and closing with companion shine, but now there is no other people can help and take pictures, therefore user needs first to companion's shooting photo, again to oneself shooting photo, and then the character image of oneself being synthesized to in the photo of companion's shooting with image processing software, this process poor real and complex steps, lose time.
Summary of the invention
Embodiments provide a kind of photographic method and terminal, can be obtained fast by image composing technique when taking pictures and comprise photographer and to take a group photo photo, save user time, the character image ratio also in adjustable photo, the character image in taking a group photo coordinated more, attractive in appearance.
Embodiments provide a kind of photographic method, described method comprises:
Receive photographing instruction, gather the first picture frame and the second picture frame by front-facing camera and post-positioned pick-up head;
Obtain the character image region in described first picture frame and described second picture frame, respectively as the first object image region and the second character image region;
According to long parameter and the wide parameter in described second character image region, adjust described the first object image region, to make described the first object image region and the second character image Region Matching;
Described the first object image region synthesis after adjustment is generated in described second picture frame group photo image.
Accordingly, embodiments provide a kind of terminal, described terminal comprises:
Image frame acquisitions unit, for receiving photographing instruction, gathers the first picture frame and the second picture frame by front-facing camera and post-positioned pick-up head;
Character image acquiring unit, for obtaining the character image region in described first picture frame and described second picture frame, respectively as the first object image region and the second character image region;
Image parameter adjustment unit, for according to the long parameter in described second character image region and wide parameter, adjusts described the first object image region, to make described the first object image region and the second character image Region Matching;
Group photo image composing unit, for generating group photo image by the described the first object image region synthesis after adjustment in described second picture frame.
The embodiment of the present invention, when receiving photographing instruction, can gather the first picture frame and the second picture frame by front-facing camera and post-positioned pick-up head; Also can obtain the character image region in described first picture frame and described second picture frame, respectively as the first object image region and the second character image region; And then according to the long parameter in described second character image region and wide parameter, adjust described the first object image region, to make described the first object image region and the second character image Region Matching; Finally the described the first object image region synthesis after adjustment is generated group photo image in described second picture frame, can obtain by image composing technique the group photo photo comprising photographer fast when taking pictures, save user time, and the character image ratio in adjustable photo, make take a group photo in character image more coordinate, attractive in appearance.
Accompanying drawing explanation
In order to be illustrated more clearly in embodiment of the present invention technical scheme, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of photographic method schematic flow sheet that the embodiment of the present invention provides;
Fig. 2 is the another kind of photographic method schematic flow sheet that the embodiment of the present invention provides;
Fig. 3 is a kind of terminal structure schematic diagram that the embodiment of the present invention provides;
Fig. 4 is the structural representation of the image parameter adjustment unit that the embodiment of the present invention provides;
Fig. 5 is the structural representation of the group photo image composing unit that the embodiment of the present invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
In specific implementation, terminal mentioned in the embodiment of the present invention includes but not limited to: the electronic equipment such as smart mobile phone (as Android phone, IOS mobile phone), panel computer, notebook computer, palmtop PC, wearable intelligent equipment.Method described in the invention is performed by the one group of code stored in memory, and this code is executed in the computer system based on von Neumann system.
A kind of photographic method provided the embodiment of the present invention below in conjunction with Fig. 1 to Fig. 5 and terminal are specifically described.
See Fig. 1, be a kind of photographic method schematic flow sheet that the embodiment of the present invention provides, photographic method as shown in the figure can comprise the following steps:
S101, receives photographing instruction, gathers the first picture frame and the second picture frame by front-facing camera and post-positioned pick-up head.
In specific implementation, after the application start camera function of taking pictures in opening a terminal, press shutter key and be then considered as user and input photographing instruction, this photographing instruction is generally that user inputted by the input unit (physical keyboard or touch-screen) of terminal.
Camera mentioned by the present embodiment can be the camera of terminal built-in, as carried the mobile phone of front-facing camera and post-positioned pick-up head; This step, when terminal receives photographing instruction, starts the first picture frame and the second picture frame that front-facing camera and post-positioned pick-up head gather simultaneously.If terminal does not comprise built-in camera, but be connected with outside camera, if terminal is PC (PersonalComputer, personal computer), in PC, camera is not set, but PC is connected with outside two cameras (one is front-facing camera, and another is post-positioned pick-up head); This step, when receiving photographing instruction, starts the camera be connected with PC, and obtains the first picture frame and second picture frame of camera collection simultaneously.
It should be noted that, implementing the second picture frame in the embodiment of the present invention in reality is background image frame, and the first picture frame is for scratching figure picture frame, therefore the character image region in acquisition first picture frame is needed, and the character image region adjusted according to the character image region in the second picture frame in the first picture frame, then by adjustment after the first picture frame in character image region synthesis in the second picture frame.Therefore the background of the last group photo image generated is the background in the second picture frame, and personage comprises the personage photographed in the first picture frame and the second picture frame.
Optionally, described step S101 specifically can comprise: receive photographing instruction, take the photograph before being gathered respectively by front-facing camera and post-positioned pick-up head picture frame and after take the photograph picture frame; Be set to the first picture frame by taking the photograph picture frame before described, and be set to the second picture frame by taking the photograph picture frame after described.
In specific implementation, the landscape area of usual post-positioned pick-up head shooting is more, and can regulate arbitrarily the distance with the person of being taken, and therefore can photograph whole body or more than half body of the person of being taken; And front-facing camera is due to usual distance photographer close together, the parts such as the head of photographer and shoulder can only be photographed and occupy image-region more in picture frame, making the landscape area taken less.Therefore, the picture frame collected by post-positioned pick-up head is set to the second picture frame, more background positions can be provided to the character image region in the first picture frame, serious overlap is intersected to avoid the character image region when Images uniting in two picture frames to occur, and more landscape region can be retained, make the final group photo image generated more attractive in appearance.
Optionally, step S101 specifically can comprise: receive photographing instruction, take the photograph before being gathered respectively by front-facing camera and post-positioned pick-up head picture frame and after take the photograph picture frame; Receive for take the photograph picture frame before described and described after the first picture frame of target image frame input of taking the photograph in picture frame confirm instruction, described target image frame is set to the first picture frame, another picture frame is set to the second picture frame.
In specific implementation, terminal can be supplied to user and choose at random the picture frame that needs to retain background as the function of the second picture frame.User can according to the prompting of terminal take the photograph before front-facing camera and post-positioned pick-up head gather respectively picture frame and after take the photograph in picture frame, select a picture frame as the second picture frame according to the wish of oneself, then another picture frame is the first picture frame.
S102, obtains the character image region in described first picture frame and described second picture frame, respectively as the first object image region and the second character image region.
In specific implementation, by image recognition technology, obtain the character image region in described first picture frame and described second picture frame, the head portrait region that this character image region comprises personage and the body region photographed.In order to obtain character image region (only comprising personage's part) comparatively accurately, further combined with the profile of edge detecting technology determination character image, the image-region within profile can be set to character image region.
S103, according to long parameter and the wide parameter in described second character image region, adjusts described the first object image region, to make described the first object image region and the second character image Region Matching.
In specific implementation, first can obtain the long parameter in the first object image region and the second character image region and wide parameter, wherein long parameter refers to the maximum length in height direction in character image region, and wide parameter refers to the maximum length in shoulder breadth direction, character image region.
When actual photographed, because front-facing camera distance photographer closely makes character image region in the picture frame gathered can only photograph head and shoulder segments, and occupy the most of region (wide parameter is larger) in picture frame; And post-positioned pick-up head far can photograph the person's of being taken half body or whole body due to the distance person of being taken, and character image region occupies the comparatively zonule (long parameter is larger) in picture frame.If the character image region synthesis directly obtained wherein in the first picture frame is in the second picture frame, each personage in the character image region in the group photo image finally synthesized can seem inharmonious especially.Therefore can regulate long parameter and the money parameter of the first image-region according to the long parameter in the second character image region and wide parameter, make the first object image region and the second character image region seem more to coordinate, attractive in appearance.Such as, can be identical with wide parameter with the long parameter in the first object image region respectively by the long parameter in the first object image region and wide parameter adjustment, also by the Aspect Ratio value in the first object image region (ratio value of long parameter and wide parameter), can be adjusted to identical with the Aspect Ratio value in the second character image region.
S104, generates group photo image in described second picture frame by the described the first object image region synthesis after adjustment.
In specific implementation, when carrying out Images uniting, first can determine the synthesising position region of the first object image region in the second picture frame (this synthesising position region is the region identical with size with the first object image region contour), by this synthesising position region pigment lightening then by adjustment after the first object image region synthesis to this position; Or, can directly by the first object image region overlay to this position.
Optionally, step S104 can specifically comprise: determine the synthesising position region of described the first object image region in described second picture frame; By described the first object image region and be synthesized to described synthesising position Area generation group photo image.
In specific implementation, and disjoint position adjacent with the second left and right, character image region can be selected in the second picture frame to obtain with the region of the first object image region formed objects and profile as synthesising position region.Or the function choosing at random synthesising position region is provided to user, user can choose at random a certain region as synthesising position region in the second picture frame, such as, user inputs closed sliding trace by the touch-screen of terminal in the second picture frame, centered by the image-region that this closed sliding trace comprises, obtaining with the region of the first object image region formed objects and profile is synthesising position region.
The embodiment of the present invention, when receiving photographing instruction, can gather the first picture frame and the second picture frame by front-facing camera and post-positioned pick-up head; Also can obtain the character image region in described first picture frame and described second picture frame, respectively as the first object image region and the second character image region; And then according to the long parameter in described second character image region and wide parameter, adjust described the first object image region, to make described the first object image region and the second character image Region Matching; Finally the described the first object image region synthesis after adjustment is generated group photo image in described second picture frame, the group photo photo comprising photographer can be obtained fast taking pictures by image composing technique, save user time, and the character image ratio in adjustable photo, make take a group photo in character image more coordinate, attractive in appearance.
See Fig. 2, be that another kind that the embodiment of the present invention provides is taken pictures method schematic flow sheet, photographic method as shown in the figure can comprise the following steps:
S201, receives photographing instruction, gathers the first picture frame and the second picture frame by front-facing camera and post-positioned pick-up head.
In specific implementation, after the application start camera function of taking pictures in opening a terminal, press shutter key and be then considered as user and input photographing instruction, this photographing instruction is generally that user inputted by the input unit (physical keyboard or touch-screen) of terminal.When receiving this photographing instruction, terminal starts front-facing camera simultaneously and post-positioned pick-up head gathers the first picture frame and the second picture frame.
S202, obtains the character image region in described first picture frame and described second picture frame, respectively as the first object image region and the second character image region.
In specific implementation, by image recognition technology, obtain the character image region in described first picture frame and described second picture frame, the head portrait region that this character image region comprises personage and the body region photographed.In order to obtain character image region (only comprising personage's part) comparatively accurately, further combined with the profile of edge detecting technology determination character image, the image-region within profile can be set to character image region.
S203, obtains the long parameter in described the first object image region and described second character image region and wide parameter.
In specific implementation, long parameter refers to the maximum length in height direction in character image region, and wide parameter refers to the maximum length in shoulder breadth direction, character image region.
S204, judge whether the Aspect Ratio value in described the first object image region is greater than or equal to the Aspect Ratio value in described second character image region, described Aspect Ratio value is the value of long parameter than wide parameter.
In specific implementation, Aspect Ratio value refers to the ratio value of long parameter and wide parameter, when the Aspect Ratio value in character image region is larger, the length length that is comparatively large or shoulder breadth direction in personage's height direction that representative figure's image-region photographs is less, and whole personage is thinner from image effect; And when the Aspect Ratio value in character image region is less, the length in personage's height direction that representative figure's image-region photographs length that is less or shoulder breadth direction is comparatively large, whole personage is more fat from image effect.
Therefore, the Aspect Ratio value being greater than or equal to the second character image region when the Aspect Ratio value in the first object image region illustrates that the personage in the first object image region shows thin than the personage in the second character image region on the whole.Perform step S205, keep the wide parameter constant in the first object image region, adjust the long parameter in the first object image region, make the Aspect Ratio value in the first object image region and the second character image region equal.Now, the personage in the first object image region and the second character image region looks fat or thin that degree will compare on the whole and has coordinated.
When the Aspect Ratio value in the first object image region is less than the Aspect Ratio value in the second character image region, illustrate that the personage in the first object image region is more fat than the personage in the second character image region on the whole, step S206 can be performed to step S208, go to adjust the first object image region.
S205, if so, adjusts the long parameter in described the first object image region, makes the Aspect Ratio value in described the first object image region and described second character image region equal.
S206, if not, obtains the personage's head portrait region in described the first object image region and described second character image region, respectively as the first head portrait region and the second head portrait region.
S207, is adjusted to identical with wide parameter with the long parameter in described second head portrait region respectively by the long parameter in described first head portrait region and wide parameter.
S208, obtains the body region in described second character image region, replaces described the first object image region after being combined by the body region of described first head portrait region in described second character image region after adjustment.
In specific implementation, when in step S204, judged result is no, illustrate that the personage in the first object image region is more fat than the personage in the second character image region on the whole, and the length in the height direction now probably photographed in the first image-region itself is less, namely may only photograph head and shoulder by the first image-region, and more than half body or whole body are probably clapped in the second character image region.Now the first object image region is directly synthesized in the second picture frame, the first object image region and the second character image region can be made very inharmonious, and may can cover the second character image region completely in the first object image region.
Therefore, the personage's head portrait region in the first object image region and described second character image region is obtained by step S206, respectively as the first head portrait region and the second head portrait region, and obtain the long parameter in the first head portrait region and the second head portrait region and wide parameter.Then by step S207, the long parameter in the first head portrait region and wide parameter are adjusted to identical with wide parameter with the long parameter in the second head portrait region respectively, the first head portrait region and the second head portrait region are looked the same size.And then by step S208 by the body region in the second character image region and adjustment after the first head portrait region to combining, and the first object image got before replacing it, make that the first object image region is identical with the character image body region in the second character image region and head portrait is different, seem coordination more attractive in appearance, and there is certain interest.
S209, generates group photo image in described second picture frame by the described the first object image region synthesis after adjustment.
In specific implementation, when carrying out Images uniting, first can determine the synthesising position region of the first object image region in the second picture frame (this synthesising position region is the region identical with size with the first object image region contour), by this synthesising position region pigment lightening then by adjustment after the first object image region synthesis to this position; Or, can directly by the first object image region overlay to this position.
The embodiment of the present invention, when receiving photographing instruction, can gather the first picture frame and the second picture frame by front-facing camera and post-positioned pick-up head, then adjusting the Aspect Ratio value in the first object image region according to the Aspect Ratio value in the second character image region.And compress the first object image region when the personage in the first object image region is taller and thinner than the personage in the second character image region, make the personage in the first object image region become fat, be then synthesized in the second picture frame and generate group photo image, when the personage in the first object image region more fat than the personage in the second character image region wide time, personage now in very possible the first object image region has only photographed personage's fraction above the waist, therefore the first head portrait region in the first object image region and the body region in the second character image region is obtained, and be synthesized in the second picture frame after this first head portrait region body region in the second character image region is combined and generate image of taking a group photo, the group photo photo comprising photographer can be obtained fast taking pictures by image composing technique, save user time, and the character image ratio in adjustable photo, character image in taking a group photo is coordinated more, attractive in appearance.
See Fig. 3, a kind of terminal structure schematic diagram that the embodiment of the present invention provides, terminal at least can comprise as shown in the figure: image frame acquisitions unit 301, character image acquiring unit 302, image parameter adjustment unit 303 and group photo image composing unit 304.
Image frame acquisitions unit 301, for receiving photographing instruction, gathers the first picture frame and the second picture frame by front-facing camera and post-positioned pick-up head.
Camera mentioned by the present embodiment can be the camera of terminal built-in, as carried the mobile phone of front-facing camera and post-positioned pick-up head; This step, when image frame acquisitions unit 301 receives photographing instruction, starts the first picture frame and the second picture frame that front-facing camera and post-positioned pick-up head gather simultaneously.If terminal does not comprise built-in camera, but be connected with outside camera, if terminal is PC (PersonalComputer, personal computer), in PC, camera is not set, but PC is connected with outside two cameras (one is front-facing camera, and another is post-positioned pick-up head); This step, when receiving photographing instruction, starts the camera be connected with PC, and obtains the first picture frame and second picture frame of camera collection simultaneously.
It should be noted that, implementing the second picture frame in the embodiment of the present invention in reality is background image frame, and the first picture frame is for scratching figure picture frame, therefore the character image region in acquisition first picture frame is needed, and the character image region adjusted according to the character image region in the second picture frame in the first picture frame, then by adjustment after the first picture frame in character image region synthesis in the second picture frame.Therefore the background of the last group photo image generated is the background in the second picture frame, and personage comprises the personage photographed in the first picture frame and the second picture frame.
Further, the image frame acquisitions unit 301 in the present embodiment can be specifically for: receive photographing instruction, take the photograph before being gathered respectively by front-facing camera and post-positioned pick-up head picture frame and after take the photograph picture frame; Be set to the first picture frame by taking the photograph picture frame before described, and be set to the second picture frame by taking the photograph picture frame after described.
In specific implementation, the landscape area of usual post-positioned pick-up head shooting is more, and can regulate arbitrarily the distance with the person of being taken, and therefore can photograph whole body or more than half body of the person of being taken; And front-facing camera is due to usual distance photographer close together, the parts such as the head of photographer and shoulder can only be photographed and occupy image-region more in picture frame, making the landscape area taken less.Therefore, the picture frame collected by post-positioned pick-up head is set to the second picture frame, more background positions can be provided to the character image region in the first picture frame, serious overlap is intersected to avoid the character image region when Images uniting in two picture frames to occur, and more landscape region can be retained, make the final group photo image generated more attractive in appearance.
Further, the image frame acquisitions unit 301 in the present embodiment can be specifically for: receive photographing instruction, take the photograph before being gathered respectively by front-facing camera and post-positioned pick-up head picture frame and after take the photograph picture frame; Receive for take the photograph picture frame before described and described after the first picture frame of target image frame input of taking the photograph in picture frame confirm instruction, described target image frame is set to the first picture frame, another picture frame is set to the second picture frame.
In specific implementation, terminal can be supplied to user and choose at random the picture frame that needs to retain background as the function of the second picture frame.User can according to the prompting of terminal take the photograph before front-facing camera and post-positioned pick-up head gather respectively picture frame and after take the photograph in picture frame, select a picture frame as the second picture frame according to the wish of oneself, then another picture frame is the first picture frame.
Character image acquiring unit 302, for obtaining the character image region in described first picture frame and described second picture frame, respectively as the first object image region and the second character image region.
In specific implementation, character image acquiring unit 302, by image recognition technology, obtains the character image region in described first picture frame and described second picture frame, the head portrait region that this character image region comprises personage and the body region photographed.In order to obtain character image region (only comprising personage's part) comparatively accurately, further combined with the profile of edge detecting technology determination character image, the image-region within profile can be set to character image region.
Image parameter adjustment unit 303, for according to the long parameter in described second character image region and wide parameter, adjusts described the first object image region, to make described the first object image region and the second character image Region Matching.
In specific implementation, first can obtain the long parameter in the first object image region and the second character image region and wide parameter, wherein long parameter refers to the maximum length in height direction in character image region, and wide parameter refers to the maximum length in shoulder breadth direction, character image region.
When actual photographed, because front-facing camera distance photographer closely makes character image region in the picture frame gathered can only photograph head and shoulder segments, and occupy the most of region (wide parameter is larger) in picture frame; And post-positioned pick-up head far can photograph the person's of being taken half body or whole body due to the distance person of being taken, and character image region occupies the comparatively zonule (long parameter is larger) in picture frame.If the character image region synthesis directly obtained wherein in the first picture frame is in the second picture frame, each personage in the character image region in the group photo image finally synthesized can seem inharmonious especially.Therefore image parameter adjustment unit 303 can regulate long parameter and the money parameter of the first image-region according to the long parameter in the second character image region and wide parameter, makes the first object image region and the second character image region seem more to coordinate, attractive in appearance.Such as, can be identical with wide parameter with the long parameter in the first object image region respectively by the long parameter in the first object image region and wide parameter adjustment, also by the Aspect Ratio value in the first object image region (ratio value of long parameter and wide parameter), can be adjusted to identical with the Aspect Ratio value in the second character image region.
Further, see Fig. 4, the structural representation of the image parameter adjustment unit that the embodiment of the present invention provides, the parameter adjustment unit 303 in the present embodiment as shown in the figure can comprise: parameter acquiring subelement 3301, parameter judgment sub-unit 3302 and parameter adjustment subelement 3303.
Parameter acquiring subelement 3301, for obtaining the long parameter in described the first object image region and described second character image region and wide parameter;
Parameter judgment sub-unit 3302, for judging whether the Aspect Ratio value in described the first object image region is greater than or equal to the Aspect Ratio value in described second character image region, described Aspect Ratio value is the value of long parameter than wide parameter;
Parameter adjustment subelement 3303, during for the judged result of described parameter judgment sub-unit for being, adjusting the long parameter in described the first object image region, making the Aspect Ratio value in described the first object image region and described second character image region equal.
In specific implementation, Aspect Ratio value refers to the ratio value of long parameter and wide parameter, when the Aspect Ratio value in character image region is larger, the length length that is comparatively large or shoulder breadth direction in personage's height direction that representative figure's image-region photographs is less, and whole personage is thinner from image effect; And when the Aspect Ratio value in character image region is less, the length in personage's height direction that representative figure's image-region photographs length that is less or shoulder breadth direction is comparatively large, whole personage is more fat from image effect.
Therefore, when the judged result of parameter judgment sub-unit 3302 is for being: the Aspect Ratio value in the first object image region is greater than or equal to the Aspect Ratio value in the second character image region, illustrate that the personage in the first object image region shows thin than the personage in the second character image region on the whole.Parameter adjustment subelement 3303 keeps the wide parameter constant in the first object image region, adjusts the long parameter in the first object image region, makes the Aspect Ratio value in the first object image region and the second character image region equal.Now, the personage in the first object image region and the second character image region looks fat or thin that degree will compare on the whole and has coordinated.
Group photo image composing unit 304, for generating group photo image by the described the first object image region synthesis after adjustment in described second picture frame.
In specific implementation, when carrying out Images uniting, group photo image composing unit 304 first can determine the synthesising position region of the first object image region in the second picture frame (this synthesising position is the region identical with size with the first object image region contour), by this synthesising position region pigment lightening then by adjustment after the first object image region synthesis to this position; Or, can directly by the first object image region overlay to this position.
Further, see Fig. 5, the structural representation of the group photo image composing unit that the embodiment of the present invention provides, the group photo image composing unit 304 in the present embodiment as shown in the figure can comprise: subelement 3401 and group photo synthon unit 3402 are determined in position.
Subelement 3401 is determined in position, for determining the synthesising position region of described the first object image region in described second picture frame;
Group photo synthon unit 3402, for by described the first object image region be synthesized to described synthesising position Area generation group photo image.
In specific implementation, position determines that subelement 3401 can select and disjoint position adjacent with the second left and right, character image region to obtain with the region of the first object image region formed objects and profile as synthesising position region in the second picture frame.Or the function choosing at random synthesising position region is provided to user, user can choose at random a certain region as synthesising position region in the second picture frame, such as, user inputs closed sliding trace by the touch-screen of terminal in the second picture frame, position determines that centered by the image-region that subelement 3401 comprises by this closed sliding trace, obtaining with the region of the first object image region formed objects and profile is synthesising position region.
Optionally, described character image acquiring unit 302, when being also no for the judged result of described parameter judgment sub-unit, obtain the personage's head portrait region in described the first object image region and described second character image region, respectively as the first head portrait region and the second head portrait region;
Described image parameter adjustment unit 303, also for the long parameter in described first head portrait region and wide parameter are adjusted to identical with wide parameter with the long parameter in described second head portrait region respectively;
Described character image acquiring unit 302, also for obtaining the body region in described second character image region;
Accordingly, described terminal also comprises:
Character image processing unit 305, replaces described the first object image region after being combined by the body region of described first head portrait region in described second character image region after adjustment.
In specific implementation, when the judged result of the parameter judgment sub-unit 3302 in image parameter adjustment unit 303 is no, illustrate that the personage in the first object image region is more fat than the personage in the second character image region on the whole, and the length in the height direction now probably photographed in the first image-region itself is less, namely head and shoulder may be only photographed and more than half body or whole body have probably been clapped in the second character image region by the first image-region.Now the first object image region is directly synthesized in the second picture frame, the first object image region and the second character image region can be made very inharmonious, and may can cover the second character image region completely in the first object image region.
Therefore, the personage's head portrait region in the first object image region and described second character image region is obtained by character image acquiring unit 302, respectively as the first head portrait region and the second head portrait region, and obtain the long parameter in the first head portrait region and the second head portrait region and wide parameter.Then by image parameter adjustment unit 303, the long parameter in the first head portrait region and wide parameter are adjusted to identical with wide parameter with the long parameter in the second head portrait region respectively, the first head portrait region and the second head portrait region are looked the same size.And then by character image processing unit 305 by the body region in the second character image region and adjustment after the first head portrait region to combining, and the first object image got before replacing it, make that the first object image region is identical with the character image body region in the second character image region and head portrait is different, seem coordination more attractive in appearance, and there is certain interest.
The embodiment of the present invention, when image frame acquisitions unit 301 receives photographing instruction, can gather the first picture frame and the second picture frame by front-facing camera and post-positioned pick-up head; Also obtain the character image region in described first picture frame and described second picture frame by character image acquiring unit 302, respectively as the first object image region and the second character image region; And then by image parameter adjustment unit 303 according to the long parameter in described second character image region and wide parameter, adjust described the first object image region, to make described the first object image region and the second character image Region Matching; Finally by group photo image composing unit 304, the described the first object image region synthesis after adjustment is generated group photo image in described second picture frame.Can obtain by image composing technique the group photo photo comprising photographer fast taking pictures, save user time, and the character image ratio in adjustable photo, the character image in taking a group photo is coordinated more, attractive in appearance.
For each embodiment of the method aforesaid, in order to simple description, therefore it is all expressed as a series of combination of actions, but those skilled in the art should know, the application is not by the restriction of described sequence of movement, because according to the application, certain some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in specification all belongs to preferred embodiment, and involved action and unit might not be that the application is necessary.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-OnlyMemory, ROM) or random access memory (RandomAccessMemory is called for short RAM) etc.
Above a kind of photographic method disclosed in the embodiment of the present invention and terminal are described in detail, above disclosedly be only present pre-ferred embodiments, certainly the interest field of the present invention can not be limited with this, therefore according to the equivalent variations that the claims in the present invention are done, the scope that the present invention is contained still is belonged to.

Claims (10)

1. a photographic method, is characterized in that, comprising:
Receive photographing instruction, gather the first picture frame and the second picture frame by front-facing camera and post-positioned pick-up head;
Obtain the character image region in described first picture frame and described second picture frame, respectively as the first object image region and the second character image region;
According to long parameter and the wide parameter in described second character image region, adjust described the first object image region, to make described the first object image region and the second character image Region Matching;
Described the first object image region synthesis after adjustment is generated in described second picture frame group photo image.
2. method according to claim 1, is characterized in that, the described long parameter according to described second character image region and wide parameter, adjusts described the first object image region and comprises:
Obtain the long parameter in described the first object image region and described second character image region and wide parameter;
Judge whether the Aspect Ratio value in described the first object image region is greater than or equal to the Aspect Ratio value in described second character image region, described Aspect Ratio value is the value of long parameter than wide parameter;
If so, adjust the long parameter in described the first object image region, make the Aspect Ratio value in described the first object image region and described second character image region equal.
3. method according to claim 2, is characterized in that, if the Aspect Ratio value in described the first object image region is less than the Aspect Ratio value in described second character image region, described method also comprises:
Obtain the personage's head portrait region in described the first object image region and described second character image region, respectively as the first head portrait region and the second head portrait region;
The long parameter in described first head portrait region and wide parameter are adjusted to identical with wide parameter with the long parameter in described second head portrait region respectively;
Obtain the body region in described second character image region, after being combined by the body region of described first head portrait region in described second character image region after adjustment, replace described the first object image region.
4. method according to claim 1, is characterized in that, the described group photo image that generated in described second picture frame by described the first object image region synthesis after adjustment comprises:
Determine the synthesising position region of described the first object image region in described second picture frame;
By described the first object image region and be synthesized to described synthesising position Area generation group photo image.
5. method according to claim 1, is characterized in that, described reception photographing instruction, gathers the first picture frame and the second picture frame comprises by front-facing camera and post-positioned pick-up head:
Receive photographing instruction, take the photograph before being gathered respectively by front-facing camera and post-positioned pick-up head picture frame and after take the photograph picture frame;
Be set to the first picture frame by taking the photograph picture frame before described, and be set to the second picture frame by taking the photograph picture frame after described; Or
Receive for take the photograph picture frame before described and described after the first picture frame of target image frame input of taking the photograph in picture frame confirm instruction, described target image frame is set to the first picture frame, another picture frame is set to the second picture frame.
6. a terminal, is characterized in that, comprising:
Image frame acquisitions unit, for receiving photographing instruction, gathers the first picture frame and the second picture frame by front-facing camera and post-positioned pick-up head;
Character image acquiring unit, for obtaining the character image region in described first picture frame and described second picture frame, respectively as the first object image region and the second character image region;
Image parameter adjustment unit, for according to the long parameter in described second character image region and wide parameter, adjusts described the first object image region, to make described the first object image region and the second character image Region Matching;
Group photo image composing unit, for generating group photo image by the described the first object image region synthesis after adjustment in described second picture frame.
7. terminal according to claim 6, is characterized in that, described image parameter adjustment unit comprises:
Parameter acquiring subelement, for obtaining the long parameter in described the first object image region and described second character image region and wide parameter;
Parameter judgment sub-unit, for judging whether the Aspect Ratio value in described the first object image region is greater than or equal to the Aspect Ratio value in described second character image region, described Aspect Ratio value is the value of long parameter than wide parameter;
Parameter adjustment subelement, during for the judged result of described parameter judgment sub-unit for being, adjusting the long parameter in described the first object image region, making the Aspect Ratio value in described the first object image region and described second character image region equal.
8. terminal according to claim 7, it is characterized in that, described character image acquiring unit, when being also no for the judged result of described parameter judgment sub-unit, obtain the personage's head portrait region in described the first object image region and described second character image region, respectively as the first head portrait region and the second head portrait region;
Described image parameter adjustment unit, also for the long parameter in described first head portrait region and wide parameter are adjusted to identical with wide parameter with the long parameter in described second head portrait region respectively;
Described character image acquiring unit, also for obtaining the body region in described second character image region;
Described terminal also comprises:
Character image processing unit, replaces described the first object image region after being combined by the body region of described first head portrait region in described second character image region after adjustment.
9. terminal according to claim 6, is characterized in that, described group photo image composing unit comprises:
Subelement is determined in position, for determining the synthesising position region of described the first object image region in described second picture frame;
Group photo synthon unit, for by described the first object image region be synthesized to described synthesising position Area generation group photo image.
10. terminal according to claim 6, is characterized in that, described image frame acquisitions unit specifically for:
Receive photographing instruction, take the photograph before being gathered respectively by front-facing camera and post-positioned pick-up head picture frame and after take the photograph picture frame;
Be set to the first picture frame by taking the photograph picture frame before described, and be set to the second picture frame by taking the photograph picture frame after described; Or
Receive for take the photograph picture frame before described and described after the first picture frame of target image frame input of taking the photograph in picture frame confirm instruction, described target image frame is set to the first picture frame, another picture frame is set to the second picture frame.
CN201510452529.1A 2015-07-28 2015-07-28 Photographing method and terminal Pending CN105578028A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510452529.1A CN105578028A (en) 2015-07-28 2015-07-28 Photographing method and terminal
PCT/CN2015/091344 WO2017016069A1 (en) 2015-07-28 2015-09-30 Photographing method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510452529.1A CN105578028A (en) 2015-07-28 2015-07-28 Photographing method and terminal

Publications (1)

Publication Number Publication Date
CN105578028A true CN105578028A (en) 2016-05-11

Family

ID=55887640

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510452529.1A Pending CN105578028A (en) 2015-07-28 2015-07-28 Photographing method and terminal

Country Status (2)

Country Link
CN (1) CN105578028A (en)
WO (1) WO2017016069A1 (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107124551A (en) * 2017-05-18 2017-09-01 惠州Tcl移动通信有限公司 A kind of mobile terminal is taken pictures the method being automatically synthesized, storage device and mobile terminal
CN107277346A (en) * 2017-05-27 2017-10-20 深圳市金立通信设备有限公司 A kind of image processing method and terminal
CN107426502A (en) * 2017-09-19 2017-12-01 北京小米移动软件有限公司 Image pickup method and device, electronic equipment
CN107592459A (en) * 2017-09-22 2018-01-16 维沃移动通信有限公司 A kind of photographic method and mobile terminal
CN108632543A (en) * 2018-03-26 2018-10-09 广东欧珀移动通信有限公司 Method for displaying image, device, storage medium and electronic equipment
CN110084744A (en) * 2019-03-06 2019-08-02 深圳市云之梦科技有限公司 Image processing method, device, computer equipment and storage medium
CN110475058A (en) * 2018-05-10 2019-11-19 宏碁股份有限公司 Image composition method and intelligent apparatus
CN110913121A (en) * 2018-09-18 2020-03-24 珠海格力电器股份有限公司 Shooting method, electronic equipment and computer storage medium
CN111369445A (en) * 2020-05-27 2020-07-03 北京伟杰东博信息科技有限公司 Image processing method, system and mobile terminal
CN112153272A (en) * 2019-06-28 2020-12-29 华为技术有限公司 Image shooting method and electronic equipment
CN113473239A (en) * 2020-07-15 2021-10-01 青岛海信电子产业控股股份有限公司 Intelligent terminal, server and image processing method
CN113596323A (en) * 2021-07-13 2021-11-02 咪咕文化科技有限公司 Intelligent group photo method, device, mobile terminal and computer program product
CN113824871A (en) * 2021-08-02 2021-12-21 惠州Tcl云创科技有限公司 Method and device for processing superposed photographing of front camera and rear camera of mobile terminal and mobile terminal

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108234891B (en) 2018-04-04 2019-11-05 维沃移动通信有限公司 A kind of photographic method and mobile terminal
CN112770042B (en) * 2019-11-05 2022-11-15 RealMe重庆移动通信有限公司 Image processing method and device, computer readable medium, wireless communication terminal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080151044A1 (en) * 2006-12-22 2008-06-26 Fujifilm Corporation Method and apparatus for generating files for stereographic image display and method and apparatus for controlling stereographic image display
CN102055834A (en) * 2009-10-30 2011-05-11 Tcl集团股份有限公司 Double-camera photographing method of mobile terminal
CN104010138A (en) * 2013-02-23 2014-08-27 三星电子株式会社 Apparatus and method for synthesizing an image in a portable terminal equipped with a dual camera
CN104580910A (en) * 2015-01-09 2015-04-29 宇龙计算机通信科技(深圳)有限公司 Image synthesis method and system based on front camera and rear camera
CN104660899A (en) * 2014-09-29 2015-05-27 上海华勤通讯技术有限公司 Picture processing method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080151044A1 (en) * 2006-12-22 2008-06-26 Fujifilm Corporation Method and apparatus for generating files for stereographic image display and method and apparatus for controlling stereographic image display
CN102055834A (en) * 2009-10-30 2011-05-11 Tcl集团股份有限公司 Double-camera photographing method of mobile terminal
CN104010138A (en) * 2013-02-23 2014-08-27 三星电子株式会社 Apparatus and method for synthesizing an image in a portable terminal equipped with a dual camera
CN104660899A (en) * 2014-09-29 2015-05-27 上海华勤通讯技术有限公司 Picture processing method
CN104580910A (en) * 2015-01-09 2015-04-29 宇龙计算机通信科技(深圳)有限公司 Image synthesis method and system based on front camera and rear camera

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107124551B (en) * 2017-05-18 2021-03-23 惠州Tcl移动通信有限公司 Automatic synthesis method for mobile terminal photographing, storage device and mobile terminal
CN107124551A (en) * 2017-05-18 2017-09-01 惠州Tcl移动通信有限公司 A kind of mobile terminal is taken pictures the method being automatically synthesized, storage device and mobile terminal
CN107277346A (en) * 2017-05-27 2017-10-20 深圳市金立通信设备有限公司 A kind of image processing method and terminal
CN107426502A (en) * 2017-09-19 2017-12-01 北京小米移动软件有限公司 Image pickup method and device, electronic equipment
CN107426502B (en) * 2017-09-19 2020-03-17 北京小米移动软件有限公司 Shooting method and device, electronic equipment and storage medium
CN107592459A (en) * 2017-09-22 2018-01-16 维沃移动通信有限公司 A kind of photographic method and mobile terminal
CN108632543B (en) * 2018-03-26 2020-07-07 Oppo广东移动通信有限公司 Image display method, image display device, storage medium and electronic equipment
CN108632543A (en) * 2018-03-26 2018-10-09 广东欧珀移动通信有限公司 Method for displaying image, device, storage medium and electronic equipment
CN110475058A (en) * 2018-05-10 2019-11-19 宏碁股份有限公司 Image composition method and intelligent apparatus
CN110913121A (en) * 2018-09-18 2020-03-24 珠海格力电器股份有限公司 Shooting method, electronic equipment and computer storage medium
CN110913121B (en) * 2018-09-18 2021-02-09 珠海格力电器股份有限公司 Shooting method, electronic equipment and computer storage medium
CN110084744A (en) * 2019-03-06 2019-08-02 深圳市云之梦科技有限公司 Image processing method, device, computer equipment and storage medium
CN110084744B (en) * 2019-03-06 2022-11-08 深圳市云之梦科技有限公司 Image processing method, image processing device, computer equipment and storage medium
CN112153272A (en) * 2019-06-28 2020-12-29 华为技术有限公司 Image shooting method and electronic equipment
CN111369445A (en) * 2020-05-27 2020-07-03 北京伟杰东博信息科技有限公司 Image processing method, system and mobile terminal
CN113473239A (en) * 2020-07-15 2021-10-01 青岛海信电子产业控股股份有限公司 Intelligent terminal, server and image processing method
CN113473239B (en) * 2020-07-15 2023-10-13 青岛海信电子产业控股股份有限公司 Intelligent terminal, server and image processing method
CN113596323A (en) * 2021-07-13 2021-11-02 咪咕文化科技有限公司 Intelligent group photo method, device, mobile terminal and computer program product
CN113824871A (en) * 2021-08-02 2021-12-21 惠州Tcl云创科技有限公司 Method and device for processing superposed photographing of front camera and rear camera of mobile terminal and mobile terminal

Also Published As

Publication number Publication date
WO2017016069A1 (en) 2017-02-02

Similar Documents

Publication Publication Date Title
CN105578028A (en) Photographing method and terminal
CN106331510B (en) A kind of backlight photographic method and mobile terminal
CN107205120B (en) A kind of processing method and mobile terminal of image
CN108933899B (en) Panorama shooting method, device, terminal and computer readable storage medium
CN106899781B (en) Image processing method and electronic equipment
CN104580910B (en) Image combining method based on forward and backward camera and system
CN104902177A (en) Intelligent photographing method and terminal
CN103856617A (en) Photographing method and user terminal
CN108564612A (en) Model display methods, device, storage medium and electronic equipment
CN109889724A (en) Image weakening method, device, electronic equipment and readable storage medium storing program for executing
CN105306806A (en) Mobile terminal and photographing method thereof
CN105391949A (en) Photographing method and terminal
US11297230B2 (en) Shooting method, device and computer-readable storage medium
CN107493407A (en) Camera arrangement and photographic method
CN105578023A (en) Image quick photographing method and device
CN113630545A (en) Shooting method and equipment
CN108734754A (en) Image processing method and device
KR20150011742A (en) User terminal device and the control method thereof
CN106231200B (en) A kind of photographic method and device
JP2022055302A (en) Method and apparatus for detecting occluded image and medium
US20160292842A1 (en) Method and Apparatus for Enhanced Digital Imaging
CN112399078B (en) Shooting method and device and electronic equipment
CN114071010A (en) Shooting method and equipment
CN106961549A (en) A kind of image pickup method and device based on dual camera
CN104539842A (en) Intelligent photographing method and photographing device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160511