CN107809594A - A kind of image pickup method and mobile terminal - Google Patents
A kind of image pickup method and mobile terminal Download PDFInfo
- Publication number
- CN107809594A CN107809594A CN201711118188.XA CN201711118188A CN107809594A CN 107809594 A CN107809594 A CN 107809594A CN 201711118188 A CN201711118188 A CN 201711118188A CN 107809594 A CN107809594 A CN 107809594A
- Authority
- CN
- China
- Prior art keywords
- image
- angle
- inclination
- mobile terminal
- target area
- 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
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, which provides a kind of image pickup method and mobile terminal, this method, to be included:By the camera collection image of the mobile terminal, initial pictures are obtained;Obtain mobile terminal angle of inclination with respect to the horizontal plane and incline direction;If the angle of inclination is more than zero, according to the angle of inclination, the target image of extraction target area in the initial pictures, wherein, the shape of the target area is identical with the shape of the mobile terminal screen;The target image is rotated into the angle of inclination according to the incline direction, obtains output image.Image pickup method provided by the invention can make the image keep level visual angle shot under heeling condition, and then obtain preferable shooting effect.
Description
Technical field
The present invention relates to communication technical field, more particularly to a kind of image pickup method and mobile terminal.
Background technology
With the continuous progress of 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 in shooting, if user grips mobile terminal and is in heeling condition, presented after shooting
Image be also inclined, so, when the image after user checks shooting, it is necessary to which mobile terminal is tilted into corresponding angle
The content of shooting can preferably be appreciated.In the prior art, the image of shooting can be carried out at the later stage by image processing software
Manage to make the image keep level visual angle of shooting, but this mode needs user manually operated, it is not easy enough.
It can be seen that used by existing mobile terminal there is the problem of shooting effect is poor in image pickup method.
The content of the invention
The embodiment of the present invention provides a kind of image pickup method and mobile terminal, to solve existing mobile terminal used by shoot
The problem of shooting effect is poor be present in method.
In order to solve the above technical problems, what the present invention was realized in:
In a first aspect, the embodiments of the invention provide a kind of image pickup method, applied to mobile terminal, methods described includes:
By the camera collection image of the mobile terminal, initial pictures are obtained;
Obtain mobile terminal angle of inclination with respect to the horizontal plane and incline direction;
If the angle of inclination is more than zero, according to the angle of inclination, target area is extracted in the initial pictures
Target image, wherein, the shape of the target area is identical with the shape of the mobile terminal screen;
The target image is rotated into the angle of inclination according to the incline direction, obtains output image.
Second aspect, the embodiment of the present invention provide a kind of mobile terminal, including:
Acquisition module, for the camera collection image by the mobile terminal, obtain initial pictures;
Acquisition module, for obtaining mobile terminal angle of inclination with respect to the horizontal plane and incline direction;
Extraction module, if being more than zero for the angle of inclination, according to the angle of inclination, in the initial pictures
The target image of target area is extracted, wherein, the shape of the target area is identical with the shape of the mobile terminal screen;
Rotary module, for the target image to be rotated into the angle of inclination according to the incline direction, exported
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, realized when the computer program is by the computing device
Step in above-mentioned image pickup method.
Fourth aspect, the embodiment of the present invention provide a kind of computer-readable recording medium, the computer-readable storage medium
Computer program is stored with 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 angle of inclination and the incline direction of itself in shooting,
Then the target image of shooting is determined according to the angle of inclination, and the target image is rotated into institute according to the incline direction
Angle of inclination is stated, obtains output image, so as to make the image keep level visual angle shot under heeling condition, and then is obtained preferable
Shooting effect.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, needed for being described below to the embodiment of the present invention
The accompanying drawing to be used is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention,
For those of ordinary skill in the art, without having to pay creative labor, can also be obtained according to these accompanying drawings
Obtain other accompanying drawings.
Fig. 1 is a kind of flow chart of image pickup method provided in an embodiment of the present invention;
Fig. 2 a are a kind of mobile terminals provided in an embodiment of the present invention shoots obtained mesh in 45 degree of the state of being tilted to the right
The position view of logo image;
Fig. 2 b are that a kind of mobile terminal provided in an embodiment of the present invention is in before target image after vertical state do not rotate
Position view;
Fig. 2 c are that a kind of mobile terminal provided in an embodiment of the present invention is in after vertical state target image to right rotation 45
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 a kind of initial pictures provided in an embodiment of the present invention and the schematic diagram of target area;
Fig. 5 is a kind of principle schematic for 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 representation of photo-sensitive cell provided in an embodiment of the present invention;
Fig. 9 is another principle schematic 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.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is part of the embodiment of the present invention, rather than whole embodiments.Based on this hair
Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made
Example, belongs to the scope of protection of the invention.
Referring to Fig. 1, Fig. 1 is a kind of flow chart of image pickup method provided in an embodiment of the present invention, applied to mobile terminal, such as
Shown in Fig. 1, comprise the following steps:
Step 101, the camera collection image by the mobile terminal, obtain initial pictures.
In the step, complete figure that camera that above-mentioned initial pictures can be understood as the mobile terminal collects
Picture, generally, photo-sensitive cell is square structure used by the camera, thus the initial pictures that collect of the camera
Shape is also square, but photo-sensitive cell may be designed in circular configuration used by the camera, so, the shooting
The shape for the initial pictures that head collects is also circular.
In the step, by the camera collection image of the mobile terminal, initial pictures can be obtained in shooting,
It is corresponding with the angle of inclination of the mobile terminal in the initial pictures so as on the basis of the initial pictures, determine
Target area.
Step 102, obtain mobile terminal angle of inclination with respect to the horizontal plane and incline direction.
In the step, angle of inclination and the incline direction of the mobile terminal can be obtained, to obtain the mobile terminal
Specific heeling condition, such as:Mobile terminal is typically built-in with gyroscope at present, and gyroscope is called angular-rate sensor, leads to
Rotational angular velocity and the direction of the mobile terminal can be detected by crossing gyroscope, thus can be according to the angle of rotation speed that detection obtains
Degree and direction, angle of inclination and the incline direction of the mobile terminal is calculated.Wherein, the angle of inclination and incline direction
For mobile terminal angle of inclination with respect to the horizontal plane and incline direction, such as:When user grips the mobile terminal picture
Be tilted to the left 30 degree when, 30 degree of the angle of inclination of the mobile terminal can be got, incline direction is left direction.
So, in the step, by obtaining angle of inclination and the incline direction of the mobile terminal, so as to according to institute
Angle of inclination is stated, the target image in the target area of required extraction is determined in the initial pictures, and can be according to described
Angle of inclination and incline direction, corresponding rotation processing is done to the target image of extraction, to obtain the target image of horizontal view angle.
If step 103, the angle of inclination are more than zero, according to the angle of inclination, extracted in the initial pictures
The target image of target area, wherein, the shape of the target area is identical with the shape of the mobile terminal screen.
In the step, if the angle of inclination of the mobile terminal is more than zero, i.e., when described mobile terminal is in heeling condition,
The target image of target area according to the angle of inclination, can be then extracted in the initial pictures, can be first specifically
According to the angle of inclination, determine the target area in the initial pictures, and ensure the shape of the target area with it is described
The shape of screen is identical, you can to determine the rectangle that is shaped as of the target area, then extracts the initial pictures middle position 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:It is if described initial
Image is square, 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 the mobile terminal residing for
Orientation it is consistent, and the rectangular area consistent with the size of the mobile terminal.
In the step, when can be more than zero at the angle of inclination, according to the angle of inclination, in the initial pictures
The target image of target area is extracted, may thereby determine that the specific picture material of the mobile terminal final output, and energy
Ensure that the shape of the image of final output is consistent with the shape of the screen.
Step 104, the target image rotated into the angle of inclination according to the incline direction, obtain output image.
Above-mentioned output image can be understood as the target image rotating the angle of inclination according to the incline direction
The image obtained afterwards, i.e., the image exported after image procossing is carried out by the method provided in the embodiment of the present invention.The step
In, by the way that the target image is rotated into the angle of inclination according to the incline direction, it is ensured that the mobile terminal exists
Obtained image keep level visual angle is shot under heeling condition, so that user is when checking the photo of shooting, without by the shifting
Dynamic terminal is tilted, and captured photo just can be appreciated with horizontal view angle.
Such as:Fig. 2 a are mobile terminal 200 in the position for being tilted to the right the target image 201 for shooting to obtain in the state of 45 degree
Put schematic diagram, Fig. 2 b are that mobile terminal 200 be in the position view before the target image 201 after vertical state does not rotate, are schemed
2c is that mobile terminal 200 is in target image 201 after vertical state to the position view after 45 degree of right rotation.It is it can be seen that described
Mobile terminal shoots obtained target image in an inclined state, after correspondingly rotation processing, can still be regarded with keep level
Angle.
Therefore, in the step, by the way that the target image is rotated into the angle of inclination according to the incline direction, obtain
Output image, so as to ensure that the image that the mobile terminal is shot in an inclined state remains to keep level visual angle, and then obtain
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 personal computer (Tablet Personal Computer), laptop computer (Laptop
Computer), personal digital assistant (personal digital assistant, abbreviation PDA), mobile Internet access device
The terminal device such as (Mobile Internet Device, abbreviation MID) or wearable device (Wearable Device).
Image pickup method in the present embodiment, the mobile terminal can obtain the angle of inclination of itself and incline in shooting
Tilted direction, the target image of shooting is then determined according to the angle of inclination, and by the target image according to the inclination side
To the angle of inclination is rotated, output image is obtained, so as to make the image keep level visual angle shot under heeling condition, and then
Obtain preferable shooting effect.
Referring to Fig. 3, Fig. 3 is the flow chart of another image pickup method provided in an embodiment of the present invention, applied to mobile terminal,
As shown in figure 3, comprise the following steps:
Step 301, the camera collection image by the mobile terminal, obtain initial pictures.
The 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, repeated no more here.
Step 302, obtain mobile terminal angle of inclination with respect to the horizontal plane and incline direction.
The 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, repeated no more here.
If step 303, the angle of inclination are more than zero, according to the angle of inclination, determined in the initial pictures
The target area that central point overlaps 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 with the size of the screen, a line and the level of the target area
Direction is parallel.
, can be according to the angle of inclination, in the initial pictures if the angle of inclination is more than zero in the present embodiment
The middle target area for determining central point and being overlapped with the central point of the screen, wherein, the size of the initial pictures and the screen
The size of curtain is identical, and a line and the horizontal direction of the target area are parallel.Such as:As shown in figure 4, initial graph
Picture 401 is square, and its size is identical with the size of the screen, in the target area 402 determined according to the angle of inclination
Heart point is overlapped with the central point of the screen, and the target area 402 is rectangular area, and its a line is put down with horizontal direction
OK.
Specifically, the size of the target area can show ratio according to the angle of inclination and default picture
Example determination, wherein, the default picture displaying ratio can be that system default is set or User Defined is set
, such as 16:9 or 4:3 etc.;Such as:As shown in figure 5, Fig. 5 is to be determined according to the angle of inclination and default picture displaying ratio
The principle schematic of target area, if the angle of inclination of the mobile terminal is α, default picture displaying ratio is n:M, it is described
The length of side AB of initial pictures 501 is x, according to the picture displaying ratio can determine the length of side EF of the target area 502 with
Diagonal EG angle δ is equal to arctan (m/n), and then can determine diagonal EG and the initial pictures 501 length of side BC
Angle be equal to α+δ, finally according to right angled triangle EGP, the length that can calculate diagonal EG is equal to x/tan (180- α-δ), this
Sample, calculating cornerwise length of the target area 502 and then the central point by the target area 502 and institute
The central point for stating screen overlaps, 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 can also be the size according to default angle of inclination and target area
The corresponding relation of size determines, so, according to the angle of inclination, it may be determined that the size of the target area, then root
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, it can finally determine position and size of the target area in the initial pictures.
So, in the step, if the angle of inclination is more than zero, according to the angle of inclination, in the initial pictures
The middle target area for determining central point and being 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 that final defeated
The image gone out is the image in the center of the initial pictures, to obtain preferable shooting effect.
Optionally, after step 303, before step 304, methods described also includes:
Image preview area corresponding with the target area is determined in shooting preview interface, and in the shooting preview
The shooting prompting frame of the profile for indicating described image preview area is shown on interface;
Wherein, described image preview area and the azimuth dimension all same of the target area, described image preview area
Show the target image.
In the embodiment, image preview area corresponding with the target area can be determined in shooting preview interface
Domain, wherein, the azimuth dimension all same of described image preview area and the target area, i.e. described image preview area also with
Horizontal direction parallel, and its size is identical with the size of the target area, so, is carried from the initial pictures
The target image taken may be displayed on described image preview area, so that mobile terminal is in heeling condition described in user's preview
The picture material of lower shooting, and the not display image of the region in the shooting preview interface in addition to described image preview area.
In addition, in the embodiment, can also be shown in the shooting preview interface for indicating 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, for indicating 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.
So, in the embodiment, by determining that image corresponding with the target area is pre- in shooting preview interface
Look at region, and show in the shooting preview interface shooting prompting frame of the profile for indicating described image preview area,
The image that the image in user's shooting prompting frame is final output can be prompted, so as to which 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.
Step 304, the target image rotated into the angle of inclination according to the incline direction, obtain output image.
The 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, repeated no more here.
Optionally, after step 304, methods described also includes:
Processing is amplified to the output image, so that the size of the output image after amplification and the movement are whole
The size that end shoots obtained image under vertical state is consistent.
In the embodiment, after rotating the target image and obtaining the output image, the output can also be schemed
As being amplified processing, specifically, it by the size adjusting of the output image is the mobile terminal at angle of inclination that can be
The obtained size of image is shot in the state of being zero, generally, the mobile terminal is (such as perpendicular in the state of being zero at angle of inclination
Under straight state) the obtained size of image of shooting is larger, whole screen can be typically taken, but by the output image is in institute
The image in the subregion extracted in initial pictures is stated, thus the size of the output image is less than the mobile terminal and existed
Angle of inclination shoots the size of obtained image in the state of being zero, therefore, in the embodiment, the output can be schemed
As being amplified processing.
So, in the embodiment, by being amplified processing to the output image, the output after amplification can be made
The size that the size of image shoots under vertical state obtained image with the mobile terminal is consistent, so as to make heeling condition
The lower obtained image that shoots can also keep large-size, facilitate user to check.
In the present embodiment, on the basis of the embodiment shown in Fig. 1, to described according to the angle of inclination, 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, the present embodiment also add plurality of optional on the basis of the 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.
Referring to Fig. 7, Fig. 7 is the flow chart of another image pickup method provided in an embodiment of the present invention, applied to mobile terminal,
As shown in fig. 7, comprises following steps:
Step 701, the camera collection image by the mobile terminal, obtain initial pictures, wherein, the camera
The structure of used photo-sensitive cell is circular configuration, and the initial pictures are circular image.
Generally, the structure of photo-sensitive cell is square structure used by the camera, and in the present embodiment, taken the photograph described
As photo-sensitive cell is designed to circular configuration used by head, such as:The structure of the photo-sensitive cell 800 can with as shown in figure 8, from
And the initial pictures collected by the camera of the mobile terminal are also circular image.So, photo-sensitive cell is used as circle
The area for the initial pictures that the camera of shape structure is collected will be greater than using camera institute of the photo-sensitive cell for square structure
The area of the initial pictures collected, so as to which 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 obtain more preferable shooting effect.
Above by the camera collection image of the mobile terminal, the embodiment for the step of obtaining initial pictures
The related embodiment of step 101 in the embodiment of the method shown in Fig. 1 is may refer to, and identical beneficial effect can be reached, is
Avoid repeating, repeat no more here.
Step 702, obtain mobile terminal angle of inclination with respect to the horizontal plane and incline direction.
The 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, repeated no more here.
If step 703, the angle of inclination are more than zero, according to the angle of inclination, determined in the initial pictures
The size identical target area of size and 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 angle of inclination.
, can be according to the angle of inclination, in the initial pictures if the angle of inclination is more than zero in the step
The size identical target area of size and the screen is determined, and the angle of the target area and horizontal direction is equal to described
Angle of inclination.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 angle of inclination, and the size and dimension of the screen, it may be determined that the initial pictures 901
In black rectangle region be target area 902.
So, in the embodiment, if the angle of inclination is more than zero, according to the angle of inclination, described initial
Size and the size identical target area of the screen are 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 obtain and the screen
The size identical target image of curtain, without being amplified to postrotational target image, hereby it is ensured that the image of shooting
Possess preferable quality, and then lift Consumer's Experience.
Step 704, the target image rotated into the angle of inclination according to the incline direction, obtain output image.
The 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, repeated no more here.
In the present embodiment, on the basis of the embodiment shown in Fig. 1, the knot of photo-sensitive cell used by camera is defined
Structure is circular configuration, and to according to the angle of inclination, the step of the target image of target area is extracted in the initial pictures
Suddenly 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.
Referring to Figure 10, Figure 10 is a kind of structure chart of mobile terminal provided in an embodiment of the present invention, as shown in Figure 10, mobile
Terminal 1000 includes:
Acquisition module 1001, for the camera collection image by the mobile terminal 1000, obtain initial pictures;
Acquisition module 1002, for obtaining the angle of inclination of the mobile terminal 1000 with respect to the horizontal plane and inclination side
To;
Extraction module 1003, if being more than zero for the angle of inclination, according to the angle of inclination, in the initial graph
The target image of target area is extracted as in, wherein, the shape of the target area and the shape of the screen of mobile terminal 1000
Shape is identical;
Rotary module 1004, for the target image to be rotated into the angle of inclination according to the incline direction, obtain
Output image.
Optionally, if the extraction module 1003 is used for the angle of inclination and is more than zero, according to the angle of inclination,
The target area that central point overlaps with the central point of the screen is determined in the initial pictures, and is carried in the initial pictures
The target image of the target area is taken, wherein, the size of the initial pictures is identical with 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 also includes:
Display module 1005, for determining image preview area corresponding with the target area in shooting preview interface
Domain, and show in the shooting preview interface shooting prompting frame of the profile for indicating described image preview area;
Wherein, described image preview area and the azimuth dimension all same of the target area, described image preview area
Show the target image.
Optionally, as shown in figure 12, the mobile terminal 1000 also includes:
Amplification module 1006, for being amplified processing to the output image, so that the output image after amplification
Size and the mobile terminal 1000 shot under vertical state obtained image size it is consistent.
Optionally, the structure of photo-sensitive cell is circular configuration used by the camera;
If the extraction module 1003 is used for the angle of inclination and is more than zero, according to the angle of inclination, described first
Size and the size identical target area of the screen are 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 angle of inclination.
Mobile terminal 1000 can realize that mobile terminal is realized each in embodiment of the method shown in Fig. 1, Fig. 3 and Fig. 7
Process, to avoid repeating, repeat no more here.The mobile terminal 1000 of the embodiment of the present invention can obtain itself in shooting
Angle of inclination and incline direction, the target image of shooting is then determined according to the angle of inclination, and by the target image
The angle of inclination is rotated according to the incline 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.
Figure 13 is a kind of hardware structure diagram for the mobile terminal for realizing each embodiment of the present invention, and the mobile terminal 1300 wraps
Include but be not limited to:Radio frequency unit 1301, mixed-media network modules mixed-media 1302, audio output unit 1303, input block 1304, sensor
1305th, display unit 1306, user input unit 1307, interface unit 1308, memory 1309, processor 1310, Yi Ji electricity
The grade part of source 1311.It will be understood by those skilled in the art that the mobile terminal structure shown in Figure 13 is not formed to mobile whole
The restriction at end, mobile terminal can be included than illustrating more or less parts, either combine some parts or different portions
Part is arranged.In embodiments of the present invention, mobile terminal includes but is not limited to mobile phone, tablet personal computer, notebook computer, palm electricity
Brain, car-mounted terminal, wearable device and pedometer etc..
Wherein, processor 1310, for the camera collection image by the mobile terminal, initial pictures are obtained;
Obtain mobile terminal angle of inclination with respect to the horizontal plane and incline direction;
If the angle of inclination is more than zero, according to the angle of inclination, target area is extracted in the initial pictures
Target image, wherein, the shape of the target area is identical with the shape of the mobile terminal screen;
The target image is rotated into the angle of inclination according to the incline direction, obtains output image.
Optionally, the processor 1310 is additionally operable to:
According to the angle of inclination, the mesh that central point overlaps 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 additionally operable to:
Image preview area corresponding with the target area is determined in shooting preview interface, and in the shooting preview
The shooting prompting frame of the profile for indicating described image preview area is shown on interface;
Wherein, described image preview area and the azimuth dimension all same of the target area, described image preview area
Show the target image.
Optionally, the processor 1310 is additionally operable to:
Processing is amplified to the output image, so that the size of the output image after amplification and the movement are whole
The size that end shoots obtained image under vertical state is consistent.
Optionally, the structure of photo-sensitive cell is circular configuration used by the camera;
The processor 1310 is additionally operable to:
According to the angle of inclination, size and the size identical target area of the screen are determined in the initial pictures
Domain, and the target image of the target area is extracted in the initial pictures, wherein, the initial pictures are circular image,
The angle of the target area and horizontal direction is equal to the angle of inclination.
Mobile terminal 1300 can realize 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 obtain the angle of inclination of itself and inclination side in shooting
To, the target image then shot according to angle of inclination determination, and the target image is revolved according to the incline direction
Turn the angle of inclination, obtain output image, so as to make the image keep level visual angle shot under heeling condition, and then obtain
Preferable shooting effect.
It should be understood that in the embodiment of the present invention, radio frequency unit 1301 can be used for receiving and sending messages or communication process in, signal
Reception and transmission, specifically, by from base station downlink data receive after, handled to processor 1310;In addition, will be up
Data are sent to base station.Generally, 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 pass through wireless communication system and network and other
Equipment communication.
Mobile terminal has provided the user wireless broadband internet by mixed-media network modules mixed-media 1302 and accessed, and such as helps user to receive
Send e-mails, browse webpage and access streaming video etc..
Audio output unit 1303 can be receiving by radio frequency unit 1301 or mixed-media network modules mixed-media 1302 or in memory
It is sound that the voice data stored in 1309, which is converted into audio signal and exported,.Moreover, audio output unit 1303 can be with
The audio output related to the specific function that mobile terminal 1300 performs is provided (for example, call signal receives sound, message sink
Sound etc.).Audio output unit 1303 includes loudspeaker, buzzer and receiver etc..
Input block 1304 is used to receive audio or video signal.Input block 1304 can include graphics processor
(Graphics Processing Unit, abbreviation GPU) 13041 and microphone 13042, graphics processor 13041 is in video
The static images or the picture number of video obtained in acquisition mode or image capture mode by image capture apparatus (such as camera)
According to being handled.Picture frame after processing may be displayed on display unit 1306.Figure after the processing of graphics processor 13041
As frame can be stored in memory 1309 (or other storage mediums) or via radio frequency unit 1301 or mixed-media network modules mixed-media 1302
It is transmitted.Microphone 13042 can receive sound, and can be voice data by such acoustic processing.After processing
Voice data can be converted in the case of telephone calling model to be sent to mobile communication base station via radio frequency unit 1301
Form output.
Mobile terminal 1300 also includes at least one sensor 1305, for example, optical sensor, motion sensor and other
Sensor.Specifically, optical sensor includes ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to ring
The light and shade of environmental light adjusts the brightness of display panel 13061, proximity transducer can when mobile terminal 1300 is moved in one's ear,
Close display panel 13061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions
The size of (generally three axles) acceleration, can detect that size and the direction of gravity when static, available for identification mobile terminal appearance
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 ray sensor etc. are pressed, will not be repeated here.
Display unit 1306 is used for the information for showing the information inputted by user or being supplied to 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 the numeral or character information for receiving input, and produce the use with mobile terminal
The key signals input that family is set and function control is relevant.Specifically, user input unit 1307 include contact panel 13071 with
And other input equipments 13072.Contact panel 13071, also referred to as touch-screen, collect touch behaviour of the user on or near it
Make (for example user uses any suitable objects or annex such as finger, stylus on contact panel 13071 or in contact panel
Operation near 13071).Contact panel 13071 may include both touch detecting apparatus and touch controller.Wherein, touch
The touch orientation of detection means detection user is touched, and detects the signal that touch operation is brought, 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,
Order that reception processing device 1310 is sent simultaneously is performed.Furthermore, it is possible to using resistance-type, condenser type, infrared ray and surface
The polytypes such as sound wave realize contact panel 13071.Except contact 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, action bars, will not be repeated here.
Further, contact panel 13071 can be covered on display panel 13061, when contact 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 fig. 13, contact panel
13071 realize the input of mobile terminal and output function with display panel 13061 is the part independent as two, but
In some embodiments, contact panel 13071 and display panel 13061 can be integrated and realize the input and output of mobile terminal
Function, do not limit herein specifically.
Interface unit 1308 is the interface that external device (ED) is connected with mobile terminal 1300.For example, external device (ED) can include
Wired or wireless headphone port, external power source (or battery charger) port, wired or wireless FPDP, storage card
Port, the port for connecting the device with identification module, audio input/output (I/O) port, video i/o port, earphone
Port etc..Interface unit 1308 can be used for receiving the input (for example, data message, electric power etc.) from external device (ED) simultaneously
And 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 storage software program and various data.Memory 1309 can mainly include storage program
Area and storage data field, wherein, storing program area can storage program area, needed at least one function application program (such as
Sound-playing function, image player function etc.) etc.;Storage data field can store uses created data (ratio according to mobile phone
Such as voice data, phone directory) etc..In addition, memory 1309 can include high-speed random access memory, 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 whole mobile terminal of connection
Individual part, by running or performing the software program and/or module that are stored in memory 1309, and call and be stored in storage
Data in device 1309, the various functions and processing data of mobile terminal are performed, so as to carry out integral monitoring to mobile terminal.Place
Reason device 1310 may include one or more processing units;Preferably, processor 1310 can integrate application processor and modulation /demodulation
Processor, wherein, application processor mainly handles operating system, user interface and application program etc., modem processor master
Handle radio 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) to all parts power supply, it is preferred that power supply
1311 can be logically contiguous by power-supply management system and processor 1310, so as 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, will not be repeated here.
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 be run on the processor 1310, the computer program is by processor 1310
Each process of above-mentioned image pickup method embodiment is realized during execution, and identical technique effect can be reached, to avoid repeating, here
Repeat no more.
The embodiment of the present invention also provides a kind of computer-readable recording medium, and meter is stored with computer-readable recording 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 technique effect, to avoid repeating, repeat no more here.Wherein, described computer-readable recording medium, deposited Ru read-only
Reservoir (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM),
Magnetic disc or CD etc..
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property includes, so that process, method, article or device including a series of elements not only include those key elements, and
And also include the other element being not expressly set out, or also include for this process, method, article or device institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Other identical element also be present in the process of key element, method, 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 add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words
Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal (can be mobile phone, computer, service
Device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
Embodiments of the invention are described above in conjunction with accompanying drawing, but the invention is not limited in above-mentioned specific
Embodiment, above-mentioned embodiment is only schematical, rather than restricted, one of ordinary skill in the art
Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make a lot
Form, belong within the protection of the present invention.
Claims (12)
1. a kind of image pickup method, applied to mobile terminal, it is characterised in that methods described includes:
By the camera collection image of the mobile terminal, initial pictures are obtained;
Obtain mobile terminal angle of inclination with respect to the horizontal plane and incline direction;
If the angle of inclination is more than zero, according to the angle of inclination, the mesh of extraction target area in the initial pictures
Logo image, wherein, the shape of the target area is identical with the shape of the mobile terminal screen;
The target image is rotated into the angle of inclination according to the incline direction, obtains output image.
2. according to the method for claim 1, it is characterised in that it is described according to the angle of inclination, in the initial pictures
The step of target image of middle extraction target area, including:
According to the angle of inclination, the target area that central point overlaps with the central point of the screen is determined in the initial pictures
Domain, and extract in the initial pictures target image of the target area, wherein, the size of the initial pictures with it is described
The size of screen is identical, a line and horizontal direction parallel of the target area.
3. according to the method for claim 2, it is characterised in that it is described according to the angle of inclination, in the initial pictures
The middle target area for determining central point and being overlapped with the central point of the screen, and the target area is extracted in the initial pictures
It is described that the target image is rotated into the angle of inclination according to the incline direction after the step of target image in domain, obtain
The step of output image before, methods described also includes:
Image preview area corresponding with the target area is determined in shooting preview interface, and in the shooting preview interface
On show the shooting prompting frame of profile for indicating described image preview area;
Wherein, described image preview area and the azimuth dimension all same of the target area, described image preview area are shown
The target image.
4. according to the method in claim 2 or 3, it is characterised in that it is described by the target image according to the inclination side
To the angle of inclination is rotated, after the step of obtaining output image, methods described also includes:
Processing is amplified to the output image, so that the size of the output image after amplification exists with the mobile terminal
The size of image for shooting to obtain under vertical state is consistent.
5. according to the method for claim 1, it is characterised in that the structure of photo-sensitive cell is circle used by the camera
Shape structure;
It is described according to the angle of inclination, the step of target image of target area is extracted in the initial pictures, including:
According to the angle of inclination, size and the size identical target area of the screen are 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 angle of inclination.
A kind of 6. mobile terminal, it is characterised in that including:
Acquisition module, for the camera collection image by the mobile terminal, obtain initial pictures;
Acquisition module, for obtaining mobile terminal angle of inclination with respect to the horizontal plane and incline direction;
Extraction module, if being more than zero for the angle of inclination, according to the angle of inclination, extracted in the initial pictures
The target image of target area, wherein, the shape of the target area is identical with the shape of the mobile terminal screen;
Rotary module, for the target image to be rotated into the angle of inclination according to the incline direction, obtain output image.
7. mobile terminal according to claim 6, it is characterised in that if the extraction module is big for the angle of inclination
In zero, then according to the angle of inclination, the mesh that central point overlaps 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.
8. mobile terminal according to claim 7, it is characterised in that the mobile terminal also includes:
Display module, for determining image preview area corresponding with the target area in shooting preview interface, and in institute
State the shooting prompting frame that the profile for indicating described image preview area is shown in shooting preview interface;
Wherein, described image preview area and the azimuth dimension all same of the target area, described image preview area are shown
The target image.
9. the mobile terminal according to claim 7 or 8, it is characterised in that the mobile terminal also includes:
Amplification module, for being amplified processing to the output image so that amplification after the output image size with
The size that the mobile terminal shoots obtained image under vertical state is consistent.
10. mobile terminal according to claim 6, it is characterised in that the knot of photo-sensitive cell used by the camera
Structure is circular configuration;
If the extraction module is used for the angle of inclination and is more than zero, according to the angle of inclination, in the initial pictures
The size identical target area of size and the screen is determined, and the mesh of the target area is extracted 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.
11. a kind of mobile terminal, it is characterised in that including processor, memory and be stored on the memory and can be in institute
The computer program run on processor is stated, the computer program is realized such as claim 1 to 5 during the computing device
Any one of image pickup method in step.
12. a kind of computer-readable recording medium, it is characterised in that be stored with computer on the computer-readable recording medium
Program, realized when the computer program is executed by processor in the image pickup method as any one of claim 1 to 5
Step.
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 true CN107809594A (en) | 2018-03-16 |
CN107809594B 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) |
Cited By (11)
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 |
CN108769419A (en) * | 2018-06-04 | 2018-11-06 | Oppo(重庆)智能科技有限公司 | Photographic method, mobile terminal and computer readable storage medium |
WO2020207108A1 (en) * | 2019-04-08 | 2020-10-15 | 清华大学 | Image processing method, device and system, and robot |
CN113438432A (en) * | 2020-03-23 | 2021-09-24 | 三星电子株式会社 | Display apparatus and control method thereof |
CN113744339A (en) * | 2021-11-05 | 2021-12-03 | 贝壳技术有限公司 | Method and device for generating panoramic image, electronic equipment and storage medium |
CN113873148A (en) * | 2021-09-14 | 2021-12-31 | 维沃移动通信(杭州)有限公司 | Video recording method, video recording device, electronic equipment and readable storage medium |
CN114143462A (en) * | 2021-11-30 | 2022-03-04 | 维沃移动通信有限公司 | Shooting method and device |
CN114762311A (en) * | 2019-11-29 | 2022-07-15 | 富士胶片株式会社 | Imaging support device, imaging system, imaging support method, and program |
CN115760568A (en) * | 2022-11-02 | 2023-03-07 | 中国兵器科学研究院 | Target image generation method and device and electronic equipment |
WO2023241495A1 (en) * | 2022-06-17 | 2023-12-21 | 维沃移动通信有限公司 | Photographic method and apparatus |
CN114762311B (en) * | 2019-11-29 | 2024-07-02 | 富士胶片株式会社 | Image pickup support device, image pickup system, image pickup support method, and storage medium |
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 |
Cited By (11)
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 |
CN108769419A (en) * | 2018-06-04 | 2018-11-06 | Oppo(重庆)智能科技有限公司 | Photographic method, mobile terminal and computer readable storage medium |
WO2020207108A1 (en) * | 2019-04-08 | 2020-10-15 | 清华大学 | Image processing method, device and system, and robot |
CN114762311A (en) * | 2019-11-29 | 2022-07-15 | 富士胶片株式会社 | Imaging support device, imaging system, imaging support method, and program |
CN114762311B (en) * | 2019-11-29 | 2024-07-02 | 富士胶片株式会社 | Image pickup support device, image pickup system, image pickup support method, and storage medium |
CN113438432A (en) * | 2020-03-23 | 2021-09-24 | 三星电子株式会社 | Display apparatus and control method thereof |
CN113873148A (en) * | 2021-09-14 | 2021-12-31 | 维沃移动通信(杭州)有限公司 | Video recording method, video recording device, electronic equipment and readable storage medium |
CN113744339A (en) * | 2021-11-05 | 2021-12-03 | 贝壳技术有限公司 | Method and device for generating panoramic image, electronic equipment and storage medium |
CN114143462A (en) * | 2021-11-30 | 2022-03-04 | 维沃移动通信有限公司 | Shooting method and device |
WO2023241495A1 (en) * | 2022-06-17 | 2023-12-21 | 维沃移动通信有限公司 | Photographic method and apparatus |
CN115760568A (en) * | 2022-11-02 | 2023-03-07 | 中国兵器科学研究院 | Target image generation method and device and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN107809594B (en) | 2019-09-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107809594B (en) | A kind of image pickup method and mobile terminal | |
CN107786817A (en) | A kind of photographic method and mobile terminal | |
CN107833178A (en) | A kind of image processing method, device and mobile terminal | |
CN108038825A (en) | A kind of image processing method and mobile terminal | |
CN108495029A (en) | A kind of photographic method and mobile terminal | |
CN107808084A (en) | A kind of touch operation method and mobile terminal | |
CN107704176A (en) | A kind of picture-adjusting method and terminal | |
CN107644395B (en) | Image processing method and mobile device | |
CN107566749A (en) | Image pickup method and mobile terminal | |
CN107845057A (en) | One kind is taken pictures method for previewing and mobile terminal | |
CN107888728A (en) | A kind of mobile terminal and the image pickup method based on the mobile terminal | |
CN107943390A (en) | A kind of word clone method and mobile terminal | |
CN109542306A (en) | A kind of screenshotss method and terminal device | |
CN108174103A (en) | A kind of shooting reminding method and mobile terminal | |
CN107592467A (en) | A kind of image pickup method and mobile terminal | |
CN108307106A (en) | A kind of image processing method, device and mobile terminal | |
CN108108110A (en) | A kind of screen control method, screen control device and mobile terminal | |
CN110209313A (en) | Icon moving method and terminal device | |
CN108040209A (en) | A kind of image pickup method and mobile terminal | |
CN107749046A (en) | A kind of image processing method and mobile terminal | |
CN107682637A (en) | A kind of image pickup method, mobile terminal and computer-readable recording medium | |
CN107734172A (en) | A kind of method for information display and mobile terminal | |
CN108174110A (en) | A kind of photographic method and flexible screen terminal | |
CN109358913A (en) | A kind of the starting method and terminal device of application program | |
CN108536513A (en) | A kind of picture display direction method of adjustment and mobile terminal |
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 |