CN104378544B - A kind of method and electronic equipment obtaining image - Google Patents
A kind of method and electronic equipment obtaining image Download PDFInfo
- Publication number
- CN104378544B CN104378544B CN201310356927.4A CN201310356927A CN104378544B CN 104378544 B CN104378544 B CN 104378544B CN 201310356927 A CN201310356927 A CN 201310356927A CN 104378544 B CN104378544 B CN 104378544B
- Authority
- CN
- China
- Prior art keywords
- image acquisition
- acquisition unit
- described image
- electronic equipment
- images
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Abstract
The invention discloses a kind of methods for obtaining image, this method is applied in electronic equipment, the electronic equipment includes image acquisition units, the image acquisition units can be rotated by 360 °, this method comprises: obtaining first triggering command, the first triggering command, which is used to characterize, obtains the panoramic picture that the electronic equipment is currently located scene;The first triggering command is responded, control described image acquisition unit rotation, acquisition obtains N images during the rotation of described image acquisition unit;A panoramic picture is generated with the N images.The invention also discloses a kind of electronic equipment.Using the present invention, a kind of more convenient and fast and better effect 360 degree of panoramic pictures shootings of electronic equipment are realized.
Description
Technical field
The present invention relates to technical field of image acquisition more particularly to a kind of methods and electronic equipment for obtaining image.
Background technique
With the mature development of image acquisition technology and image processing techniques, a large amount of electronic equipment is adopted with image at present
Collection and image processing function;Wherein, image collecting function can be as built in electronic equipment or external image acquisition units are realized,
Common image acquisition units such as camera, image processing function can be realized by the central processing unit (CPU) of electronic equipment.
The image acquisition units built in electronic equipment can not rotate mostly at present, with this class of electronic devices photographing panorama picture
When, need electronic equipment rotation just to can be carried out pan-shot, it is complicated for operation;It and is usually that electricity is lifted by user hand when practical operation
Sub- equipment, which rotates, completes pan-shot, is easy to cause shooting effect not since the position of electronic equipment is unstable in shooting process
It is good.
The image acquisition units of some electronic equipments may be implemented 360 degree rotation, however at present this class of electronic devices also without
Method realizes panoramic picture shooting function.
Summary of the invention
In view of this, the main purpose of the present invention is to provide a kind of method and electronic equipment for obtaining image, to realize
A kind of more convenient and fast and better effect 360 degree of panoramic pictures shootings of electronic equipment.
In order to achieve the above objectives, the technical scheme of the present invention is realized as follows:
The present invention provides a kind of method for obtaining image, and the method is applied in electronic equipment, the electronic equipment packet
Image acquisition units are included, described image acquisition unit can be rotated by 360 °, this method comprises:
First triggering command is obtained, the first triggering command is currently located scene for characterizing the acquisition electronic equipment
Panoramic picture;
The first triggering command is responded, control described image acquisition unit rotation is rotated in described image acquisition unit
During acquisition obtain N images;
A panoramic picture is generated with the N images.
Preferably, the control described image acquisition unit rotation is adopted during the rotation of described image acquisition unit
Collection obtains N images, comprising:
The position W1 locating for described image acquisition unit obtains Q images;
K degree is rotated based on the Q image control described image acquisition units, the K degree is less than 360 degree;
The locating position W2 obtains Q+1 images after described image acquisition unit rotates the K degree;
Wherein, the position W1 is the prior location of the position W2, and the Q images are the Q+1 images
Previous image.
Preferably, the control described image acquisition unit rotation is adopted during the rotation of described image acquisition unit
Collection obtains N images, comprising:
The position W1 locating for described image acquisition unit obtains Q images;
Control the rotation of described image acquisition unit and real-time image acquisition;
Q+1 is obtained based on the Q image control described image acquisition units position W2 locating after rotating K degree
Image is opened, the K degree is less than 360 degree;
Wherein, the position W1 is the prior location of the position W2, and the Q images are the Q+1 images
Previous image.
Preferably, described image acquisition unit can stretch, and the control described image acquisition unit rotation includes:
First position of the electronic equipment in vertical space is obtained at the T1 moment;
The second position of the electronic equipment in vertical space is obtained at the T2 moment, when the second position and described the
When one position difference, variation according to the second position relative to first position, control described image acquisition unit is flexible, protects
Card described image acquisition unit acquires image on same reference line;
Wherein, the T1 moment is the previous moment at the T2 moment.
Preferably, the electronic equipment, which includes M, can set mode, described when the electronic equipment is in panning mode
Electronic equipment is able to respond the first triggering command.
It preferably, include facial mode of priority in the M mode, the method also includes:
When the electronic equipment is in the facial mode of priority, control described image acquisition unit rotation;It is acquiring
When acquisition facial characteristics meets predetermined condition during image, it is full that control described image acquisition unit is parked in the facial characteristics
The corresponding position of sufficient predetermined condition.
Preferably, described image acquisition unit is set in the built-in space of the electronic equipment side.
The present invention also provides a kind of electronic equipment, comprising:
Image acquisition units, for acquiring image, described image acquisition unit can be rotated by 360 °;
Obtaining unit is instructed, for obtaining first triggering command, the first triggering command obtains the electricity for characterizing
Sub- equipment is currently located the panoramic picture of scene;
Control unit, for responding the first triggering command, control described image acquisition unit rotation, in described image
Acquisition unit obtains N images during rotating;
Image processing unit, for generating a panoramic picture with the N images.
Preferably, described control unit is specifically used for, and the position W1 locating for described image acquisition unit obtains Q figures
Picture;K degree is rotated based on the Q image control described image acquisition units, the K degree is less than 360 degree;It is adopted in described image
Collection unit rotates the locating position W2 after the K degree and obtains Q+1 images;
Wherein, the position W1 is the prior location of the position W2, and the Q images are the Q+1 images
Previous image.
Preferably, described control unit is specifically used for, and the position W1 locating for described image acquisition unit obtains Q figures
Picture;Control the rotation of described image acquisition unit and real-time image acquisition;It is single based on the Q image control described image acquisitions
Member obtains Q+1 images in the position W2 of rotation K degree, and the K degree is less than 360 degree;
Wherein, the position W1 is the prior location of the position W2, and the Q images are the Q+1 images
Previous image.
Preferably, described image acquisition unit can stretch,
Described control unit is also used to, and obtains first position of the electronic equipment in vertical space at the T1 moment;?
The T2 moment obtains the second position of the electronic equipment in vertical space, when the second position is different from the first position
When, the variation according to the second position relative to first position, control described image acquisition unit is flexible, guarantees described image
Acquisition unit acquires image on same reference line;
Wherein, the T1 moment is the previous moment at the T2 moment.
Preferably, the electronic equipment further include: mode storage unit, the mode for saving the electronic equipment are set
It sets, the electronic equipment, which includes M, can set mode;
Described control unit is able to respond described when the mode setting that the mode storage unit saves is panning mode
First triggering command.
It preferably, include facial mode of priority in the M mode,
Described control unit is further used for, and is facial mode of priority in the mode setting that the mode storage unit saves
When, control described image acquisition unit rotation;It is full that facial characteristics is obtained during described image acquisition unit acquires image
When sufficient predetermined condition, control described image acquisition unit is parked in the corresponding position that the facial characteristics meets predetermined condition.
Preferably, described image acquisition unit is set in the built-in space of the electronic equipment side.
A kind of method and electronic equipment obtaining image provided by the present invention, image acquisition units can rotate 360
Degree, and multiple images can be acquired during described image acquisition unit rotates, and generate one entirely with multiple described images
Scape image.Through the invention, a kind of more convenient and fast and better effect 360 degree of panoramic pictures shootings of electronic equipment are realized;
The pan-shot of 360 degree rotation, the more flexible freedom of shooting angle;The image acquisition units of 360 degree rotation can be used as preposition
Image acquisition units use, i.e., realized by the image acquisition units of a 360 degree rotation preposition with postposition Image Acquisition
The dual function of unit.
Detailed description of the invention
Fig. 1 is a kind of method flow diagram of acquisition image of the embodiment of the present invention;
Fig. 2 is a kind of schematic diagram of acquisition image of the embodiment of the present invention;
Fig. 3 is the schematic diagram one for shooting sea level and generating panoramic picture;
Fig. 4 is the schematic diagram two for shooting sea level and generating panoramic picture;
Fig. 5 a is the structural relation schematic diagram of image acquisition units and electronic equipment in the embodiment of the present invention;
Fig. 5 b is the schematic diagram of image acquisition units in the embodiment of the present invention;
Fig. 6 is the structural schematic diagram of a kind of electronic equipment of the embodiment of the present invention.
Specific embodiment
The technical solution of the present invention is further elaborated in the following with reference to the drawings and specific embodiments.
A kind of method obtaining image provided in an embodiment of the present invention, is applied in electronic equipment, the electronic equipment packet
Image acquisition units are included, described image acquisition unit can be rotated by 360 °, as shown in Figure 1, mainly comprising the steps that
Step 101, first triggering command is obtained, the first triggering command is current for characterizing the acquisition electronic equipment
The panoramic picture of place scene.
The mode that the first triggering command generates can there are many, such as: electronic equipment is equipped with one for initiating institute
The quick botton for stating first triggering command generates the first triggering command, the electronics when the quick botton is pressed
Equipment can obtain the first triggering command;Again for example: described in user can be operated by the interactive interface on electronic equipment
Electronic equipment, initiates the first triggering command, and the electronic equipment can obtain the first triggering command.First triggering
Instruction is to indicate that the electronic equipment executes following processing: obtaining the panorama sketch that the electronic equipment is currently located scene
Picture.
It should be noted that the mode for generating the first triggering command in the embodiment of the present invention is not limited only to the above institute
It lifts, any instruction triggers mode suitable for electronic equipment should belong to the protection model of the embodiment of the present invention in practical application
It encloses.
Step 102, the first triggering command is responded, control described image acquisition unit rotation is acquired in described image
Acquisition obtains N images during unit rotates.
Step 103, a panoramic picture is generated with the N images.
Electronic equipment responds the first triggering command after obtaining the first triggering command, and starts to execute and obtain
It must be currently located the relevant processing of scene panoramic picture, a content of the processing includes: control described image acquisition unit rotation
Turn, acquisition obtains N images during the rotation of described image acquisition unit, and N is the integer more than or equal to 1.
Wherein, control image acquisition units rotation, acquisition obtains N images during image acquisition units rotation
Specific implementation can there are many.And the rotational steps of described image acquisition unit can be preset, and such as: user wishes
The panoramic picture for obtaining 360 degree, then the rotational steps for presetting described image acquisition unit are 360 degree;Again for example: Yong Huxi
Hope the panoramic picture for obtaining 180 degree, then the rotational steps for presetting described image acquisition unit are 180 degree;Etc..If it is
The pan-shot of non-360 degree, then described image acquisition unit is rotated back to initial position after the completion of shooting.
As the first preferred embodiment of the present invention, the control image acquisition units rotation is revolved in image acquisition units
Acquisition obtains N images during turning, comprising:
The position W1 locating for described image acquisition unit obtains Q images;
K degree is rotated based on the Q image control described image acquisition units, the K degree is less than 360 degree;
The locating position W2 obtains Q+1 images after described image acquisition unit rotates the K degree;
Wherein, the position W1 is the prior location of the position W2, and the Q images are the Q+1 images
Previous image.
Wherein, Q is the integer more than or equal to 1, and the value range of K is greater than 0 and less than 360.
The K degree of described image acquisition unit rotation need to meet the following conditions:
If described image acquisition unit, to rotate clockwise, described image acquisition unit is on the basis of the position W1
After rotating clockwise the K degree, the right side of the left margin of image and the Q images in the view-finder of described image acquisition unit
Boundary should be guaranteed that in picture material and fit together perfectly, thus guarantee the integrality and continuity of the panoramic picture ultimately generated,
I.e. no scene segment is omitted;
If described image acquisition unit, to rotate counterclockwise, described image acquisition unit is on the basis of the position W1
After rotating the K degree counterclockwise, a left side for the right margin of image and the Q images in the view-finder of described image acquisition unit
Boundary should be guaranteed that in picture material and fit together perfectly, thus guarantee the integrality and continuity of the panoramic picture ultimately generated,
I.e. no scene segment is omitted.
Correspondingly, described be based on Q image control described image acquisition unit rotation K degree, specifically include:
If described image acquisition unit to rotate clockwise, is calculated as reaching the view-finder of described image acquisition unit
The left margin of interior image and the right margin of the Q images fit together perfectly in picture material, and described image acquisition unit needs
The degree K rotated clockwise on the basis of the position W1, and described image acquisition unit is controlled in W1 according to gained degree K is calculated
K degree is rotated clockwise on the basis of position, after rotating K degree, described image acquisition unit is in the position W2;
If described image acquisition unit to rotate counterclockwise, is calculated as reaching the view-finder of described image acquisition unit
The right margin of interior image and the left margin of the Q images fit together perfectly in picture material, and described image acquisition unit needs
The degree K rotated counterclockwise on the basis of the position W1, and described image acquisition unit is controlled in W1 according to gained degree K is calculated
K degree is rotated on the basis of position counterclockwise, after rotating K degree, described image acquisition unit is in the position W2.
It should be noted that the embodiment of the present invention is not defined the circular of the degree K, practical application
In the calculation method of any degree K that can obtain meeting above-mentioned condition should belong to the protection scope of the embodiment of the present invention.
Below with reference to Fig. 2, for rotating clockwise, it is specifically described in the embodiment based on described in Q image controls
Image acquisition units rotate the specific implementation of K degree, and the method for obtaining image.
In Fig. 2, Q, Q+1, Q+2 are three images of tandem shooting, use image acquisition units in the embodiment of the present invention
The midpoint coordinates of lower frame of view-finder the location of described image acquisition unit, certainly, the embodiment of the present invention described
It is not limited only to this location expression mode.Electronic equipment responds the first triggering command after obtaining first triggering command,
The rotation of described image acquisition unit is controlled, the position W1 locating for described image acquisition unit obtains Q images, and according to institute
The image acquisition region of image acquisition units is stated, calculates and needs to rotate how much degree just can guarantee described image acquisition unit after rotation
View-finder in the left margin of image and the right margin of the Q images fit together perfectly in picture material, calculate gained degree
Number is K degree;It is W2 the location of after described image acquisition unit rotation K degree, the W2 locating for described image acquisition unit
It sets and obtains Q+1 images.Similar, the image acquisition areas after obtaining Q+1 images, according to described image acquisition unit
Domain, calculate need to rotate how many degree just can guarantee rotate after described image acquisition unit view-finder in image left margin and institute
The right margin for stating Q+1 images fits together perfectly in picture material;After calculating gained degree rotation, described image acquisition
Unit is in position W3, and the position W3 locating for described image acquisition unit obtains Q+2 images.Assuming that described image acquires
Unit only obtains this three images, then generating a panoramic picture as image A, by above using this three images Q, Q+1, Q+2
Processing, can guarantee the integrality and continuity of the panoramic picture ultimately generated.
As the second preferred embodiment of the present invention, the control image acquisition units rotation is revolved in image acquisition units
Acquisition obtains N images during turning, comprising:
The position W1 locating for described image acquisition unit obtains Q images;
Control the rotation of described image acquisition unit and real-time image acquisition;
Q+1 is obtained based on the Q image control described image acquisition units position W2 locating after rotating K degree
Image is opened, the K degree is less than 360 degree;
Wherein, the position W1 is the prior location of the position W2, and the Q images are the Q+1 images
Previous image.
Wherein, Q is the integer more than or equal to 1, and the value range of K is greater than 0 and less than 360.
The K degree of described image acquisition unit rotation need to meet the following conditions:
If described image acquisition unit, to rotate clockwise, described image acquisition unit is on the basis of the position W1
After rotating clockwise the K degree, the picture material of the left margin of described image acquisition unit should be with the right side of the Q images
The picture material on boundary is identical, i.e. the right margin of the left margin of described image acquisition unit and the Q image has certain
Picture material is overlapped, to guarantee the integrality and continuity of the panoramic picture ultimately generated, i.e., no scene segment is omitted;
If described image acquisition unit, to rotate counterclockwise, described image acquisition unit is on the basis of the position W1
After rotating the K degree counterclockwise, the picture material of the right margin of described image acquisition unit should be with a left side for the Q images
The picture material on boundary is identical, i.e. the left margin of the right margin of described image acquisition unit and the Q image has certain
Picture material is overlapped, to guarantee the integrality and continuity of the panoramic picture ultimately generated, i.e., no scene segment is omitted.
Correspondingly, described obtained based on the Q image control described image acquisition unit positions W2 locating after rotating K degree
Q+1 images are obtained, are specifically included:
If described image acquisition unit is to rotate clockwise, clockwise based on the position W1 in described image acquisition unit
During rotating simultaneously real-time image acquisition, the figure of the left margin of the view-finder of described image acquisition unit is compared with preset frequency
As whether the picture material of the right margin of content and the Q images is overlapped, and Q+1 is obtained in the position W2 of the coincidence
Open image;
If described image acquisition unit to rotate counterclockwise, counterclockwise based on the position W1 in described image acquisition unit
During rotating simultaneously real-time image acquisition, the figure of the right margin of the view-finder of described image acquisition unit is compared with preset frequency
As whether the picture material of the left margin of content and the Q images is overlapped, and Q+1 is obtained in the position W2 of the coincidence
Open image.
It should be noted that the width on the boundary can be set according to actual needs, and such as: according to electronic equipment
Image acquisition units precision set.In addition, the embodiment of the present invention does not limit the circular of the degree K
Fixed, the calculation method of any degree K that can obtain meeting above-mentioned condition should belong to the embodiment of the present invention in practical application
Protection scope.
Still by Fig. 2 and for rotating clockwise, it is specifically described in the embodiment and is adopted based on Q image control described images
Collect the unit position W2 locating after rotating K degree and obtain the specific implementation of Q+1 images, and obtains the side of image
Method.
In Fig. 2, Q, Q+1, Q+2 are three images of tandem shooting, use image acquisition units in the embodiment of the present invention
The midpoint coordinates of lower frame of view-finder the location of described image acquisition unit, certainly, the embodiment of the present invention described
It is not limited only to this location expression mode.Electronic equipment responds the first triggering command after obtaining first triggering command,
The rotation of described image acquisition unit is controlled, the position W1 locating for described image acquisition unit obtains Q images, and controls institute
It states image acquisition units to continue to rotate, described image acquisition unit real-time image acquisition in rotary course, it is electric in the process
Sub- equipment compares the picture material and the Q images of the left margin of the view-finder of described image acquisition unit with preset frequency
The picture material of right margin whether be overlapped, and determining that the position W2 being overlapped obtains Q+1 images;Then, described in control
Image acquisition units continue to rotate, described image acquisition unit real-time image acquisition in rotary course, in the process electronics
Equipment compares the picture material and the Q+1 images of the left margin of the view-finder of described image acquisition unit with preset frequency
The picture material of right margin whether be overlapped, and determining that the position W3 being overlapped obtains Q+2 images.Assuming that described image is adopted
Collection unit only obtains this three images, then generate a panoramic pictures as image A using this three images Q, Q+1, Q+2, by with
Upper processing can guarantee the integrality and continuity of the panoramic picture ultimately generated.
In addition, during the practical hand-held electronic equipment of user carries out pan-shot being not easy that the electronics held is kept to set
Stablize standby position, it will usually because the handshaking of user causes pan-shot not to carry out on the same reference line, such as: by
In the shake lower on hand of user, causes the image of shooting or more straggly, influence to generate the effect after panoramic picture.It is held with user
For electronic equipment shoots sea level, as shown in figure 3,01,02 and 03 is three images of tandem shooting, the void in image
Line indicate sea level, 02 be 01 latter image, user when shooting image 02 due to hand-hold electronic equipments move up from
And cause the sea level in image 02 to be compared and moved down in image 01,03 is 02 latter image, and user is in shooting image 03
When moved up so as to cause the sea level in image 03 compared to image 02 since hand-hold electronic equipments move down;That is,
Since the shake in shooting process causes pan-shot not to carry out on the same reference line, so as to cause three shot
It is straggly different above and below sea level in image, then above three images generate a panoramic picture 04 after effect such as Fig. 3 in
It is shown, in the panoramic picture 04 in Fig. 3, the height and disunity on sea level, to influence panoramic picture overall effect.
In order to solve the above problem, as third preferred embodiment of the invention, described image acquisition unit can stretch, described
Control described image acquisition unit, which rotates, includes:
First position of the electronic equipment in vertical space is obtained at the T1 moment;
The second position of the electronic equipment in vertical space is obtained at the T2 moment, when the second position and described the
When one position difference, variation according to the second position relative to first position, control described image acquisition unit is flexible, protects
Card described image acquisition unit acquires image on same reference line;
Wherein, the T1 moment is the previous moment at the T2 moment.
Specifically, controlling the figure if the second position moves up in vertical space relative to first position
As acquisition unit is retracted into electronic equipment, it is located at to guarantee described image acquisition unit at T1 moment and T2 moment same
Image is acquired on reference line;
If the second position moves down in vertical space relative to first position, it is single to control described image acquisition
How protruding some member from electronic equipment, to guarantee that described image acquisition unit is located at same benchmark at T1 moment and T2 moment
Image is acquired on line.
Still by taking the shooting of sea level shown in Fig. 3 as an example, 01,02 and 03 three images shot for tandem, 02 is 01
Latter image, user's hand-hold electronic equipments when shooting image 02 move up, and the electronic equipment knows shooting image
Vertical spatial position when 02 is moved up relative to when shooting image 01, to control described image acquisition unit to electronic equipment
It is interior to retract, to make described image acquisition unit when shooting image 02 and image 01 on same reference line;03 is 02
Latter image, user's hand-hold electronic equipments when shooting image 03 move down, and the electronic equipment knows shooting image
Vertical spatial position when 03 is moved down relative to when shooting image 02, to control described image acquisition unit from electronic equipment
It is much more protruding, to make described image acquisition unit when shooting image 03 and image 02 on same reference line.Through
Cross above-mentioned processing, in the panoramic picture 04 of generation, sea level is in sustained height, as shown in Figure 4.Fig. 4 is compared with Fig. 3 can
To find out, the panoramic picture overall effect of Fig. 4 is substantially better than Fig. 3.
It should be noted that in embodiments of the present invention, not to the mobile variable quantity and image acquisition units of electronic equipment
Telescopic adjustment amount between corresponding relationship carry out considered critical, which can be selected according to experimental result, as long as
It can reach and carry out image bat on same reference line by adjusting the flexible guarantee image acquisition units of described image acquisition unit
It takes the photograph.
As four preferred embodiment of the invention, the electronic equipment may include the M modes that can be set, such as: common mould
Formula, self-timer mode, panning mode, facial mode of priority etc., M is the integer more than or equal to 1.
After user selects the mode of shooting on an electronic device, electronic equipment saves mode selected by user, when
When the electronic equipment is in panning mode, the electronic equipment is able to respond the first triggering command, and execute it is aforementioned with
The relevant processing of pan-shot.
When the electronic equipment is in general mode, described image acquisition unit is stretched out out of electronic equipment, is not done and is revolved
Turn, described image acquisition unit carries out image taking to the scene in front.
When the electronic equipment is in self-timer mode, described image acquisition unit is stretched out and is rotated out of electronic equipment
180 degree, described image acquisition unit carry out image taking to the scene immediately ahead of described image acquisition unit after rotation 180 degree.
When the electronic equipment is in facial mode of priority, the electronic equipment control described image acquisition unit rotation
Turn;When acquisition facial characteristics meets predetermined condition during acquiring image, control described image acquisition unit is parked in described
Facial characteristics meets the corresponding position of predetermined condition.The predetermined condition can be, and the facial characteristics is located at described image
Excessive restriction is not done to the predetermined condition in specific region in the view-finder of acquisition unit, certainly, the embodiment of the present invention, this is pre-
If condition can be extended according to actual needs.Make a reservation for when control described image acquisition unit is parked in the facial characteristics satisfaction
When the corresponding position of condition, auto-focusing is carried out to the facial characteristics and user is waited to press shooting button, it certainly, can also
To carry out auto-focusing to the facial characteristics and automatically snap, can also manually focus and manually shoot.
As fifth preferred embodiment of the invention, described image acquisition unit can be set to the built-in of the electronic equipment side
In space.A kind of image acquisition units and the structural relation of electronic equipment are as shown in Figure 5 a, and image acquisition units 10 can be set
On the cylinder of flexible and rotation, the cylinder also is located in the built-in space of 00 side of electronic equipment, in this way, passing through control
The flexible and rotation of the cylinder can achieve and carry out control that is flexible and rotating to image acquisition units 10.Region A in Fig. 5 a
Partial enlarged view it is as shown in Figure 5 b.Certainly, the image acquisition units of the embodiment of the present invention are not limited only to be set to the electronics
Equipment side, other any feasible positions on electronic equipment, as long as being able to achieve the same goal of the invention of the embodiment of the present invention,
The protection scope of the embodiment of the present invention should be belonged to.
The method that the corresponding embodiment of the present invention obtains image, the present invention also provides the embodiments of a kind of electronic equipment, such as
Shown in Fig. 6, which includes:
Image acquisition units 10, for acquiring image, described image acquisition unit 10 can be rotated by 360 °;
Obtaining unit 20 is instructed, for obtaining first triggering command, the first triggering command is for characterizing described in acquisition
Electronic equipment is currently located the panoramic picture of scene;
Control unit 30, for responding the first triggering command, control described image acquisition unit 10 rotates, described
Image acquisition units 10 obtain N images during rotating;
Image processing unit 40, for generating a panoramic picture with the N images.
Wherein, the mode that the first triggering command generates can there are many, such as: electronic equipment is equipped with one for sending out
The quick botton for playing the first triggering command, the first triggering command is generated when the quick botton is pressed, described
The instruction obtaining unit 20 of electronic equipment can obtain the first triggering command;Again for example: user can pass through electronic equipment
On interactive interface operate the electronic equipment, initiate the first triggering command, the instruction obtaining unit of the electronic equipment
20 can obtain the first triggering command.The first triggering command is to indicate that the electronic equipment executes following processing:
Obtain the panoramic picture that the electronic equipment is currently located scene.
It should be noted that the mode for generating the first triggering command in the embodiment of the present invention is not limited only to the above institute
It lifts, any instruction triggers mode suitable for electronic equipment should belong to the protection model of the embodiment of the present invention in practical application
It encloses.
Wherein, control unit 30 controls image acquisition units 10 and rotates, and adopts during image acquisition units 10 rotate
Collection obtain N image specific implementation can there are many.And the rotational steps of described image acquisition unit 10 can be preparatory
Setting, such as: user wishes the panoramic picture of 360 degree of acquisition, then presets the rotational steps of described image acquisition unit 10
It is 360 degree;Again for example: user wishes the panoramic picture of acquisition 180 degree, then presets the rotation of described image acquisition unit 10
Amplitude is 180 degree;Etc..If it is the pan-shot of non-360 degree, then described control unit 30 controls after the completion of shooting
Described image acquisition unit 10 is rotated back to initial position.
As a preferred embodiment of the present invention, control unit 30 is specifically used for, in 10 institute of described image acquisition unit
The position W1 at place obtains Q images;K degree, the K are rotated based on the Q image control described image acquisition units 10
Degree is less than 360 degree;The locating position W2 obtains Q+1 images after described image acquisition unit 10 rotates the K degree;
Wherein, the position W1 is the prior location of the position W2, and the Q images are the Q+1 images
Previous image.
It is described to be based on the Q rotation K degree of image control described image acquisition units 10, it specifically includes:
If described image acquisition unit 10 to rotate clockwise, is calculated as reaching finding a view for described image acquisition unit
The left margin of image and the right margin of the Q images fit together perfectly in picture material in frame, described image acquisition unit
The 10 degree K that need to be rotated clockwise on the basis of the position W1, and described image acquisition unit is controlled according to gained degree K is calculated
10 rotate clockwise K degree on the basis of the position W1, and after rotating K degree, described image acquisition unit 10 is in the position W2;
If described image acquisition unit 10 to rotate counterclockwise, is calculated as reaching finding a view for described image acquisition unit
The right margin of image and the left margin of the Q images fit together perfectly in picture material in frame, described image acquisition unit
The 10 degree K that need to be rotated counterclockwise on the basis of the position W1, and described image acquisition unit is controlled according to gained degree K is calculated
10 rotate K degree counterclockwise on the basis of the position W1, and after rotating K degree, described image acquisition unit 10 is in the position W2.
As a preferred embodiment of the present invention, described control unit 30 is specifically used for, in described image acquisition unit
The position W1 locating for 10 obtains Q images;Control the rotation of described image acquisition unit 10 and real-time image acquisition;Based on described
Q image control described image acquisition units 10 obtain Q+1 images in the position W2 of rotation K degree, and the K degree is less than
360 degree;
Wherein, the position W1 is the prior location of the position W2, and the Q images are the Q+1 images
Previous image.
The W2 position locating after rotating K degree based on Q image control described image acquisition units obtains Q+1
Image is opened, is specifically included:
If described image acquisition unit 10 is to rotate clockwise, suitable based on the position W1 in described image acquisition unit 10
During hour hands rotation and real-time image acquisition, the left side of the view-finder of described image acquisition unit 10 is compared with preset frequency
Whether the picture material on boundary is overlapped with the picture material of the right margin of the Q images, and obtains in the position W2 of the coincidence
Obtain Q+1 images;
If described image acquisition unit 10 is based on W1 inverse position to rotate counterclockwise, in described image acquisition unit 10
During hour hands rotation and real-time image acquisition, the right of the view-finder of described image acquisition unit 10 is compared with preset frequency
Whether the picture material on boundary is overlapped with the picture material of the left margin of the Q images, and obtains in the position W2 of the coincidence
Obtain Q+1 images.
As a preferred embodiment of the present invention, described image acquisition unit 10 can stretch,
Described control unit 30 is also used to, and obtains first position of the electronic equipment in vertical space at the T1 moment;
Obtain the second position of the electronic equipment in vertical space at the T2 moment, when the second position and the first position not
Meanwhile the variation according to the second position relative to first position, control described image acquisition unit 10 is flexible, described in guarantee
Image acquisition units 10 acquire image on same reference line;Wherein, the T1 moment is the previous moment at the T2 moment.
Specifically, controlling the figure if the second position moves up in vertical space relative to first position
As acquisition unit 10 is retracted into electronic equipment, to guarantee that described image acquisition unit 10 is located at T1 moment and T2 moment
Image is acquired on same reference line;
If the second position moves down in vertical space relative to first position, it is single to control described image acquisition
How protruding some member 10 from electronic equipment, to guarantee described image acquisition unit 10 at T1 moment and T2 moment positioned at same
Image is acquired on reference line.
As a preferred embodiment of the present invention, the electronic equipment further include: mode storage unit 50, for saving
The mode setting of the electronic equipment, the electronic equipment, which includes M, can set mode;
Described control unit 30 is able to respond when the mode setting that the mode storage unit 50 saves is panning mode
The first triggering command.
It include facial mode of priority as a preferred embodiment of the present invention, in the M mode,
Described control unit 30 is further used for, and is that face is preferential in the mode setting that the mode storage unit 50 saves
When mode, control described image acquisition unit 10 rotates;Face is obtained during described image acquisition unit 10 acquires image
When portion's feature meets predetermined condition, control described image acquisition unit 10 is parked in the facial characteristics and meets the corresponding of predetermined condition
At position.The predetermined condition can be, and the facial characteristics is located at the given zone in the view-finder of described image acquisition unit
Excessive restriction is not done to the predetermined condition in domain, certainly, the embodiment of the present invention, which can carry out according to actual needs
Extension.
As a preferred embodiment of the present invention, described image acquisition unit 10 is set to the interior of the electronic equipment side
In between emptying.Certainly, the image acquisition units 10 of the embodiment of the present invention are not limited only to be set to the electronic equipment side, electronics
Other any feasible positions in equipment should belong to this as long as being able to achieve the same goal of the invention of the embodiment of the present invention
The protection scope of inventive embodiments.
It should be noted that image acquisition units 10 can be by camera in the electronic equipment of the embodiments of the present invention
It realizes, instruction obtaining unit 20, control unit 30, image processing unit 40 and mode storage unit 50 can be realized by CPU.
In conclusion the image acquisition units of the embodiment of the present invention can be rotated by 360 °, and can be acquired in described image
Unit acquires multiple images during rotating, and generates a panoramic picture with multiple described images.The embodiment of the present invention is realized
It is a kind of more easily and 360 degree panoramic pictures of electronic equipment of better effect are shot;The pan-shot of 360 degree rotation is clapped
Take the photograph the more flexible freedom of angle;The image acquisition units of 360 degree rotation can be used as preposition image acquisition units and use, i.e., logical
The image acquisition units for crossing a 360 degree rotation realize preposition and postposition image acquisition units dual functions, eliminate existing
There is technology to need and preposition and postposition image acquisition units troubles are respectively configured for electronic equipment;The image of the embodiment of the present invention is adopted
The functions such as self-timer and video calling may be implemented as preposition use in collection unit, and can provide preposition image than in the prior art
The more good image quality of acquisition unit.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.
Claims (12)
1. a kind of method for obtaining image, the method are applied in electronic equipment, which is characterized in that the electronic equipment includes
Image acquisition units, described image acquisition unit can be rotated by 360 °, this method comprises:
First triggering command is obtained, the first triggering command is currently located the complete of scene for characterizing the acquisition electronic equipment
Scape image;
The first triggering command is responded, control described image acquisition unit rotates and controls stretching for described image acquisition unit
Contracting, in described image acquisition unit, acquisition obtains N images during rotating on same reference line;
A panoramic picture is generated with the N images.
2. obtaining the method for image according to claim 1, which is characterized in that the control described image acquisition unit rotation
Turn, acquisition obtains N images during the rotation of described image acquisition unit, comprising:
The position W1 locating for described image acquisition unit obtains Q images;
K degree is rotated based on the Q image control described image acquisition units, the K degree is less than 360 degree;
The locating position W2 obtains Q+1 images after described image acquisition unit rotates the K degree;
Wherein, the position W1 is the prior location of the position W2, and the Q images are before the Q+1 opens images
One image.
3. obtaining the method for image according to claim 1, which is characterized in that described image acquisition unit can stretch, institute
The response first triggering command is stated, control described image acquisition unit rotates and controls the flexible of described image acquisition unit,
In described image acquisition unit, N images of acquisition acquisition include: during rotating on same reference line
First position of the electronic equipment in vertical space is obtained at the T1 moment;
The second position of the electronic equipment in vertical space is obtained at the T2 moment, when the second position and described first
When setting different, variation according to the second position relative to first position, control described image acquisition unit is flexible, guarantees institute
It states image acquisition units and acquires image on same reference line;
Wherein, the T1 moment is the previous moment at the T2 moment.
4. obtaining the method for image according to claim 1, which is characterized in that the electronic equipment, which includes M, can set mode,
When the electronic equipment is in panning mode, the electronic equipment is able to respond the first triggering command.
5. obtaining the method for image according to claim 4, which is characterized in that include the preferential mould of face in the M mode
Formula, the method also includes:
When the electronic equipment is in the facial mode of priority, control described image acquisition unit rotation;In acquisition image
During obtain facial characteristics when meeting predetermined condition, control described image acquisition unit be parked in the facial characteristics meet it is pre-
The corresponding position of fixed condition.
6. according to claim 1 to any one of 5 methods for obtaining image, which is characterized in that described image acquisition unit is set
In the built-in space of the electronic equipment side.
7. a kind of electronic equipment characterized by comprising
Image acquisition units, for acquiring image, described image acquisition unit can be rotated by 360 °;
Obtaining unit is instructed, for obtaining first triggering command, the first triggering command is set for characterizing the acquisition electronics
The standby panoramic picture for being currently located scene;
Control unit, for responding the first triggering command, control described image acquisition unit rotates and controls described image
Flexible, N images of acquisition during described image acquisition unit is in rotation on same reference line of acquisition unit;
Image processing unit, for generating a panoramic picture with the N images.
8. electronic equipment according to claim 7, which is characterized in that described control unit is specifically used for, and adopts in described image
Collect the position W1 locating for unit and obtains Q images;K degree is rotated based on the Q image control described image acquisition units,
The K degree is less than 360 degree;The locating position W2 obtains Q+1 images after described image acquisition unit rotates the K degree;
Wherein, the position W1 is the prior location of the position W2, and the Q images are before the Q+1 opens images
One image.
9. electronic equipment according to claim 7, which is characterized in that described image acquisition unit can stretch,
Described control unit is also used to, and obtains first position of the electronic equipment in vertical space at the T1 moment;In T2
The second position for obtaining the electronic equipment in vertical space is carved, when the second position and the first position difference,
Variation according to the second position relative to first position, control described image acquisition unit is flexible, guarantees that described image is adopted
Collection unit acquires image on same reference line;
Wherein, the T1 moment is the previous moment at the T2 moment.
10. electronic equipment according to claim 7, which is characterized in that the electronic equipment further include: mode storage unit,
For saving the mode setting of the electronic equipment, the electronic equipment, which includes M, can set mode;
Described control unit is able to respond described first when the mode setting that the mode storage unit saves is panning mode
Triggering command.
11. electronic equipment according to claim 10, which is characterized in that it include facial mode of priority in the M mode,
Described control unit is further used for, when the mode setting that the mode storage unit saves is facial mode of priority,
Control the rotation of described image acquisition unit;Facial characteristics is obtained during described image acquisition unit acquires image to meet in advance
When fixed condition, control described image acquisition unit is parked in the corresponding position that the facial characteristics meets predetermined condition.
12. according to any one of claim 7 to 11 electronic equipment, which is characterized in that described image acquisition unit is set to institute
In the built-in space for stating electronic equipment side.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310356927.4A CN104378544B (en) | 2013-08-15 | 2013-08-15 | A kind of method and electronic equipment obtaining image |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310356927.4A CN104378544B (en) | 2013-08-15 | 2013-08-15 | A kind of method and electronic equipment obtaining image |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104378544A CN104378544A (en) | 2015-02-25 |
CN104378544B true CN104378544B (en) | 2018-12-14 |
Family
ID=52557176
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310356927.4A Active CN104378544B (en) | 2013-08-15 | 2013-08-15 | A kind of method and electronic equipment obtaining image |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104378544B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104754233A (en) * | 2015-04-13 | 2015-07-01 | 李玉平 | Method for displaying self-portrait panoramic photos of mobile phones under remote control |
CN105657257B (en) * | 2015-12-29 | 2018-07-17 | 广东欧珀移动通信有限公司 | Image pickup method, device, system, mobile terminal and the self-shooting bar of distant view photograph |
CN110291777B (en) * | 2018-04-09 | 2021-09-14 | 深圳市大疆创新科技有限公司 | Image acquisition method, device and machine-readable storage medium |
CN109194875A (en) * | 2018-10-31 | 2019-01-11 | 维沃移动通信有限公司 | A kind of image pickup method and electronic equipment |
CN109639975A (en) * | 2018-12-24 | 2019-04-16 | 维沃移动通信有限公司 | A kind of filming control method and mobile terminal |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1585412A (en) * | 2003-08-23 | 2005-02-23 | 乐金电子(中国)研究开发中心有限公司 | Mobile communication terminal with camera and image taking method thereof |
CN201054660Y (en) * | 2007-02-15 | 2008-04-30 | 联想(北京)有限公司 | Camera device |
CN102833475A (en) * | 2012-08-17 | 2012-12-19 | 歌尔声学股份有限公司 | Camera for terminal equipment and implementation method of camera for terminal equipment |
CN103176347A (en) * | 2011-12-22 | 2013-06-26 | 百度在线网络技术(北京)有限公司 | Method and device for shooting panorama and electronic device |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100866491B1 (en) * | 2007-01-30 | 2008-11-03 | 삼성전자주식회사 | Image processing method and apparatus |
JP2010256534A (en) * | 2009-04-23 | 2010-11-11 | Fujifilm Corp | Head-mounted display for omnidirectional image display |
CN201607607U (en) * | 2010-01-29 | 2010-10-13 | 于辉 | Panoramic view imager |
CN202696798U (en) * | 2012-07-20 | 2013-01-23 | 西安英诺视通信息技术有限公司 | Intelligent remote measuring device for dual-channel ultrahigh-definition power transmission line |
CN102902485A (en) * | 2012-10-25 | 2013-01-30 | 北京华达诺科技有限公司 | 360-degree panoramic multi-point touch display platform establishment method |
-
2013
- 2013-08-15 CN CN201310356927.4A patent/CN104378544B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1585412A (en) * | 2003-08-23 | 2005-02-23 | 乐金电子(中国)研究开发中心有限公司 | Mobile communication terminal with camera and image taking method thereof |
CN201054660Y (en) * | 2007-02-15 | 2008-04-30 | 联想(北京)有限公司 | Camera device |
CN103176347A (en) * | 2011-12-22 | 2013-06-26 | 百度在线网络技术(北京)有限公司 | Method and device for shooting panorama and electronic device |
CN102833475A (en) * | 2012-08-17 | 2012-12-19 | 歌尔声学股份有限公司 | Camera for terminal equipment and implementation method of camera for terminal equipment |
Also Published As
Publication number | Publication date |
---|---|
CN104378544A (en) | 2015-02-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104378544B (en) | A kind of method and electronic equipment obtaining image | |
ES2707325T3 (en) | Mobile terminal and procedure to start an image taking with a mobile terminal | |
JP2018023158A (en) | Preview image display method and device, and terminal | |
CN205745966U (en) | Band is found a view the self-shooting bar of screen | |
TWI270738B (en) | Photographing device, photographing method and photographing method recording media | |
WO2014071840A1 (en) | Method and device for taking photo and video | |
CN104052928A (en) | Method and electronic equipment for controlling camera to rotate automatically | |
WO2019214574A1 (en) | Image capturing method and apparatus, and electronic terminal | |
CN102970441B (en) | Self-portrait method based on rear camera of mobile phone and mobile phone | |
US8934039B2 (en) | External equipment storing manipulation information and operation information and camera system using such information | |
CN113364987B (en) | Shooting equipment and control method and device thereof | |
CN108322663A (en) | Photographic method, device, terminal and storage medium | |
CN105007417B (en) | Mobile terminal and its rotation camera module control method, control device | |
CN110785990A (en) | Video shooting method and device and control equipment | |
CN105657257A (en) | Method, device and system for taking panoramic photo, mobile terminal and selfie stick | |
WO2016110075A1 (en) | Photographing method and apparatus for mobile terminal camera | |
WO2021026752A1 (en) | Tripod head control method, tripod head, and computer-readable storage medium | |
WO2015035686A1 (en) | Handle-type assistant remote control photographing apparatus | |
JP2017525193A (en) | Photography method, apparatus and terminal | |
WO2018000122A1 (en) | Selfie device | |
WO2021026789A1 (en) | Photographing method based on handheld gimbal, and handheld gimbal and storage medium | |
CN105959534B (en) | Image processing method, device and electronic equipment | |
CN104580899B (en) | The control method and imaging device of image objects | |
CN110933297B (en) | Photographing control method and device of intelligent photographing system, storage medium and system | |
CN106851117B (en) | method for obtaining panoramic photo and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |