CN104378544A - Method for obtaining image and electronic device - Google Patents

Method for obtaining image and electronic device Download PDF

Info

Publication number
CN104378544A
CN104378544A CN201310356927.4A CN201310356927A CN104378544A CN 104378544 A CN104378544 A CN 104378544A CN 201310356927 A CN201310356927 A CN 201310356927A CN 104378544 A CN104378544 A CN 104378544A
Authority
CN
China
Prior art keywords
image
acquisition units
image acquisition
electronic equipment
degree
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.)
Granted
Application number
CN201310356927.4A
Other languages
Chinese (zh)
Other versions
CN104378544B (en
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201310356927.4A priority Critical patent/CN104378544B/en
Publication of CN104378544A publication Critical patent/CN104378544A/en
Application granted granted Critical
Publication of CN104378544B publication Critical patent/CN104378544B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a method for obtaining an image. The method is applied to an electronic device. The electronic device comprises an image collecting unit which can rotate by 360 degrees. The method comprises the steps that a first triggering instruction is obtained, and the first triggering instruction is used for representing the operation of obtaining a panoramic image of the scene where the electronic device is located currently; in response to the first triggering instruction, the image collecting unit is controlled to rotate, and N images are collected and obtained in the rotating process of the image collecting unit; the panoramic image is generated through the N images. The invention further discloses the electronic device. By means of the method for obtaining the image and the electronic device, the 360-degree panoramic image of the electronic device is more conveniently shot with the better effect.

Description

A kind of method and electronic equipment obtaining image
Technical field
The present invention relates to technical field of image acquisition, particularly relate to a kind of method and the electronic equipment that obtain image.
Background technology
Along with the maturation of acquisition technology and image processing techniques develops, electronic equipments a large amount of at present has IMAQ and image processing function; Wherein, image collecting function can be realized by the image acquisition units that electronic equipment is built-in or external, and common image acquisition units is as camera, and image processing function can be realized by the central processing unit of electronic equipment (CPU).
The built-in image acquisition units of current electronic equipment cannot rotate mostly, during with this class of electronic devices photographing panorama picture, needs electronic equipment to rotate and just can carry out pan-shot, complicated operation; And normally rotated pan-shot, because the position instability of electronic equipment easily causes shooting effect not good in shooting process by user's hand act electronic equipment during practical operation.
The image acquisition units of some electronic equipments can realize 360 degree of rotations, but this class of electronic devices also cannot realize panoramic picture shoot function at present.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of method and the electronic equipment that obtain image, to realize easily a kind of and electronic equipment that effect is better 360 degree of panoramic pictures shootings.
For achieving the above object, technical scheme of the present invention is achieved in that
The invention provides a kind of method obtaining image, described method is applied in electronic equipment, and described electronic equipment comprises image acquisition units, and described image acquisition units can rotating 360 degrees, and the method comprises:
Obtain the first triggering command, described first triggering command obtains the panoramic picture of described electronic equipment current place scene for characterizing;
Respond described first triggering command, control described image acquisition units and rotate, in the process that described image acquisition units rotates, gather acquisition N open image;
Computer image genration one panoramic picture is opened with described N.
Preferably, the described image acquisition units of described control rotates, and gathers acquisition N and opens image, comprising in the process that described image acquisition units rotates:
W1 position residing for described image acquisition units obtains Q and opens image;
Open image acquisition units described in image control based on described Q and rotate K degree, described K degree is less than 360 degree;
W2 position residing after described image acquisition units rotates described K degree obtains Q+1 and opens image;
Wherein, described W1 position is the last position of described W2 position, and it is last the image that described Q+1 opens image that described Q opens image.
Preferably, the described image acquisition units of described control rotates, and gathers acquisition N and opens image, comprising in the process that described image acquisition units rotates:
W1 position residing for described image acquisition units obtains Q and opens image;
Control described image acquisition units to rotate and real-time image acquisition;
Open the W2 position residing after rotating K degree of image acquisition units described in image control based on described Q to obtain Q+1 and open image, described K degree is less than 360 degree;
Wherein, described W1 position is the last position of described W2 position, and it is last the image that described Q+1 opens image that described Q opens image.
Preferably, described image acquisition units can be stretched, and the described image acquisition units of described control rotates and comprises:
The primary importance of described electronic equipment in vertical space is obtained in the T1 moment;
The second place of described electronic equipment in vertical space is obtained in the T2 moment, when the described second place is different from described primary importance, according to the change of the described second place relative to primary importance, control described image acquisition units to stretch, ensure that described image acquisition units gathers image on same datum line;
Wherein, the described T1 moment is the previous moment in described T2 moment.
Preferably, described electronic equipment comprises M can establish pattern, and when described electronic equipment is in panning mode, described electronic equipment can respond described first triggering command.
Preferably, a described M pattern comprises facial mode of priority, and described method also comprises:
When described electronic equipment is in described facial mode of priority, controls described image acquisition units and rotate; Gather image process in obtain facial characteristics meet predetermined condition time, control described image acquisition units and be parked in the corresponding position that described facial characteristics meets predetermined condition.
Preferably, described image acquisition units is located in the built-in space of described electronic equipment sidepiece.
The present invention also provides a kind of electronic equipment, comprising:
Image acquisition units, for gathering image, described image acquisition units can rotating 360 degrees;
Instruction obtains unit, and for obtaining the first triggering command, described first triggering command obtains the panoramic picture of described electronic equipment current place scene for characterizing;
Control unit, for responding described first triggering command, controlling described image acquisition units and rotating, obtaining N and open image in the process that described image acquisition units rotates;
Graphics processing unit, for opening Computer image genration one panoramic picture with described N.
Preferably, described control unit specifically for, the W1 position residing for described image acquisition units obtains Q and opens image; Open image acquisition units described in image control based on described Q and rotate K degree, described K degree is less than 360 degree; W2 position residing after described image acquisition units rotates described K degree obtains Q+1 and opens image;
Wherein, described W1 position is the last position of described W2 position, and it is last the image that described Q+1 opens image that described Q opens image.
Preferably, described control unit specifically for, the W1 position residing for described image acquisition units obtains Q and opens image; Control described image acquisition units to rotate and real-time image acquisition; Open image acquisition units described in image control based on described Q to obtain Q+1 in the W2 position rotating K degree and open image, described K degree is less than 360 degree;
Wherein, described W1 position is the last position of described W2 position, and it is last the image that described Q+1 opens image that described Q opens image.
Preferably, described image acquisition units can be stretched,
Described control unit also for, obtain the primary importance of described electronic equipment in vertical space in the T1 moment; The second place of described electronic equipment in vertical space is obtained in the T2 moment, when the described second place is different from described primary importance, according to the change of the described second place relative to primary importance, control described image acquisition units to stretch, ensure that described image acquisition units gathers image on same datum line;
Wherein, the described T1 moment is the previous moment in described T2 moment.
Preferably, described electronic equipment also comprises: pattern storage unit, arranges for the pattern of preserving described electronic equipment, and described electronic equipment comprises M can establish pattern;
Described control unit, when the pattern that described pattern storage unit is preserved is set to panning mode, can respond described first triggering command.
Preferably, a described M pattern comprises facial mode of priority,
Described control unit is further used for, and when the pattern that described pattern storage unit is preserved is set to facial mode of priority, controls described image acquisition units and rotates; Described image acquisition units gather in the process of image obtain facial characteristics meet predetermined condition time, control described image acquisition units and be parked in the corresponding position that described facial characteristics meets predetermined condition.
Preferably, described image acquisition units is located in the built-in space of described electronic equipment sidepiece.
A kind of method and electronic equipment obtaining image provided by the present invention, its image acquisition units can rotating 360 degrees, and gathers multiple images in the process that can rotate in described image acquisition units, and with multiple Computer image genration one panoramic pictures described.By the present invention, achieve easily a kind of and electronic equipment that effect is better 360 degree of panoramic pictures shootings; 360 degree of pan-shots rotated, shooting angle is more flexibly freely; 360 degree of image acquisition units rotated can use as preposition image acquisition units, and the image acquisition units namely rotated by 360 degree achieves the dual-use function of preposition and rearmounted image acquisition units.
Accompanying drawing explanation
Fig. 1 is a kind of method flow diagram obtaining image of the embodiment of the present invention;
Fig. 2 is a kind of schematic diagram obtaining image of the embodiment of the present invention;
Fig. 3 is shooting sea level and the schematic diagram one of generating panorama image;
Fig. 4 is shooting sea level and the schematic diagram two of generating panorama image;
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 representation of a kind of electronic equipment of the embodiment of the present invention.
Embodiment
Below in conjunction with the drawings and specific embodiments, the technical solution of the present invention is further elaborated.
A kind of method obtaining image that the embodiment of the present invention provides, be applied in electronic equipment, described electronic equipment comprises image acquisition units, and described image acquisition units can rotating 360 degrees, as shown in Figure 1, mainly comprises the following steps:
Step 101, obtains the first triggering command, and described first triggering command obtains the panoramic picture of described electronic equipment current place scene for characterizing.
The mode that described first triggering command produces can have multiple, such as: electronic equipment is provided with one for initiating the quick botton of described first triggering command, produce described first triggering command when described quick botton is pressed, described electronic equipment can obtain described first triggering command; Again such as: user can operate described electronic equipment by the interactive interface on electronic equipment, initiate described first triggering command, and described electronic equipment can obtain described first triggering command.Described first triggering command indicates described electronic equipment to perform following process: the panoramic picture obtaining described electronic equipment current place scene.
It should be noted that, the mode producing described first triggering command in the embodiment of the present invention is not limited only to above act, and in practical application, any instruction triggers mode be applicable in electronic equipment all should belong to the protection range of the embodiment of the present invention.
Step 102, responds described first triggering command, controls described image acquisition units and rotates, and gathers acquisition N and open image in the process that described image acquisition units rotates.
Step 103, opens Computer image genration one panoramic picture with described N.
Electronic equipment is after described first triggering command of acquisition, respond described first triggering command, and start to perform the process relevant to obtaining current place scene panoramic picture, a content of this process comprises: control described image acquisition units and rotate, in the process that described image acquisition units rotates gather obtain N open image, N be more than or equal to 1 integer.
Wherein, control image acquisition units and rotate, gather in the process that image acquisition units rotates and obtain the specific implementation that N opens image and can have multiple.And the rotational steps of described image acquisition units can preset, such as: user wishes the panoramic picture of acquisition 360 degree, then the rotational steps presetting described image acquisition units is 360 degree; Again such as: user wishes the panoramic picture of acquisition 180 degree, then the rotational steps presetting described image acquisition units is 180 degree; Etc..If the pan-shot of non-360 degree, so after shooting completes, described image acquisition units rotates gets back to initial position.
As the first preferred embodiment of the present invention, described control image acquisition units rotates, and gathers acquisition N and opens image, comprising in the process that image acquisition units rotates:
W1 position residing for described image acquisition units obtains Q and opens image;
Open image acquisition units described in image control based on described Q and rotate K degree, described K degree is less than 360 degree;
W2 position residing after described image acquisition units rotates described K degree obtains Q+1 and opens image;
Wherein, described W1 position is the last position of described W2 position, and it is last the image that described Q+1 opens image that described Q opens image.
Wherein, Q be more than or equal to 1 integer, the span of K is for being greater than 0 and being less than 360.
The K degree that described image acquisition units rotates need meet the following conditions:
If described image acquisition units is to turn clockwise, so described image acquisition units turns clockwise after described K degree on the basis of W1 position, the right margin that in the view-finder of described image acquisition units, the left margin of image and described Q open image should ensure to fit together perfectly in picture material, thus ensure integrality and the continuity of the final panoramic picture generated, namely do not have scene fragment to omit;
If described image acquisition units is to be rotated counterclockwise, after so described image acquisition units is rotated counterclockwise described K degree on the basis of W1 position, the left margin that in the view-finder of described image acquisition units, the right margin of image and described Q open image should ensure to fit together perfectly in picture material, thus ensure integrality and the continuity of the final panoramic picture generated, namely do not have scene fragment to omit.
Accordingly, describedly to open described in image control image acquisition units based on Q and rotate K degree, specifically comprise:
If described image acquisition units is to turn clockwise, then be calculated as reach described image acquisition units view-finder in the left margin of image and the described Q right margin of opening image fit together perfectly in picture material, the number of degrees K that described image acquisition units need turn clockwise on the basis of W1 position, and control described image acquisition units according to calculating gained number of degrees K and to turn clockwise on the basis of W1 position K degree, after rotating K degree, described image acquisition units is in described W2 position;
If described image acquisition units is to be rotated counterclockwise, then be calculated as reach described image acquisition units view-finder in the right margin of image and the described Q left margin of opening image fit together perfectly in picture material, the number of degrees K that described image acquisition units need be rotated counterclockwise on the basis of W1 position, and control described image acquisition units according to calculating gained number of degrees K on the basis of W1 position, be rotated counterclockwise K degree, after rotating K degree, described image acquisition units is in described W2 position.
It should be noted that, the embodiment of the present invention does not limit the circular of described number of degrees K, and in practical application, any computational methods that can be met the number of degrees K of above-mentioned condition all should belong to the protection range of the embodiment of the present invention.
Below in conjunction with Fig. 2, to clockwise turn to example, concrete elaboration in this embodiment opens based on Q the specific implementation that image acquisition units described in image control rotates K degree, and obtains the method for image.
In Fig. 2, Q, Q+1, Q+2 are three images of tandem shooting, describe the position residing for described image acquisition units with the middle point coordinates of the lower frame of the view-finder of image acquisition units in the embodiment of the present invention, certainly, the embodiment of the present invention is not limited only to this location expression mode.Electronic equipment responds described first triggering command after acquisition first triggering command, control described image acquisition units to rotate, W1 position residing for described image acquisition units obtains Q and opens image, and according to the image acquisition region of described image acquisition units, calculate need to rotate how many degree guarantee rotate after described image acquisition units view-finder in left margin and the described Q of the image right margin of opening image fit together perfectly in picture material, the calculating gained number of degrees are K degree; After described image acquisition units rotation K degree, residing position is W2, and the W2 position residing for described image acquisition units obtains Q+1 and opens image.Similar, after acquisition Q+1 opens image, according to the image acquisition region of described image acquisition units, calculate need to rotate how many degree guarantee rotate after described image acquisition units view-finder in the left margin of image and the described Q+1 right margin of opening image fit together perfectly in picture material; After rotating according to the calculating gained number of degrees, described image acquisition units is in position W3, and the W3 position residing for described image acquisition units obtains Q+2 and opens image.Suppose that described image acquisition units only obtains this three images, so generate a panoramic picture for image A with these three images Q, Q+1, Q+2, by above process, integrality and the continuity of the final panoramic picture generated can be ensured.
As the second preferred embodiment of the present invention, described control image acquisition units rotates, and gathers acquisition N and opens image, comprising in the process that image acquisition units rotates:
W1 position residing for described image acquisition units obtains Q and opens image;
Control described image acquisition units to rotate and real-time image acquisition;
Open the W2 position residing after rotating K degree of image acquisition units described in image control based on described Q to obtain Q+1 and open image, described K degree is less than 360 degree;
Wherein, described W1 position is the last position of described W2 position, and it is last the image that described Q+1 opens image that described Q opens image.
Wherein, Q be more than or equal to 1 integer, the span of K is for being greater than 0 and being less than 360.
The K degree that described image acquisition units rotates need meet the following conditions:
If described image acquisition units is to turn clockwise, so described image acquisition units turns clockwise after described K degree on the basis of W1 position, the picture material of the left margin of described image acquisition units should be identical with the picture material that described Q opens the right margin of image, namely the left margin of described image acquisition units has certain picture material to overlap with the right margin that described Q opens image, thus ensure integrality and the continuity of the final panoramic picture generated, namely do not have scene fragment to omit;
If described image acquisition units is to be rotated counterclockwise, after so described image acquisition units is rotated counterclockwise described K degree on the basis of W1 position, the picture material of the right margin of described image acquisition units should be identical with the picture material that described Q opens the left margin of image, namely the right margin of described image acquisition units has certain picture material to overlap with the left margin that described Q opens image, thus ensure integrality and the continuity of the final panoramic picture generated, namely do not have scene fragment to omit.
Accordingly, describedly open the W2 position residing after rotating K degree of image acquisition units described in image control based on Q and obtain Q+1 and open image, specifically comprise:
If described image acquisition units is to turn clockwise, then to turn clockwise based on W1 position and in the process of real-time image acquisition in described image acquisition units, whether overlap with the picture material that described Q opens the right margin of image with the picture material of the left margin of the view-finder of the more described image acquisition units of preset frequency, and obtain Q+1 in the W2 position of described coincidence and open image;
If described image acquisition units is to be rotated counterclockwise, then be rotated counterclockwise in the process of also real-time image acquisition in described image acquisition units based on W1 position, whether overlap with the picture material that described Q opens the left margin of image with the picture material of the right margin of the view-finder of the more described image acquisition units of preset frequency, and obtain Q+1 in the W2 position of described coincidence and open image.
It should be noted that, the width on described border can set according to actual needs, such as: according to the precision set of the image acquisition units of electronic equipment.In addition, the embodiment of the present invention does not limit the circular of described number of degrees K, and in practical application, any computational methods that can be met the number of degrees K of above-mentioned condition all should belong to the protection range of the embodiment of the present invention.
Still with Fig. 2 and clockwise turn to example, the concrete W2 position of opening image acquisition units described in image control residing after rotating K degree based on Q in this embodiment of setting forth obtains the specific implementation that Q+1 opens image, and obtains the method for image.
In Fig. 2, Q, Q+1, Q+2 are three images of tandem shooting, describe the position residing for described image acquisition units with the middle point coordinates of the lower frame of the view-finder of image acquisition units in the embodiment of the present invention, certainly, the embodiment of the present invention is not limited only to this location expression mode.Electronic equipment responds described first triggering command after acquisition first triggering command, control described image acquisition units to rotate, W1 position residing for described image acquisition units obtains Q and opens image, and control described image acquisition units continuation rotation, described image acquisition units real-time image acquisition in rotary course, whether electronic equipment overlaps with the picture material that described Q opens the right margin of image with the picture material of the left margin of the view-finder of the more described image acquisition units of preset frequency in the process, and is determining that the W2 position overlapped obtains Q+1 and opens image; Subsequently, control described image acquisition units to continue to rotate, described image acquisition units real-time image acquisition in rotary course, whether electronic equipment overlaps with the picture material that described Q+1 opens the right margin of image with the picture material of the left margin of the view-finder of the more described image acquisition units of preset frequency in the process, and is determining that the W3 position overlapped obtains Q+2 and opens image.Suppose that described image acquisition units only obtains this three images, so generate a panoramic picture for image A with these three images Q, Q+1, Q+2, by above process, integrality and the continuity of the final panoramic picture generated can be ensured.
In addition; carry out in the process of pan-shot at the actual hand-held electronic equipment of user; not easily keep the electronic equipment position stability held; usual meeting causes pan-shot not to be carried out on same datum line because the hand shaking of user is dynamic; such as: due to the lower on hand shake of user; cause the image of shooting straggly up and down, affect the effect after generating panorama image.For user's hand-held electronic equipment shooting sea level, as shown in Figure 3,01,02 and 03 is three images that tandem is taken, dotted line in image represents sea level, 02 be 01 a rear image, user when photographic images 02 because hand-hold electronic equipments moves up thus cause the sea level in image 02 to be compared in image 01 having moved down, 03 be 02 a rear image, user when photographic images 03 because hand-hold electronic equipments moves down thus cause the sea level in image 03 to be compared on image 02 having moved; That is, because the shake in shooting process causes pan-shot not to be carried out on same datum line, thus cause that the sea level in three images shot is straggly up and down differs, effect so after above three Computer image genration one panoramic pictures 04 as shown in Figure 3, in panoramic picture 04 in Fig. 3, the height on sea level disunity, thus affect panoramic picture whole structure.
For overcoming the above problems, as third preferred embodiment of the invention, described image acquisition units can be stretched, and the described image acquisition units of described control rotates and comprises:
The primary importance of described electronic equipment in vertical space is obtained in the T1 moment;
The second place of described electronic equipment in vertical space is obtained in the T2 moment, when the described second place is different from described primary importance, according to the change of the described second place relative to primary importance, control described image acquisition units to stretch, ensure that described image acquisition units gathers image on same datum line;
Wherein, the described T1 moment is the previous moment in described T2 moment.
Concrete, if the described second place has been moved on primary importance is in vertical space, then control described image acquisition units to retract in electronic equipment, gather image to ensure that described image acquisition units was positioned on same datum line in T1 moment and T2 moment;
If the described second place has moved down in vertical space relative to primary importance, then control described image acquisition units from electronic equipment much more protruding, gather image to ensure that described image acquisition units was positioned on same datum line in T1 moment and T2 moment.
Still be shot for example with the sea level shown in Fig. 3,01,02 and 03 is three images that tandem is taken, 02 be 01 a rear image, user's hand-hold electronic equipments when photographic images 02 moves up, vertical spatial position when described electronic equipment knows photographic images 02 has been moved on during photographic images 01, thus control described image acquisition units and retract in electronic equipment, thus make described image acquisition units when photographic images 02 and image 01 on same datum line; 03 be 02 a rear image, user's hand-hold electronic equipments when photographic images 03 moves down, vertical spatial position when described electronic equipment knows photographic images 03 has moved down relative to during photographic images 02, thus control described image acquisition units from electronic equipment much more protruding, thus make described image acquisition units when photographic images 03 and image 02 on same datum line.Through above-mentioned process, in the panoramic picture 04 of generation, sea level at sustained height, as shown in Figure 4.Compared by Fig. 4 and Fig. 3 and can find out, the panoramic picture whole structure of Fig. 4 is obviously better than Fig. 3.
It should be noted that, in embodiments of the present invention, considered critical is not carried out to the corresponding relation between the mobile variable quantity of electronic equipment and the telescopic adjustment amount of image acquisition units, this corresponding relation can experimentally result be selected, as long as the flexible guarantee image acquisition units that can be reached through the described image acquisition units of adjustment carries out image taking on same datum line.
As four preferred embodiment of the invention, described electronic equipment can comprise the pattern that M can establish, as general mode, self-timer mode, panning mode, facial mode of priority etc., M be more than or equal to 1 integer.
After user selects the pattern of taking on an electronic device, electronic equipment is preserved user-selected pattern, when described electronic equipment is in panning mode, described electronic equipment can respond described first triggering command, and performs the aforementioned process relevant to pan-shot.
When described electronic equipment is in general mode, described image acquisition units is stretched out in electronic equipment, does not do and rotates, and described image acquisition units carries out image taking to the scene in dead ahead.
When described electronic equipment is in self-timer mode, described image acquisition units is stretched out and is revolved turnback in electronic equipment, and described image acquisition units carries out image taking to the scene in described image acquisition units dead ahead after revolving turnback.
When described electronic equipment is in facial mode of priority, described electronic equipment controls described image acquisition units and rotates; Gather image process in obtain facial characteristics meet predetermined condition time, control described image acquisition units and be parked in the corresponding position that described facial characteristics meets predetermined condition.Described predetermined condition can be, described facial characteristics is positioned at the specific region of the view-finder of described image acquisition units, and certainly, the embodiment of the present invention does not do too much restriction to described predetermined condition, and this is pre-conditioned can expand according to actual needs.When control described image acquisition units be parked in described facial characteristics meet the corresponding position of predetermined condition time, auto-focusing is carried out to described facial characteristics and waits for that user presses shooting push button, certainly, also can carry out auto-focusing to described facial characteristics and automatically snap, can also artificial focusing also artificial shooting.
As fifth preferred embodiment of the invention, described image acquisition units can be located in the built-in space of described electronic equipment sidepiece.The structural relation of a kind of image acquisition units and electronic equipment as shown in Figure 5 a, image acquisition units 10 can be arranged on the cylinder of flexible and rotation, described cylinder is also arranged in the built-in space of electronic equipment 00 sidepiece, like this, by controlling the flexible of described cylinder and rotating, can reach and the control of stretching and rotating is carried out to image acquisition units 10.In Fig. 5 a, the partial enlarged drawing of region A as shown in Figure 5 b.Certainly; the image acquisition units of the embodiment of the present invention is not limited only to be located at described electronic equipment sidepiece; other any feasible positions on electronic equipment, as long as can realize the same goal of the invention of the embodiment of the present invention, all should belong to the protection range of the embodiment of the present invention.
The corresponding embodiment of the present invention obtains the method for image, and present invention also offers a kind of embodiment of electronic equipment, as shown in Figure 6, this electronic equipment comprises:
Image acquisition units 10, for gathering image, described image acquisition units 10 can rotating 360 degrees;
Instruction obtains unit 20, and for obtaining the first triggering command, described first triggering command obtains the panoramic picture of described electronic equipment current place scene for characterizing;
Control unit 30, for responding described first triggering command, controlling described image acquisition units 10 and rotating, and obtains N and open image in the process that described image acquisition units 10 rotates;
Graphics processing unit 40, for opening Computer image genration one panoramic picture with described N.
Wherein, the mode that described first triggering command produces can have multiple, such as: electronic equipment is provided with one for initiating the quick botton of described first triggering command, produce described first triggering command when described quick botton is pressed, the instruction of described electronic equipment obtains unit 20 and can obtain described first triggering command; Again such as: user can operate described electronic equipment by the interactive interface on electronic equipment, initiate described first triggering command, the instruction of described electronic equipment obtains unit 20 and can obtain described first triggering command.Described first triggering command indicates described electronic equipment to perform following process: the panoramic picture obtaining described electronic equipment current place scene.
It should be noted that, the mode producing described first triggering command in the embodiment of the present invention is not limited only to above act, and in practical application, any instruction triggers mode be applicable in electronic equipment all should belong to the protection range of the embodiment of the present invention.
Wherein, control unit 30 controls image acquisition units 10 and rotates, and gathers to obtain the specific implementation that N opens image and can have multiple in the process that image acquisition units 10 rotates.And the rotational steps of described image acquisition units 10 can preset, such as: user wishes the panoramic picture of acquisition 360 degree, then the rotational steps presetting described image acquisition units 10 is 360 degree; Again such as: user wishes the panoramic picture of acquisition 180 degree, then the rotational steps presetting described image acquisition units 10 is 180 degree; Etc..If the pan-shot of non-360 degree, so after shooting completes, described control unit 30 controls the rotation of described image acquisition units 10 and gets back to initial position.
As a preferred embodiment of the present invention, control unit 30 specifically for, the W1 position residing for described image acquisition units 10 obtains Q and opens image; Open image acquisition units 10 described in image control based on described Q and rotate K degree, described K degree is less than 360 degree; W2 position residing after described image acquisition units 10 rotates described K degree obtains Q+1 and opens image;
Wherein, described W1 position is the last position of described W2 position, and it is last the image that described Q+1 opens image that described Q opens image.
Describedly open image acquisition units 10 described in image control based on Q and rotate K degree, specifically comprise:
If described image acquisition units 10 is to turn clockwise, then be calculated as reach described image acquisition units view-finder in the left margin of image and the described Q right margin of opening image fit together perfectly in picture material, the number of degrees K that described image acquisition units 10 need turn clockwise on the basis of W1 position, and control described image acquisition units 10 according to calculating gained number of degrees K and to turn clockwise on the basis of W1 position K degree, after rotating K degree, described image acquisition units 10 is in described W2 position;
If described image acquisition units 10 is to be rotated counterclockwise, then be calculated as reach described image acquisition units view-finder in the right margin of image and the described Q left margin of opening image fit together perfectly in picture material, the number of degrees K that described image acquisition units 10 need be rotated counterclockwise on the basis of W1 position, and control described image acquisition units 10 according to calculating gained number of degrees K on the basis of W1 position, be rotated counterclockwise K degree, after rotating K degree, described image acquisition units 10 is in described W2 position.
As a preferred embodiment of the present invention, described control unit 30 specifically for, the W1 position residing for described image acquisition units 10 obtains Q and opens image; Control described image acquisition units 10 to rotate and real-time image acquisition; Open image acquisition units 10 described in image control based on described Q to obtain Q+1 in the W2 position rotating K degree and open image, described K degree is less than 360 degree;
Wherein, described W1 position is the last position of described W2 position, and it is last the image that described Q+1 opens image that described Q opens image.
Describedly open the W2 position residing after rotating K degree of image acquisition units described in image control based on Q and obtain Q+1 and open image, specifically comprise:
If described image acquisition units 10 is to turn clockwise, then to turn clockwise based on W1 position and in the process of real-time image acquisition in described image acquisition units 10, whether overlap with the picture material that described Q opens the right margin of image with the picture material of the left margin of the view-finder of the more described image acquisition units of preset frequency 10, and obtain Q+1 in the W2 position of described coincidence and open image;
If described image acquisition units 10 is to be rotated counterclockwise, then be rotated counterclockwise in the process of also real-time image acquisition in described image acquisition units 10 based on W1 position, whether overlap with the picture material that described Q opens the left margin of image with the picture material of the right margin of the view-finder of the more described image acquisition units of preset frequency 10, and obtain Q+1 in the W2 position of described coincidence and open image.
As a preferred embodiment of the present invention, described image acquisition units 10 can be stretched,
Described control unit 30 also for, obtain the primary importance of described electronic equipment in vertical space in the T1 moment; The second place of described electronic equipment in vertical space is obtained in the T2 moment, when the described second place is different from described primary importance, according to the change of the described second place relative to primary importance, control described image acquisition units 10 to stretch, ensure that described image acquisition units 10 gathers image on same datum line; Wherein, the described T1 moment is the previous moment in described T2 moment.
Concrete, if the described second place has been moved on primary importance is in vertical space, then control described image acquisition units 10 to retract in electronic equipment, gather image to ensure that described image acquisition units 10 was positioned on same datum line in T1 moment and T2 moment;
If the described second place has moved down in vertical space relative to primary importance, then control described image acquisition units 10 from electronic equipment much more protruding, gather image to ensure that described image acquisition units 10 was positioned on same datum line in T1 moment and T2 moment.
As a preferred embodiment of the present invention, described electronic equipment also comprises: pattern storage unit 50, arranges for the pattern of preserving described electronic equipment, and described electronic equipment comprises M can establish pattern;
Described control unit 30, when the pattern that described pattern storage unit 50 is preserved is set to panning mode, can respond described first triggering command.
As a preferred embodiment of the present invention, a described M pattern comprises facial mode of priority,
Described control unit 30 is further used for, and when the pattern that described pattern storage unit 50 is preserved is set to facial mode of priority, controls described image acquisition units 10 and rotates; Described image acquisition units 10 gather in the process of image obtain facial characteristics meet predetermined condition time, control described image acquisition units 10 and be parked in the corresponding position that described facial characteristics meets predetermined condition.Described predetermined condition can be, described facial characteristics is positioned at the specific region of the view-finder of described image acquisition units, and certainly, the embodiment of the present invention does not do too much restriction to described predetermined condition, and this is pre-conditioned can expand according to actual needs.
As a preferred embodiment of the present invention, described image acquisition units 10 is located in the built-in space of described electronic equipment sidepiece.Certainly; the image acquisition units 10 of the embodiment of the present invention is not limited only to be located at described electronic equipment sidepiece; other any feasible positions on electronic equipment, as long as can realize the same goal of the invention of the embodiment of the present invention, all should belong to the protection range of the embodiment of the present invention.
It should be noted that, in the electronic equipment of the invention described above embodiment, image acquisition units 10 can be realized by camera, and instruction obtains unit 20, control unit 30, graphics processing unit 40 and pattern storage unit 50 and can be realized by CPU.
In sum, the image acquisition units of the embodiment of the present invention can rotating 360 degrees, and gathers multiple images in the process that can rotate in described image acquisition units, and with multiple Computer image genration one panoramic pictures described.The embodiment of the present invention achieves easily a kind of and electronic equipment that effect is better 360 degree of panoramic pictures shootings; 360 degree of pan-shots rotated, shooting angle is more flexibly freely; 360 degree of image acquisition units rotated can use as preposition image acquisition units, namely the image acquisition units rotated by 360 degree achieves the dual-use function of preposition and rearmounted image acquisition units, and eliminating prior art needs for electronic equipment configures the trouble of preposition and rearmounted image acquisition units respectively; The image acquisition units of the embodiment of the present invention, as preposition use, can realize autodyning and the function such as video calling, and can provide the image quality than image acquisition units preposition in prior art more high-quality.
The above, be only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.

Claims (14)

1. obtain a method for image, described method is applied in electronic equipment, it is characterized in that, described electronic equipment comprises image acquisition units, and described image acquisition units can rotating 360 degrees, and the method comprises:
Obtain the first triggering command, described first triggering command obtains the panoramic picture of described electronic equipment current place scene for characterizing;
Respond described first triggering command, control described image acquisition units and rotate, in the process that described image acquisition units rotates, gather acquisition N open image;
Computer image genration one panoramic picture is opened with described N.
2. obtain the method for image according to claim 1, it is characterized in that, the described image acquisition units of described control rotates, and gathers acquisition N and opens image, comprising in the process that described image acquisition units rotates:
W1 position residing for described image acquisition units obtains Q and opens image;
Open image acquisition units described in image control based on described Q and rotate K degree, described K degree is less than 360 degree;
W2 position residing after described image acquisition units rotates described K degree obtains Q+1 and opens image;
Wherein, described W1 position is the last position of described W2 position, and it is last the image that described Q+1 opens image that described Q opens image.
3. obtain the method for image according to claim 1, it is characterized in that, the described image acquisition units of described control rotates, and gathers acquisition N and opens image, comprising in the process that described image acquisition units rotates:
W1 position residing for described image acquisition units obtains Q and opens image;
Control described image acquisition units to rotate and real-time image acquisition;
Open the W2 position residing after rotating K degree of image acquisition units described in image control based on described Q to obtain Q+1 and open image, described K degree is less than 360 degree;
Wherein, described W1 position is the last position of described W2 position, and it is last the image that described Q+1 opens image that described Q opens image.
4. obtain the method for image according to claim 1, it is characterized in that, described image acquisition units can be stretched, and the described image acquisition units of described control rotates and comprises:
The primary importance of described electronic equipment in vertical space is obtained in the T1 moment;
The second place of described electronic equipment in vertical space is obtained in the T2 moment, when the described second place is different from described primary importance, according to the change of the described second place relative to primary importance, control described image acquisition units to stretch, ensure that described image acquisition units gathers image on same datum line;
Wherein, the described T1 moment is the previous moment in described T2 moment.
5. obtain the method for image according to claim 1, it is characterized in that, described electronic equipment comprises M can establish pattern, and when described electronic equipment is in panning mode, described electronic equipment can respond described first triggering command.
6. obtain the method for image according to claim 5, it is characterized in that, a described M pattern comprises facial mode of priority, and described method also comprises:
When described electronic equipment is in described facial mode of priority, controls described image acquisition units and rotate; Gather image process in obtain facial characteristics meet predetermined condition time, control described image acquisition units and be parked in the corresponding position that described facial characteristics meets predetermined condition.
7. according to any one of claim 1 to 6, obtain the method for image, it is characterized in that, described image acquisition units is located in the built-in space of described electronic equipment sidepiece.
8. an electronic equipment, is characterized in that, comprising:
Image acquisition units, for gathering image, described image acquisition units can rotating 360 degrees;
Instruction obtains unit, and for obtaining the first triggering command, described first triggering command obtains the panoramic picture of described electronic equipment current place scene for characterizing;
Control unit, for responding described first triggering command, controlling described image acquisition units and rotating, obtaining N and open image in the process that described image acquisition units rotates;
Graphics processing unit, for opening Computer image genration one panoramic picture with described N.
9. electronic equipment according to claim 8, is characterized in that, described control unit specifically for, the W1 position residing for described image acquisition units obtains Q and opens image; Open image acquisition units described in image control based on described Q and rotate K degree, described K degree is less than 360 degree; W2 position residing after described image acquisition units rotates described K degree obtains Q+1 and opens image;
Wherein, described W1 position is the last position of described W2 position, and it is last the image that described Q+1 opens image that described Q opens image.
10. electronic equipment according to claim 8, is characterized in that, described control unit specifically for, the W1 position residing for described image acquisition units obtains Q and opens image; Control described image acquisition units to rotate and real-time image acquisition; Open image acquisition units described in image control based on described Q to obtain Q+1 in the W2 position rotating K degree and open image, described K degree is less than 360 degree;
Wherein, described W1 position is the last position of described W2 position, and it is last the image that described Q+1 opens image that described Q opens image.
11. electronic equipments according to claim 8, it is characterized in that, described image acquisition units can be stretched,
Described control unit also for, obtain the primary importance of described electronic equipment in vertical space in the T1 moment; The second place of described electronic equipment in vertical space is obtained in the T2 moment, when the described second place is different from described primary importance, according to the change of the described second place relative to primary importance, control described image acquisition units to stretch, ensure that described image acquisition units gathers image on same datum line;
Wherein, the described T1 moment is the previous moment in described T2 moment.
12. electronic equipments according to claim 8, it is characterized in that, described electronic equipment also comprises: pattern storage unit, arranges for the pattern of preserving described electronic equipment, and described electronic equipment comprises M can establish pattern;
Described control unit, when the pattern that described pattern storage unit is preserved is set to panning mode, can respond described first triggering command.
13., according to electronic equipment described in claim 12, is characterized in that, a described M pattern comprises facial mode of priority,
Described control unit is further used for, and when the pattern that described pattern storage unit is preserved is set to facial mode of priority, controls described image acquisition units and rotates; Described image acquisition units gather in the process of image obtain facial characteristics meet predetermined condition time, control described image acquisition units and be parked in the corresponding position that described facial characteristics meets predetermined condition.
Electronic equipment described in 14. any one of according to Claim 8 to 13, it is characterized in that, described image acquisition units is located in the built-in space of described electronic equipment sidepiece.
CN201310356927.4A 2013-08-15 2013-08-15 A kind of method and electronic equipment obtaining image Active CN104378544B (en)

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 true CN104378544A (en) 2015-02-25
CN104378544B 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)

Cited By (5)

* Cited by examiner, † Cited by third party
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
CN105657257A (en) * 2015-12-29 2016-06-08 广东欧珀移动通信有限公司 Method, device and system for taking panoramic photo, mobile terminal and selfie stick
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
CN110291777A (en) * 2018-04-09 2019-09-27 深圳市大疆创新科技有限公司 Image-pickup method, equipment and machine readable storage medium

Citations (9)

* Cited by examiner, † Cited by third party
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
US20080180522A1 (en) * 2007-01-30 2008-07-31 Samsung Electronics Co., Ltd. Image processing method and apparatus
CN201607607U (en) * 2010-01-29 2010-10-13 于辉 Panoramic view imager
JP2010256534A (en) * 2009-04-23 2010-11-11 Fujifilm Corp Head-mounted display for omnidirectional image display
CN102833475A (en) * 2012-08-17 2012-12-19 歌尔声学股份有限公司 Camera for terminal equipment and implementation method of camera for terminal equipment
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
CN103176347A (en) * 2011-12-22 2013-06-26 百度在线网络技术(北京)有限公司 Method and device for shooting panorama and electronic device

Patent Citations (9)

* Cited by examiner, † Cited by third party
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
US20080180522A1 (en) * 2007-01-30 2008-07-31 Samsung Electronics Co., Ltd. Image processing method and apparatus
CN201054660Y (en) * 2007-02-15 2008-04-30 联想(北京)有限公司 Camera device
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
CN103176347A (en) * 2011-12-22 2013-06-26 百度在线网络技术(北京)有限公司 Method and device for shooting panorama and electronic device
CN202696798U (en) * 2012-07-20 2013-01-23 西安英诺视通信息技术有限公司 Intelligent remote measuring device for dual-channel ultrahigh-definition power transmission line
CN102833475A (en) * 2012-08-17 2012-12-19 歌尔声学股份有限公司 Camera for terminal equipment and implementation method of camera for terminal equipment
CN102902485A (en) * 2012-10-25 2013-01-30 北京华达诺科技有限公司 360-degree panoramic multi-point touch display platform establishment method

Cited By (10)

* Cited by examiner, † Cited by third party
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
CN105657257A (en) * 2015-12-29 2016-06-08 广东欧珀移动通信有限公司 Method, device and system for taking panoramic photo, mobile terminal and selfie stick
CN105657257B (en) * 2015-12-29 2018-07-17 广东欧珀移动通信有限公司 Image pickup method, device, system, mobile terminal and the self-shooting bar of distant view photograph
CN110291777A (en) * 2018-04-09 2019-09-27 深圳市大疆创新科技有限公司 Image-pickup method, equipment and machine readable storage medium
WO2019195990A1 (en) * 2018-04-09 2019-10-17 深圳市大疆创新科技有限公司 Image collection method and device, and machine readable storage medium
CN113645410A (en) * 2018-04-09 2021-11-12 深圳市大疆创新科技有限公司 Image acquisition method, device and machine-readable storage medium
CN113645410B (en) * 2018-04-09 2024-02-13 深圳市大疆创新科技有限公司 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
WO2020088317A1 (en) * 2018-10-31 2020-05-07 维沃移动通信有限公司 Photographing method and electronic device
CN109639975A (en) * 2018-12-24 2019-04-16 维沃移动通信有限公司 A kind of filming control method and mobile terminal

Also Published As

Publication number Publication date
CN104378544B (en) 2018-12-14

Similar Documents

Publication Publication Date Title
CN103873758B (en) The method, apparatus and equipment that panorama sketch generates in real time
WO2020107266A1 (en) Handheld gimbal and photographing control method thereof
CN104378544A (en) Method for obtaining image and electronic device
CN105100615A (en) Image preview method, apparatus and terminal
WO2014071840A1 (en) Method and device for taking photo and video
US20210051273A1 (en) Photographing control method, device, apparatus and storage medium
WO2017113504A1 (en) Image displaying method and device
US10951879B2 (en) Method, system and apparatus for capture of image data for free viewpoint video
WO2013155804A1 (en) Photograph shooting method and electronic device
WO2019214574A1 (en) Image capturing method and apparatus, and electronic terminal
CN110785990A (en) Video shooting method and device and control equipment
TWI640197B (en) System and method for making picture
CN113875220B (en) Shooting anti-shake method, shooting anti-shake device, terminal and storage medium
CN111935408B (en) Panoramic image shooting method and system, electronic device and readable storage medium
WO2023103953A1 (en) Photographing method and device
CN105959534B (en) Image processing method, device and electronic equipment
WO2023030223A1 (en) Photographing method and apparatus, and electronic device
CN110225243A (en) Filming control method, device, storage medium and mobile terminal based on Folding screen
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
CN108683847B (en) Photographing method, device, terminal and storage medium
WO2022041013A1 (en) Control method, handheld gimbal, system, and computer readable storage medium
JP2016096482A (en) Image processing apparatus, image processing method, and program
CN112640420B (en) Control method, device, equipment and system of electronic device
WO2021258249A1 (en) Image acquisition method, and electronic device, and mobile 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
GR01 Patent grant
GR01 Patent grant