CN107809594B - A kind of image pickup method and mobile terminal - Google Patents
A kind of image pickup method and mobile terminal Download PDFInfo
- Publication number
- CN107809594B CN107809594B CN201711118188.XA CN201711118188A CN107809594B CN 107809594 B CN107809594 B CN 107809594B CN 201711118188 A CN201711118188 A CN 201711118188A CN 107809594 B CN107809594 B CN 107809594B
- Authority
- CN
- China
- Prior art keywords
- image
- mobile terminal
- tilt angle
- target area
- initial pictures
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/80—Camera processing pipelines; Components thereof
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
Abstract
The present invention provides a kind of image pickup method and mobile terminal, this method comprises: obtaining initial pictures by the camera collection image of the mobile terminal;Obtain mobile terminal tilt angle with respect to the horizontal plane and inclined direction;If the tilt angle is greater than zero, according to the tilt angle, the target image of target area is extracted in the initial pictures, wherein the shape of the target area is identical as the shape of the mobile terminal screen;The target image is rotated into the tilt angle according to the inclined direction, obtains output image.Image pickup method provided by the invention can make the image shot under heeling condition keep horizontal view angle, and then obtain preferable shooting effect.
Description
Technical field
The present invention relates to field of communication technology more particularly to a kind of image pickup methods and mobile terminal.
Background technique
With being constantly progressive for technique for taking and becoming increasingly popular for mobile terminal, people can utilize movement whenever and wherever possible
Terminal carries out the shooting of various occasions.But it when shooting, is presented after shooting if user holds mobile terminal and is in heeling condition
Image be also inclined, in this way, needing to tilt mobile terminal corresponding angle just when image after user checks shooting
The content of shooting can preferably be appreciated.In the prior art, it can be carried out at the later period by image of the image processing software to shooting
It manages to make the image of shooting keep horizontal view angle, but this mode needs user to be manually operated, it is not easy enough.
As it can be seen that image pickup method used by existing mobile terminal has that shooting effect is poor.
Summary of the invention
The embodiment of the present invention provides a kind of image pickup method and mobile terminal, to solve shooting used by existing mobile terminal
Method has that shooting effect is poor.
In order to solve the above technical problems, the present invention is implemented as follows:
In a first aspect, being applied to mobile terminal the embodiment of the invention provides a kind of image pickup method, which comprises
By the camera collection image of the mobile terminal, initial pictures are obtained;
Obtain mobile terminal tilt angle with respect to the horizontal plane and inclined direction;
If the tilt angle is greater than zero, according to the tilt angle, target area is extracted in the initial pictures
Target image, wherein the shape of the target area is identical as the shape of the mobile terminal screen;
The target image is rotated into the tilt angle according to the inclined direction, obtains output image.
Second aspect, the embodiment of the present invention provide a kind of mobile terminal, comprising:
Acquisition module obtains initial pictures for the camera collection image by the mobile terminal;
Module is obtained, for obtaining mobile terminal tilt angle with respect to the horizontal plane and inclined direction;
Extraction module, if being greater than zero for the tilt angle, according to the tilt angle, in the initial pictures
Extract the target image of target area, wherein the shape of the target area is identical as the shape of the mobile terminal screen;
Rotary module is exported for the target image to be rotated the tilt angle according to the inclined direction
Image.
The third aspect, the embodiment of the present invention provide a kind of mobile terminal, including processor, memory and are stored in described deposit
On reservoir and the computer program that can run on the processor, the computer program are realized when being executed by the processor
Step in above-mentioned image pickup method.
Fourth aspect, the embodiment of the present invention provide a kind of computer readable storage medium, the computer-readable storage medium
Computer program is stored in matter, the computer program realizes the step in above-mentioned image pickup method when being executed by processor.
In the embodiment of the present invention, the mobile terminal can obtain itself tilt angle and inclined direction when shooting,
Then the target image of shooting is determined according to the tilt angle, and the target image is rotated into institute according to the inclined direction
Tilt angle is stated, output image is obtained, so as to make the image shot under heeling condition keep horizontal view angle, and then is obtained preferable
Shooting effect.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, needed in being described below to the embodiment of the present invention
Attached drawing to be used is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention,
For those of ordinary skill in the art, without any creative labor, it can also obtain according to these attached drawings
Obtain other attached drawings.
Fig. 1 is a kind of flow chart of image pickup method provided in an embodiment of the present invention;
The mesh that Fig. 2 a is a kind of mobile terminal provided in an embodiment of the present invention to be shot in 45 degree of the state of being tilted to the right
The position view of logo image;
Fig. 2 b is before a kind of mobile terminal provided in an embodiment of the present invention rear target image in a vertical state does not rotate
Position view;
Fig. 2 c is that target image rotates to the right 45 after a kind of mobile terminal provided in an embodiment of the present invention is in a vertical state
Position view after degree;
Fig. 3 is the flow chart of another image pickup method provided in an embodiment of the present invention;
Fig. 4 is the schematic diagram of a kind of initial pictures and target area provided in an embodiment of the present invention;
Fig. 5 is a kind of schematic illustration of determining target area provided in an embodiment of the present invention;
Fig. 6 is to show that shooting prompting frame and target image show in a kind of shooting preview interface provided in an embodiment of the present invention
It is intended to;
Fig. 7 is the flow chart of another image pickup method provided in an embodiment of the present invention;
Fig. 8 is a kind of structural schematic diagram of photosensitive element provided in an embodiment of the present invention;
Fig. 9 is another schematic illustration for determining target area provided in an embodiment of the present invention;
Figure 10 is a kind of structure chart of mobile terminal provided in an embodiment of the present invention;
Figure 11 is the structure chart of another mobile terminal provided in an embodiment of the present invention;
Figure 12 is the structure chart of another mobile terminal provided in an embodiment of the present invention;
Figure 13 is a kind of hardware structure diagram of mobile terminal provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
It is a kind of flow chart of image pickup method provided in an embodiment of the present invention referring to Fig. 1, Fig. 1, is applied to mobile terminal, such as
Shown in Fig. 1, comprising the following steps:
Step 101, by the camera collection image of the mobile terminal, obtain initial pictures.
In the step, above-mentioned initial pictures can be understood as the collected complete figure of camera of the mobile terminal
Picture, in general, photosensitive element used by the camera is square structure, thus the collected initial pictures of the camera
Shape is also rectangular, but photosensitive element used by the camera may be designed in circular configuration, in this way, the camera shooting
The shape of collected initial pictures is also circular.
In the step, by the camera collection image of the mobile terminal, initial pictures can be obtained when shooting,
It is corresponding with the tilt angle of the mobile terminal in the initial pictures so as to determine on the basis of the initial pictures
Target area.
Step 102 obtains mobile terminal tilt angle with respect to the horizontal plane and inclined direction.
In the step, the tilt angle and inclined direction of the available mobile terminal, to obtain the mobile terminal
Specific heeling condition, such as: mobile terminal is generally built-in with gyroscope at present, and gyroscope is called angular-rate sensor, lead to
Crossing gyroscope can detecte rotational angular velocity and the direction of the mobile terminal, thus can be according to the angle of rotation speed that detection obtains
Degree and direction, are calculated the tilt angle and inclined direction of the mobile terminal.Wherein, the tilt angle and inclined direction
For mobile terminal tilt angle with respect to the horizontal plane and inclined direction, such as: when user holds the mobile terminal picture
Be tilted to the left 30 degree when, available 30 degree of tilt angle to the mobile terminal, inclined direction is left direction.
In this way, in the step, by obtaining the tilt angle and inclined direction of the mobile terminal, so as to according to institute
Tilt angle is stated, the target image in target area extracted needed for being determined in the initial pictures, and can be according to described
Tilt angle and inclined direction do corresponding rotation processing to the target image of extraction, to obtain the target image of horizontal view angle.
If step 103, the tilt angle are greater than zero, according to the tilt angle, extracted in the initial pictures
The target image of target area, wherein the shape of the target area is identical as the shape of the mobile terminal screen.
In the step, if the tilt angle of the mobile terminal is greater than zero, i.e., when the described mobile terminal is in heeling condition,
Then can be according to the tilt angle, the target image that target area is extracted in the initial pictures specifically can be elder generation
According to the tilt angle, determine the target area in the initial pictures, and guarantee the shape of the target area with it is described
The shape of screen is identical, it can the shape for determining the target area is rectangle, then extracts position in the initial pictures again
In the image in the target area as the target image, the target image is the figure being shown on the screen
Picture, wherein the specific size of the target area is associated with the shape of the initial pictures, such as: if described initial
Image be it is rectangular, then the target area can be the rectangular area of the level orientation intercepted from the initial pictures;If institute
State initial pictures for circle, then the target area can be intercepted from the initial pictures with locating for the mobile terminal
Orientation it is consistent, and with the consistent rectangular area of the size of the mobile terminal.
It, can be when the tilt angle be greater than zero, according to the tilt angle, in the initial pictures in the step
The target image for extracting target area, may thereby determine that the specific picture material of the mobile terminal final output, and energy
Guarantee that the shape of the image of final output is consistent with the shape of the screen.
The target image is rotated the tilt angle according to the inclined direction by step 104, obtains output image.
Above-mentioned output image can be understood as the target image rotating the tilt angle according to the inclined direction
The image obtained afterwards, i.e., the middle method provided carries out the image exported after image procossing through the embodiment of the present invention.The step
In, by the way that the target image is rotated the tilt angle according to the inclined direction, it is ensured that the mobile terminal exists
The image shot under heeling condition keeps horizontal view angle, so that user in the photo for checking shooting, is not necessarily to the shifting
Dynamic terminal inclination, can appreciate captured photo just with horizontal view angle.
Such as: Fig. 2 a be mobile terminal 200 be tilted to the right 45 degree in the state of the position of target image 201 that shoots
Set schematic diagram, Fig. 2 b is the position view before the target image 201 does not rotate after mobile terminal 200 is in a vertical state, figure
2c is that target image 201 rotates to the right the position view after 45 degree after mobile terminal 200 is in a vertical state.As it can be seen that described
The target image that mobile terminal is shot in an inclined state can still keep horizontal view after correspondingly rotation processing
Angle.
Therefore, it in the step, by the way that the target image is rotated the tilt angle according to the inclined direction, obtains
Image is exported, to can guarantee that the image that the mobile terminal is shot in an inclined state is still able to maintain horizontal view angle, and then is obtained
Obtain preferable shooting effect.
In the embodiment of the present invention, above-mentioned mobile terminal can be any equipment with storaging medium, such as: computer
(Computer), mobile phone, tablet computer (Tablet Personal Computer), laptop computer (Laptop
Computer), personal digital assistant (personal digital assistant, abbreviation PDA), mobile Internet access device
The terminal devices such as (Mobile Internet Device, abbreviation MID) or wearable device (Wearable Device).
Image pickup method in the present embodiment, the mobile terminal can when shooting, obtain the tilt angle of itself and incline
Then tilted direction determines the target image of shooting according to the tilt angle, and by the target image according to the inclination side
To the tilt angle is rotated, output image is obtained, so as to make the image shot under heeling condition keep horizontal view angle, in turn
Obtain preferable shooting effect.
It is the flow chart of another image pickup method provided in an embodiment of the present invention referring to Fig. 3, Fig. 3, is applied to mobile terminal,
As shown in Figure 3, comprising the following steps:
Step 301, by the camera collection image of the mobile terminal, obtain initial pictures.
The specific embodiment of the step may refer to the embodiment of step 101 in embodiment of the method shown in FIG. 1, and
Identical beneficial effect can be reached, to avoid repeating, which is not described herein again.
Step 302 obtains mobile terminal tilt angle with respect to the horizontal plane and inclined direction.
The specific embodiment of the step may refer to the embodiment of step 102 in embodiment of the method shown in FIG. 1, and
Identical beneficial effect can be reached, to avoid repeating, which is not described herein again.
If step 303, the tilt angle are greater than zero, according to the tilt angle, determined in the initial pictures
The target area that central point is overlapped with the central point of the screen, and extract in the initial pictures mesh of the target area
Logo image, wherein the size of the initial pictures is identical as the size of the screen, a line and level of the target area
Direction is parallel.
It, can be according to the tilt angle, in the initial pictures if the tilt angle is greater than zero in the present embodiment
The target area that middle determining central point is overlapped with the central point of the screen, wherein the size of the initial pictures and the screen
Curtain size be it is identical, a line of the target area is parallel with horizontal direction.Such as: as shown in figure 4, initial graph
As 401 is rectangular, size is identical with the size of the screen, according in the target area 402 of tilt angle determination
Heart point is overlapped with the central point of the screen, and the target area 402 is rectangular area, and its a line and horizontal direction are flat
Row.
Specifically, the size of the target area, which can be, shows ratio according to the tilt angle and preset picture
Example determines, wherein the preset picture display scale can be system default setting, be also possible to the customized setting of user
, such as 16:9 or 4:3;Such as: as shown in figure 5, Fig. 5 is to be determined according to the tilt angle and preset picture display scale
The schematic illustration of target area, if the tilt angle of the mobile terminal is α, preset picture display scale is n:m, described
The side length AB of initial pictures 501 is x, according to the picture display scale can determine the side length EF of the target area 502 with
The angle δ of diagonal line EG is equal to arctan (m/n), and then can determine the side length BC of diagonal line EG Yu the initial pictures 501
Angle be equal to α+δ, finally according to right angled triangle EGP, the length that can calculate diagonal line EG is equal to x/tan (180- α-δ), this
Sample, in the cornerwise length for calculating the target area 502 and then central point and institute by the target area 502
The central point for stating screen is overlapped, and the target area 502 a line is long and horizontal direction parallel, can finally determine described in
Position and size of the target area 502 in the initial pictures 501.
In addition, the size of the target area is also possible to the size according to preset tilt angle and target area
The corresponding relationship of size determines, in this way, can determine the size of the target area, then root according to the tilt angle
It is overlapped according to the central point of the target area with the central point of the screen, and a line and horizontal direction of the target area
Parallel information can finally determine position and size of the target area in the initial pictures.
In this way, in the step, if the tilt angle is greater than zero, according to the tilt angle, in the initial pictures
The target area that middle determining central point is overlapped with the central point of the screen, and the target area is extracted in the initial pictures
The target image in domain, may thereby determine that the specific picture material of the mobile terminal final output, and can guarantee final defeated
Image out is the image of the center in the initial pictures, to obtain preferable shooting effect.
Optionally, after step 303, before step 304, the method also includes:
Image preview area corresponding with the target area is determined in shooting preview interface, and in the shooting preview
Display is used to indicate the shooting prompting frame of the profile of described image preview area on interface;
Wherein, described image preview area and the azimuth dimension of the target area are all the same, described image preview area
Show the target image.
In the embodiment, image preview corresponding with target area area can be determined in shooting preview interface
Domain, wherein described image preview area and the azimuth dimension of the target area are all the same, i.e., described image preview area also with
Horizontal direction parallel, and its size is identical as the size of the target area, in this way, being mentioned from the initial pictures
The target image taken may be displayed on described image preview area, so that mobile terminal described in user's preview is in heeling condition
The picture material of lower shooting, and the region in the shooting preview interface in addition to described image preview area does not show image.
In addition, can also be shown in the shooting preview interface in the embodiment and be used to indicate described image preview
The shooting prompting frame of the profile in region, such as: the shooting prompting frame 601 can be as shown in fig. 6, i.e. in described image preview
Four angles in region show a round parentheses respectively, are used to indicate the profile of described image preview area, the shooting prompting frame
The display target image 602 in 601, and shown outside the shooting prompting frame 601 for blank.
In this way, in the embodiment, by determining that image corresponding with the target area is pre- in shooting preview interface
Look at region, and display is used to indicate the shooting prompting frame of the profile of described image preview area in the shooting preview interface,
Can prompt the image in user's shooting prompting frame is the image of final output, so that user can be according to the shooting prompting frame
Shooting distance is adjusted, so that the object of shooting is in the shooting prompting frame.
The target image is rotated the tilt angle according to the inclined direction by step 304, obtains output image.
The specific embodiment of the step may refer to the embodiment of step 104 in embodiment of the method shown in FIG. 1, and
Identical beneficial effect can be reached, to avoid repeating, which is not described herein again.
Optionally, after step 304, the method also includes:
Processing is amplified to the output image, so that the size of the amplified output image and the movement are eventually
Hold the size of the image shot under vertical state consistent.
In the embodiment, after rotating the target image and obtaining the output image, the output can also be schemed
As amplifying processing, specifically, can be the size adjusting of the output image is the mobile terminal in tilt angle
The size of the image shot in the state of being zero, in general, the mobile terminal is in the state that tilt angle is zero (as erected
Under straight state) the obtained size of image of shooting is larger, entire screen can be generally taken, but since the output image is in institute
The image in the partial region extracted in initial pictures is stated, thus the size of the output image is less than the mobile terminal and exists
Therefore the size for the image that tilt angle is shot in the state of being zero in the embodiment, can scheme the output
As amplifying processing.
In this way, in the embodiment, by amplifying processing to the output image, the amplified output can be made
The size of image is consistent with the size for the image that the mobile terminal is shot under vertical state, so as to make heeling condition
The lower obtained image that shoots also is able to maintain larger size, and user is facilitated to check.
In the present embodiment, on the basis of embodiment shown in Fig. 1, to described according to the tilt angle, described first
The step of target image in beginning extracting target from images region, is refined, so that how to determine the implementation of target area
Mode becomes more fully apparent specifically.In addition, also adding plurality of optional on the basis of the present embodiment embodiment shown in Fig. 1
Embodiment, these optional embodiments can be combined with each other realization, can also be implemented separately, and can obtain preferable bat
Take the photograph effect.
It is the flow chart of another image pickup method provided in an embodiment of the present invention referring to Fig. 7, Fig. 7, is applied to mobile terminal,
As shown in fig. 7, comprises following steps:
Step 701, by the camera collection image of the mobile terminal, obtain initial pictures, wherein the camera
The structure of used photosensitive element is circular configuration, and the initial pictures are circular image.
In general, the structure of photosensitive element used by the camera is square structure, and in the present embodiment, it is taken the photograph described
The photosensitive element as used by head is designed to circular configuration, such as: the structure of the photosensitive element 800 can with as shown in figure 8, from
It and is also circular image by the collected initial pictures of the camera of the mobile terminal.In this way, using photosensitive element for circle
The camera of shape structure the areas of collected initial pictures will be greater than using photosensitive element for the camera of square structure institute
The area of collected initial pictures, so that the area of the target area determined in the initial pictures is also larger, correspondingly
The area of the image of final output is also larger, and then can get better shooting effect.
Above by the camera collection image of the mobile terminal, the specific embodiment for the step of obtaining initial pictures
It may refer to the related embodiment of step 101 in embodiment of the method shown in FIG. 1, and identical beneficial effect can be reached, be
It avoids repeating, which is not described herein again.
Step 702 obtains mobile terminal tilt angle with respect to the horizontal plane and inclined direction.
The specific embodiment of the step may refer to the embodiment of step 102 in embodiment of the method shown in FIG. 1, and
Identical beneficial effect can be reached, to avoid repeating, which is not described herein again.
If step 703, the tilt angle are greater than zero, according to the tilt angle, determined in the initial pictures
Size target area identical with the size of the screen, and extract in the initial pictures target figure of the target area
Picture, wherein the angle of the target area and horizontal direction is equal to the tilt angle.
It, can be according to the tilt angle, in the initial pictures if the tilt angle is greater than zero in the step
Determine size target area identical with the size of the screen, and the angle of the target area and horizontal direction is equal to described
Tilt angle.Such as: as shown in figure 9, the initial pictures 901 are circular image, if inclining of being tilted to the right of the mobile terminal
Rake angle is α, then according to the tilt angle and the size and shape of the screen, can determine the initial pictures 901
In black rectangle region be target area 902.
In this way, in the embodiment, if the tilt angle is greater than zero, according to the tilt angle, described initial
Size target area identical with the size of the screen is determined in image, and the target area is extracted in the initial pictures
The target image in domain may thereby determine that the specific picture material of the mobile terminal final output, and can get and the screen
The identical target image of size of curtain, without being amplified to postrotational target image, hereby it is ensured that the image of shooting
Have preferable quality, and then promotes user experience.
The target image is rotated the tilt angle according to the inclined direction by step 704, obtains output image.
The specific embodiment of the step may refer to the embodiment of step 104 in embodiment of the method shown in FIG. 1, and
Identical beneficial effect can be reached, to avoid repeating, which is not described herein again.
In the present embodiment, on the basis of embodiment shown in Fig. 1, the knot of photosensitive element used by camera is defined
Structure is circular configuration, and to according to the tilt angle, the step of the target image of target area is extracted in the initial pictures
Suddenly it is refined, so that how to determine that the embodiment of target area becomes more fully apparent specifically, the present embodiment is same
Preferable shooting effect can be obtained.
It is a kind of structure chart of mobile terminal provided in an embodiment of the present invention referring to Figure 10, Figure 10, it is as shown in Figure 10, mobile
Terminal 1000 includes:
Acquisition module 1001 obtains initial pictures for the camera collection image by the mobile terminal 1000;
Module 1002 is obtained, for obtaining the tilt angle of the mobile terminal 1000 with respect to the horizontal plane and inclination side
To;
Extraction module 1003, if being greater than zero for the tilt angle, according to the tilt angle, in the initial graph
The target image of target area is extracted as in, wherein the shape of the shape of the target area and 1000 screen of mobile terminal
Shape is identical;
Rotary module 1004 is obtained for the target image to be rotated the tilt angle according to the inclined direction
Export image.
Optionally, if the extraction module 1003 is greater than zero for the tilt angle, according to the tilt angle,
The target area that central point is overlapped with the central point of the screen is determined in the initial pictures, and is mentioned in the initial pictures
Take the target image of the target area, wherein the size of the initial pictures is identical as the size of the screen, the target
The a line and horizontal direction parallel in region.
Optionally, as shown in figure 11, the mobile terminal 1000 further include:
Display module 1005, for determining image preview corresponding with target area area in shooting preview interface
Domain, and display is used to indicate the shooting prompting frame of the profile of described image preview area in the shooting preview interface;
Wherein, described image preview area and the azimuth dimension of the target area are all the same, described image preview area
Show the target image.
Optionally, as shown in figure 12, the mobile terminal 1000 further include:
Amplification module 1006, for amplifying processing to the output image, so that the amplified output image
Size it is consistent with the size of image that the mobile terminal 1000 is shot under vertical state.
Optionally, the structure of photosensitive element used by the camera is circular configuration;
If the extraction module 1003 is greater than zero for the tilt angle, according to the tilt angle, described first
Size target area identical with the size of the screen is determined in beginning image, and the target is extracted in the initial pictures
The target image in region, wherein the initial pictures are circular image, and the angle of the target area and horizontal direction is equal to institute
State tilt angle.
Mobile terminal 1000 can be realized mobile terminal in Fig. 1, Fig. 3 and embodiment of the method shown in Fig. 7 realize it is each
Process, to avoid repeating, which is not described herein again.The mobile terminal 1000 of the embodiment of the present invention can obtain itself when shooting
Tilt angle and inclined direction, the target image of shooting is then determined according to the tilt angle, and by the target image
The tilt angle is rotated according to the inclined direction, obtains output image, so as to protect the image shot under heeling condition
Horizontal view angle is held, and then obtains preferable shooting effect.
A kind of hardware structure diagram of Figure 13 mobile terminal of each embodiment to realize the present invention, the mobile terminal 1300 packet
It includes but is not limited to: radio frequency unit 1301, network module 1302, audio output unit 1303, input unit 1304, sensor
1305, display unit 1306, user input unit 1307, interface unit 1308, memory 1309, processor 1310, Yi Ji electricity
The components such as source 1311.It will be understood by those skilled in the art that mobile terminal structure shown in Figure 13 is not constituted to mobile whole
The restriction at end, mobile terminal may include perhaps combining certain components or different portions than illustrating more or fewer components
Part arrangement.In embodiments of the present invention, mobile terminal includes but is not limited to mobile phone, tablet computer, laptop, palm electricity
Brain, car-mounted terminal, wearable device and pedometer etc..
Wherein, processor 1310 obtain initial pictures for the camera collection image by the mobile terminal;
Obtain mobile terminal tilt angle with respect to the horizontal plane and inclined direction;
If the tilt angle is greater than zero, according to the tilt angle, target area is extracted in the initial pictures
Target image, wherein the shape of the target area is identical as the shape of the mobile terminal screen;
The target image is rotated into the tilt angle according to the inclined direction, obtains output image.
Optionally, the processor 1310 is also used to:
According to the tilt angle, the mesh that central point is overlapped with the central point of the screen is determined in the initial pictures
Mark region, and extract in the initial pictures target image of the target area, wherein the size of the initial pictures with
The size of the screen is identical, a line and horizontal direction parallel of the target area.
Optionally, the processor 1310 is also used to:
Image preview area corresponding with the target area is determined in shooting preview interface, and in the shooting preview
Display is used to indicate the shooting prompting frame of the profile of described image preview area on interface;
Wherein, described image preview area and the azimuth dimension of the target area are all the same, described image preview area
Show the target image.
Optionally, the processor 1310 is also used to:
Processing is amplified to the output image, so that the size of the amplified output image and the movement are eventually
Hold the size of the image shot under vertical state consistent.
Optionally, the structure of photosensitive element used by the camera is circular configuration;
The processor 1310 is also used to:
According to the tilt angle, size target area identical with the size of the screen is determined in the initial pictures
Domain, and extract in the initial pictures target image of the target area, wherein the initial pictures are circular image,
The angle of the target area and horizontal direction is equal to the tilt angle.
Mobile terminal 1300 can be realized each process that mobile terminal is realized in previous embodiment, to avoid repeating, this
In repeat no more.The mobile terminal 1300 of the embodiment of the present invention can when shooting, obtain itself tilt angle and inclination side
To, the target image then shot according to tilt angle determination, and the target image is revolved according to the inclined direction
Turn the tilt angle, obtain output image, so as to make the image shot under heeling condition keep horizontal view angle, and then obtains
Preferable shooting effect.
It should be understood that the embodiment of the present invention in, radio frequency unit 1301 can be used for receiving and sending messages or communication process in, signal
Send and receive, specifically, by from base station downlink data receive after, to processor 1310 handle;In addition, by uplink
Data are sent to base station.In general, radio frequency unit 1301 includes but is not limited to antenna, at least one amplifier, transceiver, coupling
Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 1301 can also by wireless communication system and network and other
Equipment communication.
Mobile terminal provides wireless broadband internet by network module 1302 for user and accesses, and such as user is helped to receive
It sends e-mails, browse webpage and access streaming video etc..
Audio output unit 1303 can be received by radio frequency unit 1301 or network module 1302 or in memory
The audio data stored in 1309 is converted into audio signal and exports to be sound.Moreover, audio output unit 1303 can be with
Audio output relevant to the specific function that mobile terminal 1300 executes is provided (for example, call signal receives sound, message sink
Sound etc.).Audio output unit 1303 includes loudspeaker, buzzer and receiver etc..
Input unit 1304 is for receiving audio or video signal.Input unit 1304 may include graphics processor
(Graphics Processing Unit, abbreviation GPU) 13041 and microphone 13042, graphics processor 13041 is in video
The picture number of the static images or video that are obtained in acquisition mode or image capture mode by image capture apparatus (such as camera)
According to being handled.Treated, and picture frame may be displayed on display unit 1306.Through graphics processor 13041 treated figure
As frame can store in memory 1309 (or other storage mediums) or via radio frequency unit 1301 or network module 1302
It is sent.Microphone 13042 can receive sound, and can be audio data by such acoustic processing.Treated
Audio data can be converted in the case where telephone calling model to be sent to mobile communication base station via radio frequency unit 1301
Format output.
Mobile terminal 1300 further includes at least one sensor 1305, for example, optical sensor, motion sensor and other
Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ring
The light and shade of border light adjusts the brightness of display panel 13061, proximity sensor can when mobile terminal 1300 is moved in one's ear,
Close display panel 13061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions
The size of (generally three axis) acceleration, can detect that size and the direction of gravity, can be used to identify mobile terminal appearance when static
State (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion)
Deng;Sensor 1305 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, gas
Meter, hygrometer, thermometer, infrared sensor etc. are pressed, details are not described herein.
Display unit 1306 is for showing information input by user or being supplied to the information of user.Display unit 1306 can
Including display panel 13061, liquid crystal display (Liquid Crystal Display, abbreviation LCD), organic light emission can be used
The forms such as diode (Organic Light-Emitting Diode, abbreviation OLED) configure display panel 13061.
User input unit 1307 can be used for receiving the number or character information of input, and generate the use with mobile terminal
Family setting and the related key signals input of function control.Specifically, user input unit 1307 include touch panel 13071 with
And other input equipments 13072.Touch panel 13071, also referred to as touch screen collect the touch behaviour of user on it or nearby
Make (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 13071 or in touch panel
Operation near 13071).Touch panel 13071 may include both touch detecting apparatus and touch controller.Wherein, it touches
The touch orientation of detection device detection user is touched, and detects touch operation bring signal, transmits a signal to touch controller;
Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 1310,
It receives the order that processor 1310 is sent and is executed.Furthermore, it is possible to using resistance-type, condenser type, infrared ray and surface
The multiple types such as sound wave realize touch panel 13071.In addition to touch panel 13071, user input unit 1307 can also include
Other input equipments 13072.Specifically, other input equipments 13072 can include but is not limited to physical keyboard, function key (ratio
Such as volume control button, switch key), trace ball, mouse, operating stick, details are not described herein.
Further, touch panel 13071 can be covered on display panel 13061, when touch panel 13071 detects
After touch operation on or near it, processor 1310 is sent to determine the type of touch event, is followed by subsequent processing device 1310
Corresponding visual output is provided on display panel 13061 according to the type of touch event.Although in Figure 13, touch panel
13071 and display panel 13061 are the functions that outputs and inputs of realizing mobile terminal as two independent components, but
In some embodiments, touch panel 13071 can be integrated with display panel 13061 and realize outputting and inputting for mobile terminal
Function, specifically herein without limitation.
Interface unit 1308 is the interface that external device (ED) is connect with mobile terminal 1300.For example, external device (ED) may include
Wired or wireless headphone port, external power supply (or battery charger) port, wired or wireless data port, storage card
Port, port, the port audio input/output (I/O), video i/o port, earphone for connecting the device with identification module
Port etc..Interface unit 1308 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) simultaneously
And by one or more elements that the input received is transferred in mobile terminal 1300 or it can be used in mobile terminal
Data are transmitted between 1300 and external device (ED).
Memory 1309 can be used for storing software program and various data.Memory 1309 can mainly include storage program
Area and storage data area, wherein storing program area can application program needed for storage program area, at least one function (such as
Sound-playing function, image player function etc.) etc.;Storage data area, which can be stored, uses created data (ratio according to mobile phone
Such as audio data, phone directory) etc..In addition, memory 1309 may include high-speed random access memory, it can also include non-
Volatile memory, for example, at least a disk memory, flush memory device or other volatile solid-state parts.
Processor 1310 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection
A part by running or execute the software program and/or module that are stored in memory 1309, and calls and is stored in storage
Data in device 1309 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place
Managing device 1310 may include one or more processing units;Preferably, processor 1310 can integrate application processor and modulation /demodulation
Processor, wherein the main processing operation system of application processor, user interface and application program etc., modem processor master
Handle wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 1310.
Mobile terminal 1300 can also include the power supply 1311 (such as battery) powered to all parts, it is preferred that power supply
1311 can be logically contiguous by power-supply management system and processor 1310, to realize that management is filled by power-supply management system
The functions such as electricity, electric discharge and power managed.
In addition, mobile terminal 1300 includes some unshowned functional modules, details are not described herein.
Preferably, the embodiment of the present invention also provides a kind of mobile terminal, including processor 1310, memory 1309, storage
On memory 1309 and the computer program that can run on the processor 1310, the computer program is by processor 1310
Each process of above-mentioned image pickup method embodiment is realized when execution, and can reach identical technical effect, to avoid repeating, here
It repeats no more.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium
Calculation machine program, the computer program realize each process of above-mentioned image pickup method embodiment when being executed by processor, and can reach
Identical technical effect, to avoid repeating, which is not described herein again.Wherein, the computer readable storage medium is deposited Ru read-only
Reservoir (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM),
Magnetic or disk etc..
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service
Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific
Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art
Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much
Form belongs within protection of the invention.
Claims (4)
1. a kind of image pickup method is applied to mobile terminal, which is characterized in that the described method includes:
By the camera collection image of the mobile terminal, initial pictures are obtained;
Obtain mobile terminal tilt angle with respect to the horizontal plane and inclined direction;
If the tilt angle is greater than zero, according to the tilt angle, the mesh of target area is extracted in the initial pictures
Logo image, wherein the shape of the target area is identical as the shape of the mobile terminal screen;
The target image is rotated into the tilt angle according to the inclined direction, obtains output image;
The structure of photosensitive element used by the camera is circular configuration;
It is described according to the tilt angle, the step of target image of target area is extracted in the initial pictures, comprising:
According to the tilt angle, size target area identical with the size of the screen is determined in the initial pictures,
And the target image of the target area is extracted in the initial pictures, wherein the initial pictures are circular image, described
The angle of target area and horizontal direction is equal to the tilt angle.
2. a kind of mobile terminal characterized by comprising
Acquisition module obtains initial pictures for the camera collection image by the mobile terminal;
Module is obtained, for obtaining mobile terminal tilt angle with respect to the horizontal plane and inclined direction;
Extraction module, according to the tilt angle, extracts if being greater than zero for the tilt angle in the initial pictures
The target image of target area, wherein the shape of the target area is identical as the shape of the mobile terminal screen;
Rotary module obtains output image for the target image to be rotated the tilt angle according to the inclined direction;
The structure of photosensitive element used by the camera is circular configuration;
If the extraction module is greater than zero for the tilt angle, according to the tilt angle, in the initial pictures
It determines size target area identical with the size of the screen, and extracts the mesh of the target area in the initial pictures
Logo image, wherein the initial pictures are circular image, and the angle of the target area and horizontal direction is equal to the inclination angle
Degree.
3. a kind of mobile terminal, which is characterized in that including processor, memory and be stored on the memory and can be described
The computer program run on processor is realized as described in claim 1 when the computer program is executed by the processor
Image pickup method in step.
4. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium
Program, the computer program realize the step in image pickup method as described in claim 1 when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711118188.XA CN107809594B (en) | 2017-11-10 | 2017-11-10 | A kind of image pickup method and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711118188.XA CN107809594B (en) | 2017-11-10 | 2017-11-10 | A kind of image pickup method and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107809594A CN107809594A (en) | 2018-03-16 |
CN107809594B true CN107809594B (en) | 2019-09-27 |
Family
ID=61583283
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711118188.XA Active CN107809594B (en) | 2017-11-10 | 2017-11-10 | A kind of image pickup method and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107809594B (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108536371A (en) * | 2018-03-30 | 2018-09-14 | 维沃移动通信有限公司 | A kind of method for displaying image and terminal |
CN108769419B (en) * | 2018-06-04 | 2021-01-29 | Oppo(重庆)智能科技有限公司 | Photographing method, mobile terminal and computer-readable storage medium |
CN111800589B (en) * | 2019-04-08 | 2022-04-19 | 清华大学 | Image processing method, device and system and robot |
JP7234412B2 (en) | 2019-11-29 | 2023-03-07 | 富士フイルム株式会社 | Imaging support device, imaging device, imaging system, imaging support method, and program |
KR20210118616A (en) * | 2020-03-23 | 2021-10-01 | 삼성전자주식회사 | Display apparatus and the control method thereof |
CN113873148A (en) * | 2021-09-14 | 2021-12-31 | 维沃移动通信(杭州)有限公司 | Video recording method, video recording device, electronic equipment and readable storage medium |
CN113744339B (en) * | 2021-11-05 | 2022-02-08 | 贝壳技术有限公司 | Method and device for generating panoramic image, electronic equipment and storage medium |
CN114143462A (en) * | 2021-11-30 | 2022-03-04 | 维沃移动通信有限公司 | Shooting method and device |
CN115278049A (en) * | 2022-06-17 | 2022-11-01 | 维沃移动通信有限公司 | Shooting method and device thereof |
CN115760568A (en) * | 2022-11-02 | 2023-03-07 | 中国兵器科学研究院 | Target image generation method and device and electronic equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1647110A (en) * | 2002-04-16 | 2005-07-27 | 皇家飞利浦电子股份有限公司 | Image rotation correction for video or photographic equipment |
CN103795892A (en) * | 2012-11-01 | 2014-05-14 | 华为终端有限公司 | Method and apparatus for processing collected image data |
WO2014120805A1 (en) * | 2013-01-30 | 2014-08-07 | Microsoft Corporation | Auto picture alignment correction |
CN105991904A (en) * | 2015-02-28 | 2016-10-05 | 福州瑞芯微电子股份有限公司 | Portable electronic device with camera function and camera module group |
-
2017
- 2017-11-10 CN CN201711118188.XA patent/CN107809594B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1647110A (en) * | 2002-04-16 | 2005-07-27 | 皇家飞利浦电子股份有限公司 | Image rotation correction for video or photographic equipment |
CN103795892A (en) * | 2012-11-01 | 2014-05-14 | 华为终端有限公司 | Method and apparatus for processing collected image data |
WO2014120805A1 (en) * | 2013-01-30 | 2014-08-07 | Microsoft Corporation | Auto picture alignment correction |
CN105991904A (en) * | 2015-02-28 | 2016-10-05 | 福州瑞芯微电子股份有限公司 | Portable electronic device with camera function and camera module group |
Also Published As
Publication number | Publication date |
---|---|
CN107809594A (en) | 2018-03-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107809594B (en) | A kind of image pickup method and mobile terminal | |
CN108073343A (en) | A kind of display interface method of adjustment and mobile terminal | |
CN108984059A (en) | A kind of information display method and mobile terminal | |
CN109542306A (en) | A kind of screenshotss method and terminal device | |
CN108989672A (en) | A kind of image pickup method and mobile terminal | |
CN109743498A (en) | A kind of shooting parameter adjustment method and terminal device | |
CN110209313A (en) | Icon moving method and terminal device | |
CN108038825A (en) | A kind of image processing method and mobile terminal | |
CN109639965A (en) | Starting method, terminal and the computer readable storage medium of camera | |
CN108984082A (en) | A kind of image display method and mobile terminal | |
CN108415641A (en) | A kind of processing method and mobile terminal of icon | |
CN109710349A (en) | A kind of screenshotss method and mobile terminal | |
CN109343788A (en) | A kind of method of controlling operation thereof and mobile terminal of mobile terminal | |
CN108900695A (en) | A kind of display processing method and terminal device | |
CN108898555A (en) | A kind of image processing method and terminal device | |
CN110191426A (en) | A kind of method and terminal of information sharing | |
CN110290331A (en) | A kind of screen control method and terminal | |
CN109618218A (en) | A kind of method for processing video frequency and mobile terminal | |
CN109710151A (en) | A kind of document handling method and terminal device | |
CN109688341A (en) | A kind of method for polishing and terminal device | |
CN109192153A (en) | A kind of terminal and terminal control method | |
CN108174110A (en) | A kind of photographic method and flexible screen terminal | |
CN107800968B (en) | A kind of image pickup method and mobile terminal | |
CN110493454A (en) | A kind of image pickup method and terminal device | |
CN110363729A (en) | A kind of image processing method, terminal device and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |