CN108769419A - Photographic method, mobile terminal and computer readable storage medium - Google Patents
Photographic method, mobile terminal and computer readable storage medium Download PDFInfo
- Publication number
- CN108769419A CN108769419A CN201810565191.4A CN201810565191A CN108769419A CN 108769419 A CN108769419 A CN 108769419A CN 201810565191 A CN201810565191 A CN 201810565191A CN 108769419 A CN108769419 A CN 108769419A
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- angle
- camera
- inclination
- camera lens
- 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
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
-
- 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/60—Control of cameras or camera modules
-
- 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/60—Control of cameras or camera modules
- H04N23/69—Control of means for changing angle of the field of view, e.g. optical zoom objectives or electronic zooming
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Environmental & Geological Engineering (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Studio Devices (AREA)
Abstract
This application provides a kind of photographic method, mobile terminal and computer readable storage medium, the photographic method includes:When opening camera, obtain the angle of inclination of mobile terminal, wherein, the angle of inclination of the mobile terminal includes the horizontal tilt angle of the mobile terminal and the vertical tilt angle of the mobile terminal, the horizontal tilt angle of the mobile terminal refers to that the side frame of the mobile terminal and horizontal plane are formed by angle, the vertical tilt angle of the mobile terminal refers to the side frame of the mobile terminal and vertical plane is formed by angle, and the vertical plane and the horizontal plane are perpendicular;If the angle of inclination of the mobile terminal is more than zero and adjusts camera lens in the camera according to the angle of inclination of the mobile terminal less than predetermined angle;It is taken pictures using camera lens in the camera after adjustment.Object to be shot in photo can be avoided to tilt, shooting effect is improved in shooting level photo or vertical photograph by the application.
Description
Technical field
The application belongs to technical field of mobile terminals more particularly to a kind of photographic method, mobile terminal and computer-readable
Storage medium.
Background technology
With the constantly improve of the function of the mobile terminals such as smart mobile phone, tablet computer, more and more users use shifting
Dynamic terminal is taken pictures.When being taken pictures using mobile terminal, horizontal shooting can be carried out to object to be shot and (laterally grown
Photo) or vertical shooting (longitudinally long photo).For example, horizontal shoot when being placed on the certificate or meeting on desk
Courseware etc..However, since user can not ensure that mobile terminal is in horizontality or plumbness, it is easy to cause the photograph of shooting
Object to be shot tilts in piece, and shooting effect is bad.
Therefore, it is necessary to propose a kind of new technical solution, to solve the above technical problems.
Invention content
In view of this, this application provides a kind of photographic method, mobile terminal and computer readable storage medium, to clap
When taking the photograph horizontal photo or vertical photograph, avoids object to be shot in photo from tilting, improve shooting effect.
The first aspect of the application provides a kind of photographic method, and the photographic method includes:
When opening camera, the angle of inclination of mobile terminal is obtained, wherein the angle of inclination of the mobile terminal includes
The vertical tilt angle of the horizontal tilt angle of the mobile terminal and the mobile terminal, the horizontal tilt of the mobile terminal
Angle refers to the side frame of the mobile terminal and horizontal plane is formed by angle, and the vertical tilt angle of the mobile terminal is
Refer to the side frame of the mobile terminal and vertical plane is formed by angle, the vertical plane and the horizontal plane are perpendicular;
If the angle of inclination of the mobile terminal is more than zero and is less than predetermined angle, according to the inclination of the mobile terminal
Angle adjusts camera lens in the camera;
It is taken pictures using camera lens in the camera after adjustment.
The second aspect of the application provides a kind of mobile terminal, and the mobile terminal includes:
Angle acquisition module, for when opening camera, obtaining the angle of inclination of mobile terminal, wherein the movement
The angle of inclination of terminal includes the horizontal tilt angle of the mobile terminal and the vertical tilt angle of the mobile terminal, described
The horizontal tilt angle of mobile terminal refers to the side frame of the mobile terminal and horizontal plane is formed by angle, described mobile whole
The vertical tilt angle at end refers to the side frame of the mobile terminal and vertical plane is formed by angle, the vertical plane with it is described
Horizontal plane is perpendicular;
Lens regulating module, if the angle of inclination for the mobile terminal is more than zero and is less than predetermined angle, basis
The angle of inclination of the mobile terminal adjusts camera lens in the camera;
Photo module, for being taken pictures using camera lens in the camera after adjustment.
The third aspect of the application provides a kind of mobile terminal, including memory, processor and is stored in described deposit
In reservoir and the computer program that can run on the processor, the processor are realized such as when executing the computer program
Described in above-mentioned first aspect the step of photographic method.
The fourth aspect of the application provides a kind of computer readable storage medium, and the computer readable storage medium is deposited
Computer program is contained, the step of the photographic method as described in above-mentioned first aspect is realized when the computer program is executed by processor
Suddenly.
The 5th aspect of the application provides a kind of computer program product, and the computer program product includes computer
Program realizes the step of the photographic method as described in above-mentioned first aspect when the computer program is executed by one or more processors
Suddenly.
Therefore this programme obtains the angle of inclination of mobile terminal, and inclining mobile terminal when opening camera
Rake angle is compared with predetermined angle, and when the angle of inclination of mobile terminal is more than zero and is less than predetermined angle, is determined and moved
Dynamic terminal run-off the straight when carry out level takes pictures or vertically takes pictures, can adjust at this time according to the angle of inclination of mobile terminal
Camera lens in camera, to ensure using camera lens is taken pictures in camera when, the inclination that is occurred of compensation mobile terminal, in turn
Object to be shot run-off the straight in the photo captured by mobile terminal is avoided, shooting effect is improved.
Description of the drawings
It in order to more clearly explain the technical solutions in the embodiments of the present application, below will be to embodiment or description of the prior art
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only some of the application
Embodiment for those of ordinary skill in the art without having to pay creative labor, can also be according to these
Attached drawing obtains other attached drawings.
Fig. 1 is the implementation process schematic diagram for the photographic method that the embodiment of the present application one provides;
Fig. 2 a are the exemplary plots at the angle of inclination of mobile terminal;Fig. 2 b are the exemplary plots of horizontal photo;Fig. 2 c are vertically to shine
The exemplary plot of piece.
Fig. 3 is the implementation process schematic diagram for the photographic method that the embodiment of the present application two provides;
Fig. 4 is the implementation process schematic diagram for the photographic method that the embodiment of the present application three provides;
Fig. 5 is the schematic diagram for the mobile terminal that the embodiment of the present application four provides;
Fig. 6 is the schematic diagram for the mobile terminal that the embodiment of the present application five provides;
Fig. 7 is the schematic diagram for the mobile terminal that the embodiment of the present application six provides.
Specific implementation mode
In being described below, for illustration and not for limitation, it is proposed that such as tool of particular system structure, technology etc
Body details, so as to provide a thorough understanding of the present application embodiment.However, it will be clear to one skilled in the art that there is no these specific
The application can also be realized in the other embodiments of details.In other situations, it omits to well-known system, device, electricity
The detailed description of road and method, so as not to obscure the description of the present application with unnecessary details.
It should be appreciated that ought use in this specification and in the appended claims, the instruction of term " comprising " is described special
Sign, entirety, step, operation, the presence of element and/or component, but be not precluded one or more of the other feature, entirety, step,
Operation, element, component and/or its presence or addition gathered.
It is also understood that the term used in this present specification is merely for the sake of the mesh for describing specific embodiment
And be not intended to limit the application.As present specification and it is used in the attached claims, unless on
Other situations are hereafter clearly indicated, otherwise " one " of singulative, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in present specification and the appended claims is
Refer to any combinations and all possible combinations of one or more of associated item listed, and includes these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt
Be construed to " when ... " or " once " or " in response to determination " or " in response to detecting ".Similarly, phrase " if it is determined that " or
" if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true
It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In the specific implementation, the mobile terminal described in the embodiment of the present application is including but not limited to such as with the sensitive table of touch
Mobile phone, laptop computer or the tablet computer in face (for example, touch-screen display and/or touch tablet) etc it is other
Portable device.It is to be further understood that in certain embodiments, the equipment is not portable communication device, but is had
The desktop computer of touch sensitive surface (for example, touch-screen display and/or touch tablet).
In following discussion, the mobile terminal including display and touch sensitive surface is described.However, should manage
Solution, mobile terminal may include that one or more of the other physical User of such as physical keyboard, mouse and/or control-rod connects
Jaws equipment.
Mobile terminal supports various application programs, such as one of the following or multiple:Drawing application program, demonstration application
Program, word-processing application, website establishment application program, disk imprinting application program, spreadsheet applications, game are answered
With program, telephony application, videoconference application, email application, instant messaging applications, forging
Refining supports application program, photo management application program, digital camera application program, digital camera application program, web-browsing to answer
With program, digital music player application and/or video frequency player application program.
The various application programs that can be executed on mobile terminals can use at least one of such as touch sensitive surface
Public physical user-interface device.It can be adjusted among applications and/or in corresponding application programs and/or change touch is quick
Feel the corresponding information shown in the one or more functions and terminal on surface.In this way, terminal public physical structure (for example,
Touch sensitive surface) it can support the various application programs with intuitive and transparent user interface for a user.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in the present embodiment, each process
Execution sequence should be determined by its function and internal logic, and the implementation process without coping with the embodiment of the present application constitutes any restriction.
In order to illustrate technical solution described herein, illustrated below by specific embodiment.
It is the implementation process schematic diagram for the photographic method that the embodiment of the present application one provides, the photographic method application referring to Fig. 1
In mobile terminal, the photographic method as shown in the figure may comprise steps of:
Step S101 obtains the angle of inclination of mobile terminal when opening camera.
In the embodiment of the present application, it when detecting that mobile terminal opens camera, can be obtained by acceleration transducer
Take mobile terminal with respect to the horizontal plane with the angle of vertical plane.The camera can be that front camera can also be that postposition is taken the photograph
As head, it is not limited thereto.
Wherein, the angle of inclination of the mobile terminal includes the horizontal tilt angle of the mobile terminal and the mobile end
The horizontal tilt angle of the vertical tilt angle at end, the mobile terminal refers to side frame and the horizontal plane institute of the mobile terminal
The vertical tilt angle of the angle of formation, the mobile terminal refers to that the side frame of the mobile terminal and vertical plane are formed by
Angle, the vertical plane and the horizontal plane are perpendicular.
It should be noted that when mobile terminal is in horizontality, the horizontal tilt angle of mobile terminal is 0 °, camera shooting
It is 0 ° that camera lens is formed by angle also with horizontal plane in head, and vertical tilt angle is 90 °, camera lens and vertical plane institute shape in camera
At angle also be 90 °;When mobile terminal is in plumbness, the horizontal tilt angle of mobile terminal is 90 °, in camera
It is 90 ° that camera lens is formed by angle also with horizontal plane, and vertical tilt angle is 0 °, and camera lens is formed by with vertical plane in camera
Angle is also 0 °.It is the exemplary plot at the angle of inclination of mobile terminal as shown in Figure 2 a, A is the horizontal tilt angle of mobile terminal, B
For the vertical tilt angle of mobile terminal.
Step S102, if the angle of inclination of the mobile terminal is more than zero and is less than predetermined angle, according to the movement
The angle of inclination of terminal adjusts camera lens in the camera.
In the embodiment of the present application, it is that the not inclined photo of object to be shot to be shot is (i.e. horizontal to shine to distinguish user
Piece or vertical photograph), still to shoot the inclined photo of object to be shot (i.e. inclination movement terminal is taken pictures), Ke Yishe
Set predetermined angle, and the angle of inclination of mobile terminal be compared with predetermined angle, with the photo that user is shot into
Row is distinguished, if the angle of inclination of mobile terminal is more than or equal to predetermined angle, can determine that user wants tilt photo,
The angle of camera lens in camera can not be adjusted at this time;If the angle of inclination of mobile terminal is equal to zero, can determine mobile whole
End is in horizontality (horizontal tilt angle is 0 °) or plumbness (vertical tilt angle is 0 °), at this time captured photograph
Object to be shot does not tilt in piece, without adjusting the angle of camera lens in camera;If the angle of inclination that mobile terminal arrives is more than zero
And be less than predetermined angle, then it can determine that user wants the shooting not inclined photo of object to be shot (for example, the water of mobile terminal
Flat dip angle is more than zero and is less than predetermined angle, it may be determined that user wants shooting level photo, and the vertical of mobile terminal is inclined
When rake angle is more than zero and is less than predetermined angle, it may be determined that user wants shooting vertical photograph), since mobile terminal inclines
Tiltedly (camera lens can also tilt therewith in the camera of mobile terminal) can make captured by adjusting camera lens in camera at this time
Object to be shot does not tilt in photo.Wherein, horizontal photo can refer to that camera lens is formed by angle with horizontal plane in camera
Captured photo when being zero, as shown in Figure 2 b;Vertical photograph can refer to that camera lens is formed by angle with vertical plane in camera
Captured photo when degree is zero, as shown in Figure 2 c.Object to be shot in horizontal photo and vertical photograph does not tilt.
Step S103 is taken pictures using camera lens in the camera after adjustment.
It in the embodiment of the present application, can be after receiving photographing instruction, using camera lens in the camera after adjustment to phase
Preview screen in machine is taken pictures.
It is being shot it should be noted that the embodiment of the present application when mobile terminal opens camera, just detects mobile terminal
When photo whether run-off the straight, and in run-off the straight adjust camera in camera lens, it is ensured that user draws in preview camera
It is seen that not inclined photo simplifies the process for shooting not oblique photography without adjusting mobile terminal when face.
The embodiment of the present application adjusts camera lens in camera according to the angle of inclination of mobile terminal, to ensure to use camera
When middle camera lens is taken pictures, the inclination that compensation mobile terminal is occurred, and then avoid waiting clapping in the photo captured by mobile terminal
Object run-off the straight is taken the photograph, shooting effect is improved.
It is the implementation process schematic diagram for the photographic method that the embodiment of the present application two provides, the photographic method application referring to Fig. 3
In mobile terminal, the photographic method as shown in the figure may comprise steps of:
Step S301 obtains the horizontal tilt angle and vertical tilt angle of mobile terminal when opening camera.
In the embodiment of the present application, it when detecting that mobile terminal opens camera, can be obtained by acceleration transducer
Take mobile terminal with respect to the horizontal plane with the angle of vertical plane.The camera can be that front camera can also be that postposition is taken the photograph
As head, it is not limited thereto.
Step S302, if the horizontal tilt angle of the mobile terminal is more than zero and is less than predetermined angle, according to
The horizontal tilt angle of mobile terminal, it is zero that camera lens in the camera, which is adjusted to angle is formed by with horizontal plane,.
In the embodiment of the present application, the horizontal tilt angle of the mobile terminal of acquisition is compared with predetermined angle, if
The horizontal tilt angle of the mobile terminal is more than zero and is less than predetermined angle, then can determine that user wants shooting level and shines
Piece, and mobile terminal run-off the straight, at this time can by adjusting camera lens in camera to horizontal plane, i.e., in camera camera lens with
It is 0 ° that horizontal plane, which is formed by angle, to ensure to shoot not inclined horizontal photo.Such as predetermined angle is 15 °, it is mobile
The horizontal tilt angle of terminal is 6 ° (A is 6 ° in such as Fig. 2 a), can control camera lens in camera at this time and revolve clockwise
Turn 6 °, is 0 ° to adjust camera lens in camera to angle is formed by with horizontal plane.
Step S303, if the vertical tilt angle of the mobile terminal is more than zero and is less than predetermined angle, according to
The vertical tilt angle of mobile terminal, it is zero that camera lens in the camera, which is adjusted to angle is formed by with vertical plane,.
In the embodiment of the present application, the vertical tilt angle of the mobile terminal of acquisition is compared with predetermined angle, if
The vertical tilt angle of the mobile terminal is more than zero and is less than predetermined angle, then can determine that user wants shooting and vertically shines
Piece, and mobile terminal run-off the straight, at this time can by adjusting camera lens in camera to vertical plane, i.e., in camera camera lens with
It is 0 ° that vertical plane, which is formed by angle, to ensure to shoot not inclined vertical photograph.Such as predetermined angle is 15 °, it is mobile
The vertical tilt angle of terminal is 10 ° (B is 10 ° in such as Fig. 2 a), can control in camera camera lens at this time counterclockwise
10 ° of rotation is 0 ° to adjust camera lens in camera to angle is formed by with vertical plane.
Step S304 is taken pictures using camera lens in the camera after adjustment.
The step is identical as step S103, and for details, reference can be made to the associated descriptions of step S103, and details are not described herein.
The embodiment of the present application adjusts camera lens in camera according to the horizontal tilt angle and vertical tilt angle of mobile terminal,
To ensure using camera lens is taken pictures in camera when, the inclination that is occurred of compensation mobile terminal, and then avoid mobile terminal
Object to be shot run-off the straight, improves shooting effect in captured photo.
It is the implementation process schematic diagram for the photographic method that the embodiment of the present application three provides, the photographic method application referring to Fig. 4
In mobile terminal, the photographic method as shown in the figure may comprise steps of:
Step S401, if receiving photographing instruction, obtains the angle of inclination of mobile terminal when opening camera.
In the embodiment of the present application, in order to save the power consumption of mobile terminal, avoid mobile terminal one straight before taking pictures
Row camera lens adjusts, can (such as user clicks the choosing of taking pictures taken pictures in interface manually receiving photographing instruction input by user
) and then obtain mobile terminal angle of inclination.Wherein, take pictures interface can be start mobile terminal in camera applications it
The interface entered afterwards.
Optionally, the embodiment of the present application further includes:
Opening angle compensation function, wherein the angle compensation function refers to the angle of inclination according to the mobile terminal
Adjust the function of camera lens in the camera.
In the embodiment of the present application, user can choose whether opening angle compensation function, Yong Huke according to actual needs
After opening camera, to input before photographing instruction, opening angle compensation function at interface of taking pictures (for example, be arranged one jiao
Spend compensation function option);Can also before opening camera opening angle compensation function (for example, in the system of mobile terminal
If centering an angle compensation function choosing-item).
Step S402, if the angle of inclination of the mobile terminal is more than zero and is less than predetermined angle, according to the movement
The angle of inclination of terminal adjusts camera lens in the camera by motor in the camera.
The step is identical as step S102, and for details, reference can be made to the associated descriptions of step S102, and details are not described herein.
Furthermore it is possible to motor is internally integrated in camera, to focus the angle with camera lens in camera, then this Shen
The angle of the camera lens please can be adjusted in embodiment by motor in camera so that the camera lens is in horizontal plane or is in
Vertical plane.
Step S403 is taken pictures using camera lens in the camera after adjustment.
In the embodiment of the present application, since mobile terminal is when receiving photographing instruction, according to the inclination angle of mobile terminal
Camera lens in degree adjustment camera, then in adjusting camera after camera lens, so that it may to use mirror in the camera after adjustment
Head takes pictures to magazine preview screen, and (camera is opened during preview screen to can avoid mobile terminal
Later, before receiving photographing instruction) camera lens in camera is just adjusted, the quantity of mobile terminal processing data is reduced, saves and moves
The power consumption of dynamic terminal.
Camera lens in the camera is restored the state to adjustment by step S404.
In the embodiment of the present application, camera lens claps object to be shot in mobile terminal is using the camera after adjustment
According to later, when for the ease of subsequently taking pictures the adjustment of camera lens camera lens in the camera after adjustment can be restored the shape to adjustment
State.For example, in order to which when mobile terminal tilts, camera lens in camera is adjusted to horizontal plane in step S402, by camera
Middle camera lens rotates 6 ° clockwise, then camera lens in camera is rotated to 6 ° counterclockwise again in step s 404,
It can guarantee that, when mobile terminal is in horizontality (i.e. mobile terminal does not tilt), camera lens is also restored to horizontal plane in camera.
The embodiment of the present application adjusts mirror in camera after receiving photographing instruction, according to the angle of inclination of mobile terminal
Head can carry out camera lens adjustment always to avoid mobile terminal before taking pictures, save the power consumption of mobile terminal.
It is that the schematic diagram for the mobile terminal that the embodiment of the present application four provides illustrates only for convenience of description referring to Fig. 5
With the relevant part of the embodiment of the present application.
The mobile terminal includes:
Angle acquisition module 51, for when opening camera, obtaining the angle of inclination of mobile terminal, wherein the shifting
The angle of inclination of dynamic terminal includes the horizontal tilt angle of the mobile terminal and the vertical tilt angle of the mobile terminal, institute
The horizontal tilt angle for stating mobile terminal refers to the side frame of the mobile terminal and horizontal plane is formed by angle, the movement
The vertical tilt angle of terminal refers to the side frame of the mobile terminal and vertical plane is formed by angle, the vertical plane and institute
It is perpendicular to state horizontal plane;
Lens regulating module 52, if the angle of inclination for the mobile terminal is more than zero and is less than predetermined angle, root
According to the angle of inclination of the mobile terminal, camera lens in the camera is adjusted;
Photo module 53, for being taken pictures using camera lens in the camera after adjustment.
Optionally, lens regulating module 52 is specifically used for:
If the horizontal tilt angle of the mobile terminal is more than zero and is less than predetermined angle, according to the mobile terminal
Horizontal tilt angle, it is zero that camera lens in the camera, which is adjusted to angle is formed by with the horizontal plane,;Or
If the vertical tilt angle of the mobile terminal is more than zero and is less than predetermined angle, according to the mobile terminal
Vertical tilt angle, it is zero that camera lens in the camera, which is adjusted to angle is formed by with the vertical plane,.
Optionally, lens regulating module 52 is specifically used for:
Camera lens in the camera is adjusted by motor in the camera.
Optionally, angle acquisition module 51 is specifically used for:
When opening the camera, if receiving photographing instruction, the angle of inclination of the mobile terminal is obtained.
Optionally, the mobile terminal further includes:
Function opening module 54 is used for opening angle compensation function, wherein the angle compensation function refers to according to
The angle of inclination of mobile terminal adjusts the function of camera lens in the camera.
Optionally, the mobile terminal further includes:
State recovery module 55, for camera lens in the camera to be restored the state to adjustment.
Mobile terminal provided by the embodiments of the present application can be applied in preceding method embodiment one, embodiment two and embodiment
In three, details are referring to the description of above method embodiment one, embodiment two and embodiment three, and details are not described herein.
Fig. 6 is the schematic diagram for the mobile terminal that the embodiment of the present application five provides.The mobile terminal as shown in the figure can wrap
It includes:One or more processors 601 (only show one) in figure;One or more input equipments 602 (only show one) in figure,
One or more output equipments 603 (one is only shown in figure) and memory 604.It is above-mentioned processor 601, input equipment 602, defeated
Go out equipment 603 and memory 604 is connected by bus 605.Memory 604 for storing instruction, for executing deposit by processor 601
The instruction that reservoir 604 stores.Wherein:
The processor 601, for when opening camera, obtaining the angle of inclination of mobile terminal, wherein the movement
The angle of inclination of terminal includes the horizontal tilt angle of the mobile terminal and the vertical tilt angle of the mobile terminal, described
The horizontal tilt angle of mobile terminal refers to the side frame of the mobile terminal and horizontal plane is formed by angle, described mobile whole
The vertical tilt angle at end refers to the side frame of the mobile terminal and vertical plane is formed by angle, the vertical plane with it is described
Horizontal plane is perpendicular;If the angle of inclination of the mobile terminal is more than zero and is less than predetermined angle, according to the mobile terminal
Angle of inclination, adjust camera lens in the camera;It is taken pictures using camera lens in the camera after adjustment.
Optionally, the processor 601 is specifically used for:
If the horizontal tilt angle of the mobile terminal is more than zero and is less than predetermined angle, according to the mobile terminal
Horizontal tilt angle, it is zero that camera lens in the camera, which is adjusted to angle is formed by with the horizontal plane,.
Optionally, the processor 601 is specifically used for:
If the vertical tilt angle of the mobile terminal is more than zero and is less than predetermined angle, according to the mobile terminal
Vertical tilt angle, it is zero that camera lens in the camera, which is adjusted to angle is formed by with the vertical plane,.
Optionally, the processor 601 is specifically used for:
Camera lens in the camera is adjusted by motor in the camera.
Optionally, the processor 601 is specifically used for:
When opening the camera, if receiving photographing instruction, the angle of inclination of the mobile terminal is obtained.
Optionally, before the angle of inclination for obtaining mobile terminal, the processor 601 is additionally operable to:
Opening angle compensation function, wherein the angle compensation function refers to the angle of inclination according to the mobile terminal
Adjust the function of camera lens in the camera.
Optionally, after camera lens is taken pictures in using the camera after adjustment, the processor 601 is also used
In:
Camera lens in the camera is restored into the state to adjustment.
It should be appreciated that in the embodiment of the present application, the processor 601 can be central processing unit (Central
Processing Unit, CPU), which can also be other general processors, digital signal processor (Digital
Signal Processor, DSP), application-specific integrated circuit (Application Specific Integrated Circuit,
ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic
Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at
It can also be any conventional processor etc. to manage device.
Input equipment 602 may include that Trackpad, fingerprint adopt sensor (finger print information and fingerprint for acquiring user
Directional information), microphone, data receiver interface etc..Output equipment 603 may include display (LCD etc.), loud speaker, data
Transmission interface etc..
The memory 604 may include read-only memory and random access memory, and to processor 601 provide instruction and
Data.The a part of of memory 604 can also include nonvolatile RAM.For example, memory 604 can also be deposited
Store up the information of device type.
In the specific implementation, processor 601, input equipment 602,603 and of output equipment described in the embodiment of the present application
Memory 604 can perform the realization method described in the embodiment of photographic method provided by the embodiments of the present application, also can perform
Realization method described in mobile terminal described in example IV, details are not described herein.
Fig. 7 is the schematic diagram for the mobile terminal that the embodiment of the present application six provides.As shown in fig. 7, the mobile end of the embodiment
End 7 includes:Processor 70, memory 71 and it is stored in the meter that can be run in the memory 71 and on the processor 70
Calculation machine program 72.The processor 70 realizes the step in above-mentioned each photographic method embodiment when executing the computer program 72
Such as step S101 to S103 shown in FIG. 1 suddenly,.Alternatively, the processor 70 is realized when executing the computer program 72
State the function of each module/unit in each mobile terminal embodiment, such as the function of module 51 to 55 shown in Fig. 5.
Illustratively, the computer program 72 can be divided into one or more module/units, it is one or
Multiple module/units are stored in the memory 71, and are executed by the processor 70, to complete the application.Described one
A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for
Implementation procedure of the computer program 72 in the mobile terminal 7 is described.For example, the computer program 72 can be divided
It is cut into angle acquisition module, lens regulating module, photo module, function opening module and state recovery module, each module tool
Body function is as follows:
Angle acquisition module, for when opening camera, obtaining the angle of inclination of mobile terminal, wherein the movement
The angle of inclination of terminal includes the horizontal tilt angle of the mobile terminal and the vertical tilt angle of the mobile terminal, described
The horizontal tilt angle of mobile terminal refers to the side frame of the mobile terminal and horizontal plane is formed by angle, described mobile whole
The vertical tilt angle at end refers to the side frame of the mobile terminal and vertical plane is formed by angle, the vertical plane with it is described
Horizontal plane is perpendicular;
Lens regulating module, if the angle of inclination for the mobile terminal is more than zero and is less than predetermined angle, basis
The angle of inclination of the mobile terminal adjusts camera lens in the camera;
Photo module, for being taken pictures using camera lens in the camera after adjustment.
Optionally, lens regulating module is specifically used for:
If the horizontal tilt angle of the mobile terminal is more than zero and is less than predetermined angle, according to the mobile terminal
Horizontal tilt angle, it is zero that camera lens in the camera, which is adjusted to angle is formed by with the horizontal plane,;Or
If the vertical tilt angle of the mobile terminal is more than zero and is less than predetermined angle, according to the mobile terminal
Vertical tilt angle, it is zero that camera lens in the camera, which is adjusted to angle is formed by with the vertical plane,.
Optionally, lens regulating module is specifically used for:
Camera lens in the camera is adjusted by motor in the camera.
Optionally, angle acquisition module 51 is specifically used for:
When opening the camera, if receiving photographing instruction, the angle of inclination of the mobile terminal is obtained.
Optionally, the mobile terminal further includes:
Function opening module is used for opening angle compensation function, wherein the angle compensation function refers to according to the shifting
The angle of inclination of dynamic terminal adjusts the function of camera lens in the camera.
Optionally, the mobile terminal further includes:
State recovery module, for camera lens in the camera to be restored the state to adjustment.
The mobile terminal 7 can be that the calculating such as desktop PC, notebook, palm PC and cloud server are set
It is standby.The mobile terminal may include, but be not limited only to, processor 70, memory 71.It will be understood by those skilled in the art that Fig. 7
The only example of mobile terminal 7 does not constitute the restriction to mobile terminal 7, may include than illustrating more or fewer portions
Part either combines certain components or different components, such as the mobile terminal can also include input-output equipment, net
Network access device, bus etc..
Alleged processor 70 can be central processing unit CPU, can also be other general processors, Digital Signal Processing
Device DSP, application-specific integrated circuit ASIC, ready-made programmable gate array FPGA either other programmable logic device, discrete gate or
Transistor logic, discrete hardware components etc..General processor can be microprocessor or the processor can also be to appoint
What conventional processor etc..
The memory 71 can be the internal storage unit of the mobile terminal 7, such as the hard disk of mobile terminal 7 or interior
It deposits.The memory 71 can also be to be equipped on the External memory equipment of the mobile terminal 7, such as the mobile terminal 7
Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge
Deposit card (Flash Card) etc..Further, the memory 71 can also both include the storage inside list of the mobile terminal 7
Member also includes External memory equipment.The memory 71 is for storing needed for the computer program and the mobile terminal
Other programs and data.The memory 71 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each work(
Can unit, module division progress for example, in practical application, can be as needed and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of described device are divided into different functional units or module, more than completion
The all or part of function of description.Each functional unit, module in embodiment can be integrated in a processing unit, also may be used
It, can also be above-mentioned integrated during two or more units are integrated in one unit to be that each unit physically exists alone
The form that hardware had both may be used in unit is realized, can also be realized in the form of SFU software functional unit.In addition, each function list
Member, the specific name of module are also only to facilitate mutually distinguish, the protection domain being not intended to limit this application.Above system
The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment
The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may realize that lists described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, depends on the specific application and design constraint of technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
Scope of the present application.
In embodiment provided herein, it should be understood that disclosed mobile terminal and method can pass through it
Its mode is realized.For example, mobile terminal embodiment described above is only schematical, for example, the module or list
Member division, only a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or
Component can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point is shown
The mutual coupling or direct-coupling or communication connection shown or discussed can be by some interfaces, between device or unit
Coupling or communication connection are connect, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple
In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme
's.
In addition, each functional unit in each embodiment of the application can be integrated in a processing unit, it can also
It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list
The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or
In use, can be stored in a computer read/write memory medium.Based on this understanding, the application realizes above-mentioned implementation
All or part of flow in example method, can also instruct relevant hardware to complete, the meter by computer program
Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on
The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program generation
Code can be source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium
May include:Any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic of the computer program code can be carried
Dish, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM,
Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that described
The content that computer-readable medium includes can carry out increasing appropriate according to legislation in jurisdiction and the requirement of patent practice
Subtract, such as in certain jurisdictions, according to legislation and patent practice, computer-readable medium does not include electric carrier signal and electricity
Believe signal.
Embodiment described above is only to illustrate the technical solution of the application, rather than its limitations;Although with reference to aforementioned reality
Example is applied the application is described in detail, it will be understood by those of ordinary skill in the art that:It still can be to aforementioned each
Technical solution recorded in embodiment is modified or equivalent replacement of some of the technical features;And these are changed
Or replace, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution should all
Within the protection domain of the application.
Claims (10)
1. a kind of photographic method, which is characterized in that the photographic method includes:
When opening camera, the angle of inclination of mobile terminal is obtained, wherein the angle of inclination of the mobile terminal includes described
The vertical tilt angle of the horizontal tilt angle of mobile terminal and the mobile terminal, the horizontal tilt angle of the mobile terminal
Refer to the side frame of the mobile terminal and horizontal plane is formed by angle, the vertical tilt angle of the mobile terminal refers to institute
It states the side frame of mobile terminal and vertical plane is formed by angle, the vertical plane and the horizontal plane are perpendicular;
If the angle of inclination of the mobile terminal is more than zero and is less than predetermined angle, according to the inclination angle of the mobile terminal
Degree, adjusts camera lens in the camera;
It is taken pictures using camera lens in the camera after adjustment.
2. photographic method as described in claim 1, which is characterized in that if the angle of inclination of the mobile terminal is more than zero
And be less than predetermined angle, then according to the angle of inclination of the mobile terminal, adjusting camera lens in the camera includes:
If the horizontal tilt angle of the mobile terminal is more than zero and is less than predetermined angle, according to the level of the mobile terminal
Angle of inclination, it is zero that camera lens in the camera, which is adjusted to angle is formed by with the horizontal plane,.
3. photographic method as described in claim 1, which is characterized in that if the angle of inclination of the mobile terminal is more than zero and small
In predetermined angle, then according to the angle of inclination of the mobile terminal, adjusting camera lens in the camera includes:
If the vertical tilt angle of the mobile terminal is more than zero and is less than predetermined angle, according to the vertical of the mobile terminal
Angle of inclination, it is zero that camera lens in the camera, which is adjusted to angle is formed by with the vertical plane,.
4. photographic method as described in claim 1, which is characterized in that adjusting camera lens in the camera includes:
Camera lens in the camera is adjusted by motor in the camera.
5. photographic method as described in claim 1, which is characterized in that it is described when opening camera, obtain mobile terminal
Angle of inclination includes:
When opening the camera, if receiving photographing instruction, the angle of inclination of the mobile terminal is obtained.
6. photographic method as described in claim 1, which is characterized in that before the angle of inclination for obtaining mobile terminal, also wrap
It includes:
Opening angle compensation function, wherein the angle compensation function refers to being adjusted according to the angle of inclination of the mobile terminal
The function of camera lens in the camera.
7. such as claim 1 to 6 any one of them photographic method, which is characterized in that using the camera after adjusting
After middle camera lens is taken pictures, further include:
Camera lens in the camera is restored into the state to adjustment.
8. a kind of mobile terminal, which is characterized in that the mobile terminal includes:
Angle acquisition module, for when opening camera, obtaining the angle of inclination of mobile terminal, wherein the mobile terminal
Angle of inclination include the horizontal tilt angle of the mobile terminal and the vertical tilt angle of the mobile terminal, the movement
The horizontal tilt angle of terminal refers to the side frame of the mobile terminal and horizontal plane is formed by angle, the mobile terminal
Vertical tilt angle refers to the side frame of the mobile terminal and vertical plane is formed by angle, the vertical plane and the level
Face is perpendicular;
Lens regulating module, if the angle of inclination for the mobile terminal is more than zero and is less than predetermined angle, according to
The angle of inclination of mobile terminal adjusts camera lens in the camera;
Photo module, for being taken pictures using camera lens in the camera after adjustment.
9. a kind of mobile terminal, including memory, processor and it is stored in the memory and can be on the processor
The computer program of operation, which is characterized in that the processor realizes such as claim 1 to 7 when executing the computer program
The step of any one photographic method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, feature to exist
In being realized as described in any one of claim 1 to 7 the step of photographic method when the computer program is executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810565191.4A CN108769419B (en) | 2018-06-04 | 2018-06-04 | Photographing method, mobile terminal and computer-readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810565191.4A CN108769419B (en) | 2018-06-04 | 2018-06-04 | Photographing method, mobile terminal and computer-readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108769419A true CN108769419A (en) | 2018-11-06 |
CN108769419B CN108769419B (en) | 2021-01-29 |
Family
ID=64002603
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810565191.4A Active CN108769419B (en) | 2018-06-04 | 2018-06-04 | Photographing method, mobile terminal and computer-readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108769419B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020140976A1 (en) * | 2019-01-03 | 2020-07-09 | 北京字节跳动网络技术有限公司 | Image acquisition method, device, point-reading device, electronic device and storage medium |
CN112272267A (en) * | 2020-10-22 | 2021-01-26 | Oppo广东移动通信有限公司 | Shooting control method, shooting control device and electronic equipment |
CN113811058A (en) * | 2020-06-17 | 2021-12-17 | 三赢科技(深圳)有限公司 | Intelligent ultraviolet lamp adjusting method and system, electronic device and storage medium |
CN115190236A (en) * | 2021-04-07 | 2022-10-14 | 深圳市万普拉斯科技有限公司 | Image shooting method and device, computer equipment and storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130335587A1 (en) * | 2012-06-14 | 2013-12-19 | Sony Mobile Communications, Inc. | Terminal device and image capturing method |
KR20140005658A (en) * | 2012-07-06 | 2014-01-15 | 정한결 | Prism module for adjusting angle of coverage and cellularphone having it |
CN105468149A (en) * | 2015-11-19 | 2016-04-06 | 广东小天才科技有限公司 | Method and system for controlling camera to carry out rotation shooting and smart watch |
CN105791703A (en) * | 2016-04-29 | 2016-07-20 | 深圳市金立通信设备有限公司 | Shooting method and terminal |
CN106477028A (en) * | 2016-11-23 | 2017-03-08 | 北京小米移动软件有限公司 | Aircraft and its foot rest structure |
CN107071266A (en) * | 2017-01-17 | 2017-08-18 | 广州市吉星信息科技有限公司 | A kind of high photographing instrument and its method for correcting image |
CN107147841A (en) * | 2017-04-25 | 2017-09-08 | 北京小鸟看看科技有限公司 | A kind of binocular camera method of adjustment, device and system |
CN107809594A (en) * | 2017-11-10 | 2018-03-16 | 维沃移动通信有限公司 | A kind of image pickup method and mobile terminal |
-
2018
- 2018-06-04 CN CN201810565191.4A patent/CN108769419B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130335587A1 (en) * | 2012-06-14 | 2013-12-19 | Sony Mobile Communications, Inc. | Terminal device and image capturing method |
KR20140005658A (en) * | 2012-07-06 | 2014-01-15 | 정한결 | Prism module for adjusting angle of coverage and cellularphone having it |
CN105468149A (en) * | 2015-11-19 | 2016-04-06 | 广东小天才科技有限公司 | Method and system for controlling camera to carry out rotation shooting and smart watch |
CN105791703A (en) * | 2016-04-29 | 2016-07-20 | 深圳市金立通信设备有限公司 | Shooting method and terminal |
CN106477028A (en) * | 2016-11-23 | 2017-03-08 | 北京小米移动软件有限公司 | Aircraft and its foot rest structure |
CN107071266A (en) * | 2017-01-17 | 2017-08-18 | 广州市吉星信息科技有限公司 | A kind of high photographing instrument and its method for correcting image |
CN107147841A (en) * | 2017-04-25 | 2017-09-08 | 北京小鸟看看科技有限公司 | A kind of binocular camera method of adjustment, device and system |
CN107809594A (en) * | 2017-11-10 | 2018-03-16 | 维沃移动通信有限公司 | A kind of image pickup method and mobile terminal |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020140976A1 (en) * | 2019-01-03 | 2020-07-09 | 北京字节跳动网络技术有限公司 | Image acquisition method, device, point-reading device, electronic device and storage medium |
CN111405173A (en) * | 2019-01-03 | 2020-07-10 | 北京字节跳动网络技术有限公司 | Image acquisition method and device, point reading equipment, electronic equipment and storage medium |
CN111405173B (en) * | 2019-01-03 | 2022-08-26 | 北京字节跳动网络技术有限公司 | Image acquisition method and device, point reading equipment, electronic equipment and storage medium |
CN113811058A (en) * | 2020-06-17 | 2021-12-17 | 三赢科技(深圳)有限公司 | Intelligent ultraviolet lamp adjusting method and system, electronic device and storage medium |
CN113811058B (en) * | 2020-06-17 | 2023-08-15 | 三赢科技(深圳)有限公司 | Intelligent ultraviolet lamp adjusting method, intelligent ultraviolet lamp adjusting system, electronic device and storage medium |
CN112272267A (en) * | 2020-10-22 | 2021-01-26 | Oppo广东移动通信有限公司 | Shooting control method, shooting control device and electronic equipment |
CN115190236A (en) * | 2021-04-07 | 2022-10-14 | 深圳市万普拉斯科技有限公司 | Image shooting method and device, computer equipment and storage medium |
CN115190236B (en) * | 2021-04-07 | 2024-05-28 | 深圳市万普拉斯科技有限公司 | Image shooting method, device, computer equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108769419B (en) | 2021-01-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108733342B (en) | Volume adjusting method, mobile terminal and computer readable storage medium | |
CN106454139B (en) | Photographing method and mobile terminal | |
CN108769419A (en) | Photographic method, mobile terminal and computer readable storage medium | |
CN109040603A (en) | High-dynamic-range image acquisition method, device and mobile terminal | |
US20190355122A1 (en) | Device, Method, and Graphical User Interface for Processing Document | |
CN102402363B (en) | Image processing method and system of handheld device | |
CN109086742A (en) | scene recognition method, scene recognition device and mobile terminal | |
CN109120862A (en) | High-dynamic-range image acquisition method, device and mobile terminal | |
CN108874134A (en) | Eyeshield mode treatment method, mobile terminal and computer readable storage medium | |
CN107302666A (en) | Photographic method, mobile terminal and computer-readable recording medium | |
CN110457963B (en) | Display control method, display control device, mobile terminal and computer-readable storage medium | |
CN109361994A (en) | Speaker control method, mobile terminal and computer readable storage medium | |
CN108769545A (en) | A kind of image processing method, image processing apparatus and mobile terminal | |
CN110119733A (en) | Page identification method and device, terminal equipment and computer readable storage medium | |
CN108156368A (en) | A kind of image processing method, terminal and computer readable storage medium | |
CN107741786A (en) | A kind of method, terminal and computer-readable recording medium for starting camera | |
WO2020062908A1 (en) | Method and system for controlling display orientation, and mobile terminal | |
CN107506494B (en) | Document handling method, mobile terminal and computer readable storage medium | |
CN110673944A (en) | Method and device for executing task | |
CN106250111A (en) | A kind of wallpaper acquisition methods and terminal | |
WO2022095640A1 (en) | Method for reconstructing tree-shaped tissue in image, and device and storage medium | |
CN110166696A (en) | Image pickup method, device, terminal device and computer readable storage medium | |
EP4009624A1 (en) | Image display method, image display apparatus, and mobile terminal | |
CN108520186A (en) | Record screen method, mobile terminal and computer readable storage medium | |
CN107864295A (en) | Call control method, mobile terminal and computer-readable recording 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 |