Embodiment
In order to make object of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
The embodiment of the present invention is by receiving when request of taking pictures, obtain initial pictures, when the people's face scope in initial pictures exceeds preset range, control camera and towards the people's face scope in initial pictures, exceed the direction rotation that exceeds part of preset range, obtain at least one group of superimposed image, again initial pictures and the splicing of at least one group of superimposed image are generated to composograph, thereby realized many people by mobile terminal, take pictures, and greatly reduce mobile terminal and realize the operation easier that many people take pictures.
Mobile terminal in the embodiment of the present invention can comprise mobile phone (or being called " honeycomb " phone) and have the computer of mobile terminal, for example, can be portable, pocket, hand-hold type, mobile device built-in computer or vehicle-mounted, they and wireless access network exchange language and/or data.For example, Personal Communications Services (Personal Communication Service, PCS) phone, cordless telephone, Session initiation Protocol (Session Initiation Protocol, SIP) phone, wireless local loop (Wireless Local Loop, WLL) stand, personal digital assistant (Personal Digital Assistant, PDA) etc. equipment, in this no limit.
The mobile terminal that Fig. 1 shows the embodiment of the present invention to be provided is realized the realization flow figure of the method that many people take pictures, and details are as follows:
In step S101, receiving while taking pictures solicited message, start camera, by described camera, obtain initial pictures.
In embodiments of the present invention, mobile terminal receives taking pictures after solicited message of user's input, starts camera.Mobile terminal receives the solicited message of taking pictures of user's input, the solicited message of taking pictures that can send by the combination of a button or a plurality of buttons in pre-set button on mobile terminal or existing button for receiving user; Or, receive the solicited message of taking pictures (two circles counterclockwise for example slide) that user sends by mobile terminal touch screen.Mobile terminal receives taking pictures after solicited message of user's input, by camera, obtains initial pictures, and initial pictures is preserved, for follow-up Image Mosaics is prepared.
Further, receiving while taking pictures solicited message described in step S101, start camera, after obtaining initial pictures by described camera, also comprise:
Extract the people's face information in described initial pictures, according to the people's face scope in initial pictures described in the information analysis of described people's face.
Wherein, people's face information includes but not limited to facial contour, eyes, nose, face, ear or Skin Color Information.According to above-mentioned information, can analyze the people's face scope in initial pictures.Alternatively, when mobile terminal recognizes people's face, focus.
In step S102, when the people's face scope in described initial pictures exceeds preset range, control described camera and towards the people's face scope in described initial pictures, exceed the direction rotation that exceeds part of described preset range, and obtain at least one group of superimposed image by described camera.
Fig. 2 shows mobile terminal and realizes the schematic diagram that the people's face scope in initial pictures in the method that many people take pictures exceeds preset range.With reference to Fig. 2, black heavy line square frame is mobile terminal screen, represents the scope that camera can be taken; Dotted line represents preset range.When the people's face scope in initial pictures exceeds preset range, control camera and towards the people's face scope in initial pictures, exceed the direction rotation that exceeds part of preset range.For example, in Fig. 2, upper left side, below and the upper right side of the people's face scope in initial pictures exceed preset range, control camera towards upper left side, below and upper right side rotate and obtain three groups of superimposed images, and preserve superimposed image, for follow-up Image Mosaics is prepared.The camera of take obtains first group of superimposed image towards upper left side rotation and describes as example: camera, in the process towards upper left side rotation, obtains N and opens superimposed image, seamlessly transits guaranteeing between initial pictures and superimposed image.Wherein, N is positive integer.This N opens superimposed image and forms first group of superimposed image, and this N opens superimposed image and comprises the part that exceeds that people's face scope in initial pictures exceeds preset range.When obtaining first group of superimposed image, in the preset range of the superimposed image obtaining if current, comprised the most upper left picture that exceeds part, judge last superimposed image that the current superimposed image obtaining is first group of superimposed image, first group of superimposed image obtained, and makes camera get back to initial position.
It should be noted that, also can be using the scope of mobile terminal screen as preset range, when the people's face scope in initial pictures exceeds the scope of mobile terminal screen, control camera exceeds the scope of the mobile terminal screen direction rotation that exceeds part towards the people's face scope in initial pictures.
In step S103, described initial pictures and described at least one group of superimposed image splicing are generated to composograph and preserve.
Here, initial pictures and the splicing of at least one group of superimposed image are comprised, by superimposed image and partly overlapping that initial pictures repeats, superimposed image is comprised and exceeding partly that initial pictures does not comprise spliced with initial pictures.
The mobile terminal that Fig. 3 shows the embodiment of the present invention to be provided is realized the specific implementation flow chart of the method step S101 that many people take pictures.With reference to Fig. 3, receiving while taking pictures solicited message, start camera described in step S101, by described camera, obtain initial pictures and comprise:
In step S301, receiving while taking pictures solicited message, start camera, by described camera, obtain the image that comprises people's face.
As one embodiment of the present of invention, when mobile terminal receives taking pictures during solicited message of user input, mobile terminal starts camera, and whether the picture that judges camera current shooting comprises people's face, if the picture of camera current shooting comprises people's face, the image that comprises people's face by camera collection.
Preferably, described method also comprises:
By the image that comprises people's face described in the screen real-time exhibition of described mobile terminal.
As one embodiment of the present of invention, mobile terminal starts after camera function, the picture of can the screen real-time exhibition camera by mobile terminal taking, so that the picture that user takes at camera sends the solicited message of taking pictures when suitable, thereby obtains compared with the image that comprises people's face of high image quality.The image quality here comprises the implication of two aspects, the one, and the picture that camera is taken comprises that user wants the main picture of taking, the 2nd, picture is clear.
In step S302, in the image that comprises people's face described in judgement, whether people's face scope of assigned address exceeds described preset range.
Preset range in the image that comprises people's face here, is consistent with the preset range in initial pictures.
Alternatively, assigned address is the upper left corner, the upper right corner, the lower left corner or the lower right corner of the image that comprises people's face, in this no limit.The upper left corner that the assigned address of take is in embodiments of the present invention the image that comprises people's face describes as example.
The mobile terminal that Fig. 4 shows the embodiment of the present invention to be provided is realized the schematic diagram of the method step S303 that many people take pictures, with reference to Fig. 4:
In step S303, if described in comprise people's face image in people's face scope of assigned address exceed described preset range, control described camera rotation, until described in comprise people's face image in people's face scope of assigned address while not exceeding described preset range, then obtain described initial pictures by described camera.
In embodiments of the present invention, assigned address is the upper left corner of the image that comprises people's face.Upper figure in Fig. 4 is the image that comprises people's face, upper figure in Fig. 4 is known, in this image that comprises people's face, people's face scope in the upper left corner exceeds preset range, controlling camera rotates towards upper left side, until people's face scope in the upper left corner does not exceed preset range in the image that comprises people's face, as shown in the figure below in Fig. 4.When people's face scope in the upper left corner does not exceed preset range in the image that comprises people's face, by camera, obtain initial pictures, the figure below in Fig. 4 can be used as initial pictures.
In step S304, if described in comprise people's face image in people's face scope of assigned address do not exceed described preset range, using the described image that comprises people's face as described initial pictures.
In the present embodiment, when in the image that comprises people's face, people's face scope in the upper left corner does not exceed preset range, using the image that comprises people's face as initial pictures.
By the present embodiment, can reduce the number of times that follow-up rotating camera is obtained superimposed image, reduce data processing amount.With reference to Fig. 4, if using the upper figure in Fig. 4 as initial pictures, follow-up need to control camera respectively to upper left side, below and three, upper right side direction rotation, to obtain three three groups of superimposed images that direction is corresponding; And using the figure below in Fig. 4 as initial pictures, follow-up needs are controlled camera to right-hand and lower right both direction rotation, to obtain two groups of superimposed images that both direction is corresponding.
The mobile terminal that Fig. 5 shows the embodiment of the present invention to be provided is realized the specific implementation flow chart of the method step S102 that many people take pictures, with reference to Fig. 5:
Further, when the people's face scope described in step S102 in described initial pictures exceeds preset range, control described camera and towards the people's face scope in described initial pictures, exceed the direction rotation that exceeds part of described preset range, and by described camera, obtain at least one group of superimposed image and be specially:
In step S501, when the people's face scope in described initial pictures exceeds preset range, the people's face scope in described initial pictures analyzed exceeds the position that exceeds part of described preset range;
In step S502, according to the described position that exceeds part, control described camera towards the described direction rotation that exceeds part, and in the process of described camera rotation, with predeterminated frequency, obtain at least one group of superimposed image, until described in exceed part and be included in the preset range of described superimposed image after, the more described camera that stops the rotation.
In the present embodiment, suppose that initial pictures as shown in Figure 2, in initial pictures, people's face scope exceeds preset range, and the people's face scope in analysis initial pictures exceeds the position that exceeds part of preset range, and the known position that exceeds part comprises upper left side, below and upper right side.While supposing that camera obtains initial pictures, its residing position is initial position.
The first step, controlling camera is rotated towards upper left side by initial position, with predeterminated frequency, obtain first group of superimposed image, in the preset range of the superimposed image obtaining if current, comprised the most upper left picture that exceeds part, judge last superimposed image that the current superimposed image obtaining is first group of superimposed image, first group of superimposed image obtained, and the upper left part that exceeds is all included in the preset range of first group of superimposed image.On in Fig. 6, illustrate the schematic diagram of last superimposed image of first group of superimposed image.After first group of superimposed image obtained, make camera get back to initial position.
Second step, controlling camera is rotated towards below by initial position, with predeterminated frequency, obtain second group of superimposed image, in the preset range of the superimposed image obtaining if current, comprised the picture of below that exceeds part, judge last superimposed image that the current superimposed image obtaining is second group of superimposed image, second group of superimposed image obtained, and the part that exceeds of below is all included in the preset range of second group of superimposed image.In in Fig. 6, illustrate the schematic diagram of last superimposed image of second group of superimposed image.After second group of superimposed image obtained, make camera get back to initial position.
The 3rd step, controlling camera is rotated towards upper right side by initial position, with predeterminated frequency, obtain the 3rd group of superimposed image, in the preset range of the superimposed image obtaining if current, comprised the most top-right picture that exceeds part, judge that the current superimposed image obtaining is as last superimposed image of the 3rd group of superimposed image, the 3rd group of superimposed image obtained, and the top-right part that exceeds is all included in the preset range of the 3rd group of superimposed image.Under in Fig. 6, illustrate the schematic diagram of last superimposed image of the 3rd group of superimposed image.After the 3rd group of superimposed image obtained, can make camera get back to initial position.
After above-mentioned three steps, all parts that exceed are included in superimposed image, the camera that stops the rotation, and superimposed image capture is complete.
The embodiment of the present invention is by receiving when request of taking pictures, obtain initial pictures, when the people's face scope in initial pictures exceeds preset range, control camera and towards the people's face scope in initial pictures, exceed the direction rotation that exceeds part of preset range, obtain at least one group of superimposed image, again initial pictures and the splicing of at least one group of superimposed image are generated to composograph, thereby realized many people by mobile terminal, take pictures, and greatly reduce mobile terminal and realize the operation easier that many people take pictures.
Fig. 7 shows the structured flowchart of the mobile terminal that the embodiment of the present invention provides, and this mobile terminal can be realized the method that many people take pictures for the mobile terminal described in service chart 1 to Fig. 6.For convenience of explanation, only show the part relevant to the present embodiment.
With reference to Fig. 7, this mobile terminal comprises:
Initial pictures acquisition module 71, is receiving while taking pictures solicited message, starts camera, by described camera, obtains initial pictures.
Superimposed image acquisition module 72, when the people's face scope in described initial pictures exceeds preset range, control described camera and towards the people's face scope in described initial pictures, exceed the direction rotation that exceeds part of described preset range, and obtain at least one group of superimposed image by described camera.
Image Mosaics module 73, generates described initial pictures and described at least one group of superimposed image splicing composograph and preserves.
Further, described mobile terminal also 1 comprises:
People's face surface analysis module, extracts the people's face information in described initial pictures, according to the people's face scope in initial pictures described in the information analysis of described people's face.
Preferably, described initial pictures acquisition module 71 comprises:
The IMAQ submodule that comprises people's face, is receiving while taking pictures solicited message, starts camera, the image that comprises people's face by described camera collection;
Assigned address people face scope judgement submodule, in the image that comprises people's face described in judgement, whether people's face scope of assigned address exceeds described preset range;
The first initial pictures obtains submodule, if described in comprise people's face image in people's face scope of assigned address exceed described preset range, control described camera rotation, until described in comprise people's face image in people's face scope of assigned address while not exceeding described preset range, then obtain described initial pictures by described camera;
The second initial pictures obtains submodule, if described in comprise people's face image in people's face scope of assigned address do not exceed described preset range, using the described image that comprises people's face as described initial pictures.
Preferably, described mobile terminal also comprises:
The image shows module that comprises people's face, for the image that comprises people's face described in the screen real-time exhibition by described mobile terminal.
Further, described superimposed image acquisition module specifically for:
When the people's face scope in described initial pictures exceeds preset range, the people's face scope in described initial pictures analyzed exceeds the position that exceeds part of described preset range;
According to the described position that exceeds part, control described camera towards the described direction rotation that exceeds part, and in the process of described camera rotation, with predeterminated frequency, obtain at least one group of superimposed image, until described in exceed part and be included in the preset range of described superimposed image after, the more described camera that stops the rotation.
The embodiment of the present invention is by receiving when request of taking pictures, obtain initial pictures, when the people's face scope in initial pictures exceeds preset range, control camera and towards the people's face scope in initial pictures, exceed the direction rotation that exceeds part of preset range, obtain at least one group of superimposed image, again initial pictures and the splicing of at least one group of superimposed image are generated to composograph, thereby realized many people by mobile terminal, take pictures, and greatly reduce mobile terminal and realize the operation easier that many people take pictures.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any modifications of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., within all should being included in protection scope of the present invention.