CN108989644A - A kind of camera control method and terminal - Google Patents
A kind of camera control method and terminal Download PDFInfo
- Publication number
- CN108989644A CN108989644A CN201810906377.1A CN201810906377A CN108989644A CN 108989644 A CN108989644 A CN 108989644A CN 201810906377 A CN201810906377 A CN 201810906377A CN 108989644 A CN108989644 A CN 108989644A
- Authority
- CN
- China
- Prior art keywords
- camera
- terminal
- driving
- parameter
- switching
- 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/57—Mechanical or electrical details of cameras or camera modules specially adapted for being embedded in other devices
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/02—Constructional features of telephone sets
- H04M1/0202—Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
- H04M1/026—Details of the structure or mounting of specific components
- H04M1/0264—Details of the structure or mounting of specific components for a camera module assembly
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Studio Devices (AREA)
Abstract
The embodiment of the invention discloses a kind of camera control method and terminals, are related to field of communication technology, to solve the problem of due to the flexible area damage that will lead to FPC contraction of FPC multiplicating in existing terminal thus camera is easy to cause to can not work normally.The camera control method is applied to the terminal including camera, this method comprises: determining target drives parameter in the case where receiving the first input to camera, which is the corresponding driving parameter of target switching cycle;And according to the target drives parameter, camera is driven to stretch out;Wherein, different switching cycles correspond to different maximum stretching strokes, and it is the maximum distance that camera is stretched out according to the corresponding driving parameter of different switching cycles which, which stretches out stroke,.This method can be applied to include in the terminal of camera.
Description
Technical field
The present embodiments relate to field of communication technology more particularly to a kind of camera control method and terminals.
Background technique
With the continuous development of terminal technology, (i.e. camera can be stretched out or be retracted from terminal inner telescopic camera
Terminal inner) in the terminal using more and more extensive.
Currently, terminal can drive camera flexible by the stepper motor in terminal.In camera telescopic process, with
The flexible circuit board (Flexible Printed Circuit, FPC) of camera connection can with the flexible of the camera and
It is flexible.For example, terminal can control camera and stretch out from terminal inner, at this time after user's triggering terminal opens camera applications
FPC can be stretched with the stretching of camera;After user's triggering terminal closes camera applications, terminal can control camera contracting
Terminal inner is returned, FPC can be shunk with the retraction of camera at this time.
However, in above-mentioned camera telescopic process, since the flexible region damage that will lead to FPC bending is repeated several times in FPC
It is bad, it is thus possible to which that will lead to camera can not work normally, to reduce the working life of camera.
Summary of the invention
The embodiment of the present invention provides a kind of camera control method and terminal, to solve due to FPC more times in existing terminal
The problem of repeating the flexible area damage that will lead to FPC contraction, thus camera be easy to cause to can not work normally.
In order to solve the above-mentioned technical problem, the present invention is implemented as follows:
In a first aspect, being applied to terminal the embodiment of the invention provides a kind of camera control method, which includes taking the photograph
As head, this method comprises: determining target drives parameter in the case where receiving the first input to camera, which is driven
Dynamic parameter is the corresponding driving parameter of target switching cycle;And according to the target drives parameter, camera is driven to stretch out;Wherein,
Different switching cycles correspond to different maximum stretching strokes, and it is that camera is corresponding according to different switching cycles which, which stretches out stroke,
Driving parameter stretch out maximum distance.
Second aspect, the embodiment of the invention provides a kind of terminal, which includes camera, determining module and driving mould
Block.Determining module, for determining target drives parameter in the case where receiving the first input to camera, which is driven
Dynamic parameter is the corresponding driving parameter of target switching cycle;Drive module, the target drives for determining according to determining module are joined
Number, driving camera stretch out;Wherein, different switching cycles correspond to different maximum stretching strokes, and it is to take the photograph which, which stretches out stroke,
The maximum distance stretched out as head according to the corresponding driving parameter of different switching cycles.
The third aspect, the embodiment of the invention provides a kind of terminal, which includes processor, memory and is stored in
On reservoir and the computer program that can run on a processor, the computer program realize above-mentioned first party when being executed by processor
The step of camera control method in face.
Fourth aspect, the embodiment of the invention provides a kind of computer readable storage medium, the computer-readable storage mediums
Computer program is stored in matter, which realizes the camera controlling party in above-mentioned first aspect when being executed by processor
The step of method.
In embodiments of the present invention, target drives can be determined in the case where receiving the first input to camera
Parameter (the target drives parameter is the corresponding driving parameter of target switching cycle);And according to the target drives parameter, driving is taken the photograph
As head stretches out;Wherein, different switching cycles correspond to different maximum stretching strokes, and it is camera according to not which, which stretches out stroke,
The maximum distance that corresponding driving parameter is stretched out with switching cycle.With this solution, the embodiment of the present invention passes through with different drives
Dynamic driving parameter camera stretches out, and the maximum stroke difference of stretching out of camera can be made (i.e. so that the maximum of camera stretches out
Stroke changes).Also, since the FPC in terminal can be moved with the movement of camera, the maximum of camera is stretched
Stroke, which changes, out can make the region that FPC is bent in terminal change, so as to avoid FPC for a long time in the same area
The case where bending and FPC caused to be easily damaged, and then the working life with the FPC camera to cooperate can be promoted.
Detailed description of the invention
Fig. 1 is one of the schematic diagram of camera control method provided in an embodiment of the present invention;
Fig. 2 is one of the structural schematic diagram of camera control method provided in an embodiment of the present invention application;
Fig. 3 is the second structural representation of camera control method provided in an embodiment of the present invention application;
Fig. 4 is the two of the schematic diagram of camera control method provided in an embodiment of the present invention;
Fig. 5 is one of the structural schematic diagram of terminal provided in an embodiment of the present invention;
Fig. 6 is the second structural representation of terminal provided in an embodiment of the present invention;
Fig. 7 is the third structural representation of terminal provided in an embodiment of the present invention;
Fig. 8 is the hardware schematic of terminal provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
The terms "and/or" is a kind of incidence relation for describing affiliated partner, indicates may exist three kinds of relationships,
For example, A and/or B, can indicate: individualism A exists simultaneously A and B, these three situations of individualism B.Symbol herein
"/" indicates that affiliated partner is relationship such as A/B expression A or B perhaps.
Term " first " and " second " in description and claims of this specification etc. are for distinguishing different pairs
As, rather than it is used for the particular order of description object.For example, the first driving parameter and the second driving parameter etc. are for distinguishing not
Same driving parameter, rather than the particular order for describing driving parameter.
In embodiments of the present invention, " illustrative " or " such as " etc. words for indicate make example, illustration or explanation.This
Be described as in inventive embodiments " illustrative " or " such as " any embodiment or design scheme be not necessarily to be construed as comparing
Other embodiments or design scheme more preferably or more advantage.Specifically, use " illustrative " or " such as " etc. words purport
Related notion is being presented in specific ways.
In the description of the embodiment of the present invention, unless otherwise indicated, the meaning of " plurality " is refer to two or more,
For example, multiple element refers to two or more element etc..
The embodiment of the present invention provides a kind of camera control method and terminal, and the camera control method and terminal can be
In the case where receiving the first input to camera, determine that (the target drives parameter is target switching week to target drives parameter
Phase corresponding driving parameter);And according to the target drives parameter, camera is driven to stretch out;Wherein, different switching cycles are corresponding not
With it is maximum stretch out stroke, maximum stretch out stroke be camera according to the corresponding driving parameter stretching of different switching cycles most
Big distance.With this solution, the embodiment of the present invention is by that can to image with different driving driving parameter camera stretchings
The maximum of head stretches out stroke difference (i.e. so that the maximum stroke that stretches out of camera changes).Also, due to the FPC in terminal
Can be moved with the movement of camera, thus camera it is maximum stretch out stroke and change FPC in terminal can be made to bend
Region change, so as to avoid FPC for a long time the same area bend and the case where cause FPC to be easily damaged, in turn
The working life with the FPC camera to cooperate can be promoted.
Terminal in the embodiment of the present invention can be mobile terminal, or immobile terminal.Illustratively, mobile whole
End can be mobile phone, tablet computer, laptop, palm PC, car-mounted terminal, wearable device, super mobile personal meter
Calculation machine (ultra-mobile personal computer, UMPC), net book or personal digital assistant (personal
Digital assistant, PDA) etc., immobile terminal can be personal computer (personal computer, PC), electricity
Depending on machine (television, TV), automatic teller machine or self-service machine etc., the embodiment of the present invention is not especially limited.
The executing subject of camera control method provided in an embodiment of the present invention can be above-mentioned terminal, or should
The functional module and/or functional entity that can be realized the camera control method in terminal, specifically can be according to actual use
Demand determines that the embodiment of the present invention is not construed as limiting.Below by taking terminal as an example, to camera controlling party provided in an embodiment of the present invention
Method is illustratively illustrated.
As shown in Figure 1, the embodiment of the present invention provides a kind of camera control method, which can be applied
In terminal, which may include camera, which may include following step 100- steps 101.
Step 100, terminal determine target drives parameter in the case where receiving the first input to camera.
Wherein, above-mentioned target drives parameter can be the corresponding driving parameter of target switching cycle.
In the embodiment of the present invention, if user needs to shoot using camera, at this time when camera is located in terminal
When portion (for example, the camera applications in terminal are in close state), user can be by the first input triggering to camera eventually
Camera applications are opened at end, are stretched out with triggering camera from terminal inner.It should be noted that above-mentioned camera is located at terminal inner
The case where may include following two situation: camera can be entirely located in terminal inner, can also partially be located at terminal inner,
It can specifically be determined according to actual use demand, the embodiment of the present invention is not construed as limiting.
Optionally, in the embodiment of the present invention, above-mentioned the first input to camera can be user to the camera in terminal
The input of application, or input of the user to the control in terminal for triggering camera applications unlatching is also possible to other
It is any possible (such as automatic trigger camera when through face recognition solution lock screen or payment to be opened for triggering camera applications
Using opening) the input input to camera of routine call (pass through), can also be other any possible for touching
The input that hair camera is stretched out from terminal inner can specifically determine that the embodiment of the present invention is not limited according to actual use demand
It is fixed.
In the embodiment of the present invention, different switching cycles correspond to different driving parameters.Optionally, switching cycle may include
The driving parameter of first switching cycle and the second switching cycle, camera corresponding with first switching cycle can drive for first
The driving parameter of dynamic parameter, camera corresponding with second switching cycle can be the second driving parameter.
In the embodiment of the present invention, above-mentioned target switching cycle can be (as described below by judging whether to meet condition
Switching condition) it determines, i.e., when meeting condition, the switching cycle after switching and switch between different switching cycles is mesh
Mark switching cycle.
Step 101, terminal drive camera to stretch out according to the target drives parameter.
Wherein, above-mentioned different switching cycles correspond to different maximum stretching strokes, which stretches out stroke and press for camera
The maximum distance stretched out according to the corresponding driving parameter of different switching cycles.That is, terminal is according to the first driving driving parameter camera
The maximum distance stretched out from terminal inner and the maximum distance stretched out according to the second driving driving parameter camera from terminal inner
It is different.
In the embodiment of the present invention, if target drives parameter change, then terminal is according to target drives driving parameter camera
The maximum distance (i.e. maximum to stretch out stroke) stretched out from terminal inner is also corresponding to be changed.Specifically, can will be driven according to first
The mobile maximum distance of driving parameter camera is known as the first maximum stretching stroke;And it will be according to the second driving driving parameter camera shooting
The mobile maximum distance of head is known as the second maximum stretching stroke.
In the embodiment of the present invention, the above-mentioned first maximum stretching stroke is different from the above-mentioned second maximum stretching stroke.Optionally,
Above-mentioned first it is maximum stretch out stroke and can be greater than above-mentioned second maximum stretch out stroke or the above-mentioned first maximum stroke that stretches out can be with
It is maximum less than above-mentioned second to stretch out stroke.
Optionally, in the embodiment of the present invention, switching cycle may include the first switching cycle and the second switching cycle, this
One switching cycle can correspond to the first maximum stretching stroke, which can correspond to the second maximum stretching stroke.
It should be noted that in the embodiment of the present invention, in order to enable terminal control camera stretches out most from terminal inner
Big distance changes, and terminal can be stretched out with different driving driving parameter cameras from terminal inner.I.e. terminal can be controlled
The driving parameter of camera processed alternately switches between different driving parameters.Specifically, terminal can meet following switchings
In the case where condition, the driving parameter for controlling camera alternately switches between different driving parameters.
Optionally, in the embodiment of the present invention, in the case where meeting any one of following switching condition I, II and III,
It can switch between different switching cycles:
I, the input that triggering camera stretches out is received.
II, target time section are greater than or equal to preset time threshold, which can be the first moment to second
Period between moment, at the beginning of which can be for a switching cycle, which can be terminal
At the time of receiving the input that triggering camera stretches out.
III, flexible number reach preset times threshold value, which can be corresponding according to a switching cycle for terminal
Driving driving parameter camera stretch out number or retraction number.
Separately below by taking first embodiment, second embodiment and third embodiment as an example, it is discussed in detail upper
State the specific implementation of the driving parameter switching of terminal control camera when each switching condition enumerated meets respectively.
Where it is assumed that switching cycle includes the first switching cycle and the second switching cycle, wherein first switching cycle pair
The first driving parameter is answered, the first driving parameter corresponding first is maximum to stretch out stroke and second switching cycle corresponding second
Parameter is driven, the maximum stretching stroke of the second driving parameter corresponding second;And it is cut being switched to second from the first switching cycle
When changing the period, the driving parameter that terminal can control camera drives parameter, Huo Zhe from the first driving parameter switching for second
When being switched to the first switching cycle from the second switching cycle, the driving parameter that terminal can control camera drives parameter from second
It is switched to the first driving parameter, wherein the switching cycle after switching is target switching cycle, switches the driving parameter of rear camera
For target drives parameter.
Moreover, it is assumed that in terminal inner, camera state in which is denoted as original state by camera, by terminal according to
The stretching state of camera is denoted as A condition when first driving driving parameter camera is stretched out from terminal inner, and terminal is pressed
The stretching state of camera is denoted as B state when stretching out according to the second driving driving parameter camera from terminal inner.
First embodiment (switching condition shown in corresponding above-mentioned I)
In the embodiment of the present invention, in the case where terminal receives the first input to camera, received if terminal determines
The input stretched out to triggering camera, then terminal, which can determine, meets switching condition, it can determination is cut from the second switching cycle
Be changed to the first switching cycle (i.e. target switching cycle), and terminal can control the driving parameter of camera from the second switching
Period corresponding second driving parameter switching is the first driving parameter (i.e. target drives parameter) corresponding with the first switching cycle,
And terminal can be stretched out according to the first driving driving parameter camera from terminal inner, the maximum distance that camera stretches out is
First maximum stretching stroke (at this point, the stretching state of camera is A condition).
Further, in the embodiment of the present invention, since terminal can be with the driving parameter of camera in different driving parameters
Between toggle, therefore the driving parameter switching of camera be first driving parameter after, i.e. the current driving of camera
Parameter is the first driving parameter, if terminal receives the first input to camera, if terminal determination receives triggering
The input that camera stretches out, then terminal, which can also determine, meets switching condition, it can determination is switched to from the first switching cycle
Second switching cycle (i.e. target switching cycle), and terminal can control the driving parameter of camera from the first current driving
Parameter switching is that the second driving parameter (i.e. target drives parameter) corresponding with the second switching cycle and terminal can be according to these
Second driving driving parameter camera is stretched out from terminal inner, and the maximum distance that camera stretches out is that the second maximum stretches out stroke
(at this point, the stretching state of camera is B state).
It is appreciated that, once terminal receives the input that triggering camera stretches out, terminal can be true in present embodiment
Surely switching condition (i.e. no matter which driving parameter is current driving parameter be, terminal determination meets switching condition) met, i.e.,
It can determine and switch between different switching cycles, and switch the driving parameter of camera.For example, if camera is current
Driving parameter is the first driving parameter, then terminal can by the current driving parameter of camera from the first driving parameter switching be the
Two driving parameters, if the current driving parameter of camera is the second driving parameter, the drive that terminal can be current by camera
Dynamic parameter drives parameter from the second driving parameter switching for first, that is to say, that terminal can control the driving parameter of camera
Alternately switch between the first driving parameter and the second driving parameter.Correspondingly, terminal can control the stretching state of camera
Alternately switch between A condition and B state, i.e. A condition-B state-A condition-B state-....
Second embodiment (switching condition shown in corresponding above-mentioned II)
In the embodiment of the present invention, in the case where terminal receives the first input to camera, if terminal determines target
Period is greater than or equal to preset time threshold, then terminal, which can determine, meets switching condition, it can determines from the second switching
Period is switched to the first switching cycle (i.e. target switching cycle), and terminal can control the driving parameter of camera from
The corresponding second driving parameter switching of two switching cycles is the first driving parameter (i.e. target drives corresponding with the first switching cycle
Parameter) and terminal can according to this first driving driving parameter camera from terminal inner stretch out, camera stretch out maximum
Distance is the first maximum stretching stroke (at this point, the stretching state of camera is A condition).
Further, in the embodiment of the present invention, since terminal can be with the driving parameter of camera in different driving parameters
Between toggle, therefore the driving parameter switching of camera be first driving parameter after, i.e. the current driving of camera
Parameter is the first driving parameter, if terminal receives the first input to camera, if terminal determines target time section
More than or equal to preset time threshold, then terminal, which can also determine, meets switching condition, it can determines from the first switching cycle
It is switched to the second switching cycle (i.e. target switching cycle), and terminal can control the driving parameter of camera from current
One driving parameter switching is that the second driving parameter (i.e. target drives parameter) corresponding with the second switching cycle and terminal can be with
It is stretched out according to the second driving driving parameter camera from terminal inner, the maximum distance that camera stretches out is that the second maximum is stretched out
Stroke (at this point, the stretching state of camera is B state).As a result, terminal can control the stretching state of camera in A condition and
It is periodically switched between B state.
It is appreciated that being from a driving parameter switching in the driving parameter of terminal control camera in present embodiment
After another driving parameter, if terminal receives the first input to camera, once terminal determines the object time
Section be greater than or equal to preset time threshold, terminal, which is assured that, meets switching condition, it can determine different switching cycles it
Between switch, and switch the driving parameter of camera.The driving parameter and terminal control of terminal switching camera are taken the photograph
As head stretching state switch description specifically may refer to the associated description in above-mentioned first embodiment, herein no longer go to live in the household of one's in-laws on getting married
It states.
In the embodiment of the present invention, above-mentioned preset time threshold can be a week, one month or 1 year etc., specifically may be used
To determine that the embodiment of the present invention is not construed as limiting according to actual use demand.
Third embodiment (switching condition shown in corresponding above-mentioned III)
In the embodiment of the present invention, in the case where terminal receives the first input to camera, stretch if terminal determines
Number reaches preset times threshold value, then terminal, which can determine, meets switching condition, it can determines and switches from the second switching cycle
For the first switching cycle (i.e. target switching cycle), and terminal can control the driving parameter of camera from the second switching week
Phase corresponding second driving parameter switching is the first driving parameter (i.e. target drives parameter) corresponding with the first switching cycle, with
And terminal can be stretched out according to the first driving driving parameter camera from terminal inner, the maximum distance that camera stretches out is the
One maximum stretching stroke (at this point, the stretching state of camera is A condition).
Further, in the embodiment of the present invention, since terminal can be with the driving parameter of camera in different driving parameters
Between toggle, therefore the driving parameter switching of camera be first driving parameter after, i.e. the current driving of camera
Parameter is the first driving parameter, if terminal receives the first input to camera, if terminal determines that flexible number reaches
To preset times threshold value, then terminal, which can also determine, meets switching condition, it can determines from the first switching cycle and is switched to the
Two switching cycles (i.e. target switching cycle), and terminal can control the driving parameter of camera from the first current driving ginseng
Number be switched to the second driving parameter (i.e. target drives parameter) corresponding with the second switching cycle and terminal can according to this
Two driving driving parameter cameras are stretched out from terminal inner, and the maximum distance that camera stretches out is that the second maximum stretches out stroke (this
When, the stretching state of camera is B state).Terminal can control the stretching state of camera in A according to flexible number as a result,
It is switched between state and B state.
It is appreciated that being from a driving parameter switching in the driving parameter of terminal control camera in present embodiment
After another driving parameter, if terminal receives the first input to camera, once terminal determines flexible number
Reach preset times threshold value, terminal, which is assured that, meets switching condition, it can determines and cuts between different switching cycles
It changes, and switches the driving parameter of camera.The driving parameter of camera and stretching for terminal control camera are switched for terminal
The description of switching of doing well specifically may refer to associated description in above-mentioned first embodiment, and details are not described herein again.
In the embodiment of the present invention, above-mentioned preset times threshold value can be inferior for 100 times, 1000 times or 5000, specifically may be used
To determine that the embodiment of the present invention is not construed as limiting according to actual use demand.
It should be noted that camera is after terminal inner stretching and retracts terminal inner, it can indicate that camera is completed
It is primary flexible.That is, camera is stretched out primary and retracted once, indicate that flexible number is primary.In this way, system can be passed through
It counts the stretching number of camera or retracts number and obtain the flexible number of camera.
It should be noted that for ease illustration and understanding, including with the driving parameter of camera in the embodiment of the present invention
Schematically illustrate for first driving parameter and the second driving parameter.In the specific implementation, the driving parameter of camera can not
It is limited to above two driving parameter.Correspondingly, it is stretched out most according to the driving driving parameter camera of camera from terminal inner
Big distance can also be not limited to above-mentioned two distance (the i.e. first maximum stretching stroke and the second maximum stretch out stroke).It specifically can be with
Determine that the embodiment of the present invention is not construed as limiting according to actual use demand.
It with this solution, can be by judging whether that meeting above-mentioned switching condition determines whether different switching cycles are cut
Change, determine different switching cycles switch (switching cycle be target switching cycle) after switching when, determination is cut with target
Period corresponding target drives parameter is changed, and is stretched out according to target drives driving parameter camera, and then realizes terminal to camera shooting
Head accurately controls.
Optionally, in the embodiment of the present invention, the driving parameter of camera may include in driving speed and driving time
At least one of.I.e. terminal can be stretched according at least one driving camera in driving speed and driving time from terminal inner
Out.
Optionally, in the embodiment of the present invention, terminal can be joined by the drive module in controlling terminal according to the first driving
Number driving camera is stretched out from terminal inner.It is instructed specifically, terminal can be sent to the drive module, to indicate the driving mould
Block is stretched out according to the first driving driving parameter camera from terminal inner, and then drive module is after receiving the instruction, according to
First driving driving parameter camera is stretched out from terminal inner.
Optionally, in the embodiment of the present invention, above-mentioned drive module can be motor, or other any possible forms
Drive module, specifically can determine that the embodiment of the present invention be not construed as limiting according to actual use demand.Wherein, said motor can
Think the horse of the arbitrarily possible form such as electric motor, hydraulic motor, air motor, stepper motor, variable speed driver or constant speed motor
It reaches.For ease of description, illustratively illustrated so that drive module is motor as an example herein.
In the embodiment of the present invention, if terminal drives camera mobile by control motor, then the driving of camera is joined
Number may include in the revolving speed (i.e. above-mentioned driving speed) of motor and the rotation time (i.e. above-mentioned driving time) of motor at least
One.
Specifically, camera can be arranged by the revolving speed and rotation time of setting motor in terminal in the embodiment of the present invention
Driving parameter.Illustratively, terminal can set the revolving speed of motor to the first revolving speed, and the rotation time of motor is set
It is set at the first time, alternatively, terminal can set the revolving speed of motor to the second revolving speed, and the rotation time of motor is arranged
For the second time.
It is appreciated that the revolving speed of motor is bigger, rotation time is longer, motor drives camera to stretch out most from terminal inner
Big distance is bigger.For example, the rotation time of motor is longer under conditions of the revolving speed of motor is certain, motor drive camera from
The maximum distance that terminal inner stretches out is bigger.Under conditions of the rotation time of motor is certain, the revolving speed of motor is bigger, and motor drives
The maximum distance that dynamic camera is stretched out from terminal inner is bigger.
Optionally, in the embodiment of the present invention, usually in the case where motor determines, the revolving speed of motor is fixed and invariable,
The driving parameter of camera can be arranged by the way that the rotation time of motor is arranged in such terminal.Illustratively, it is assumed that motor
Revolving speed is the first revolving speed, and the driving parameter that camera when the rotation time of motor is first time can be set in terminal is the first drive
Dynamic parameter;And the driving parameter that camera when the rotation time of motor was the second time can be set in terminal is the second driving ginseng
Number.
It is appreciated that in the embodiment of the present invention, under conditions of motor rotary speed immobilizes, if the first rotation time is greater than
Second rotation time, then the above-mentioned first maximum stroke that stretches out is greater than the above-mentioned second maximum stretching stroke;If the first rotation time is small
In the second rotation time, then the above-mentioned first maximum stroke that stretches out is less than the above-mentioned second maximum stretching stroke.
By this programme, terminal can drive camera from terminal according at least one in driving speed and driving time
Inside is stretched out, and can be controlled the maximum of camera by changing at least one in driving speed and driving time and be stretched out row
Journey changes, to realize that terminal accurately controls camera.
Below in conjunction with Fig. 2, Fig. 3 and it is above-mentioned enumerate between each different switching cycles the condition of satisfaction of switching, in detail
Describe the specific implementation of bright camera control method provided in an embodiment of the present invention in detail.
When being in initial position Fig. 2 shows camera, when the stretching state of camera is A condition and camera
Structural schematic diagram when stretching state is B state.
As shown in a in Fig. 2, when camera 20 is in initial position, camera 20 is located at terminal inner, wherein camera shooting
First 20 are connect (as shown in the dotted ellipse in figure) with motor 21 by bracket, and camera 20 is electrically connected with FPC 22.
As shown in b in Fig. 2, when the stretching state of camera is A condition, the maximum distance that camera 20 is stretched out from terminal inner is (i.e.
Camera is moved to the distance of the camera present position in A condition from initial position) it is the first maximum stretching stroke X;Accordingly
Ground, FPC 22 are moved with the movement of camera 20, and the bending region of the FPC 22 is 23 at this time.As shown in c in Fig. 2,
When the stretching state of camera is B state, (i.e. camera moves the maximum distance that camera is stretched out from terminal inner from initial position
Move the distance of the camera present position in B state) it is the second maximum stretching stroke (X+Y);Correspondingly, connect with camera 20
The FPC 22 connect is moved with the movement of camera 20, and the bending region of the FPC 22 is 24 at this time.
As shown in Fig. 2, the bending region 23 of FPC 22 is different from bending region 24.That is, camera is mobile most
Big distance is different, and correspondingly the bending region of FPC is also different.The embodiment of the present invention is by bending the FPC in terminal as a result,
Region changes, and can bend the case where cause FPC to be easily damaged, and then can mention in the same area for a long time to avoid FPC
Rise the working life with the FPC camera to cooperate.
In conjunction with Fig. 2, Fig. 3 further illustrate camera be in initial position when, camera stretching state be A condition
When, camera stretching state be B state when structural schematic diagram.
As shown in a in Fig. 3, when camera 20 is in initial position (i.e. original state), camera 20 is located at terminal
In shell 25, it is assumed that using the central point O of camera as the initial position reference point of camera, then as shown in a in Fig. 3, camera shooting
Vertical range between the first side (side that camera stretches out i.e. in terminal) of the shell 25 of the light hole and terminal of head is (i.e.
Vertical range of the central point O of camera to first side) it is X1.It is A shape in the stretching state of camera as shown in b in Fig. 3
When state, the first maximum that camera 20 is stretched out from terminal inner stretches out stroke X are as follows: X=X1+X2;Wherein, X2=H*tan (α/
2), α is the field angle of camera, and H is the field angle focus of camera and the display of terminal when camera is in original state
Vertical range between screen 26, wherein the value of X2, can be to avoid premised on terminal structure does not influence the field angle of camera
There is structure occlusion issue.As shown in c in Fig. 3, when the stretching state of camera is B state, camera 20 is from terminal inner
The maximum stroke that stretches out of second stretched out is (X+Y).
In the embodiment of the present invention, terminal can be set that the revolving speed of motor is fixed value V and the rotation time of motor is T1,
So terminal can control the camera 20 is stretched out from terminal inner first maximum stretching stroke X=V*T1.Terminal can be set
The revolving speed of motor is fixed value V and the rotation time of motor is T2, then terminal can control camera 20 from terminal inner
First stretched out is maximum to stretch out stroke (X+Y)=V*T2.
Optionally, in the embodiment of the present invention, the value of above-mentioned Y can be any number of 0.5mm (millimeter) into 2mm,
Or other any numbers for meeting the actual needs, it can specifically be determined according to actual use demand, the present invention is real
Example is applied to be not construed as limiting.Correspondingly, in the embodiment of the present invention, the length of the FPC in terminal can be for the FPC's in existing terminal
Increase length L on the basis of length, the value of length L can be greater than or equal to the value of Y.
Camera control method provided in an embodiment of the present invention, can be the case where receiving the first input to camera
Under, determine target drives parameter (the target drives parameter is the corresponding driving parameter of target switching cycle);And according to the target
Parameter is driven, driving camera stretches out;Wherein, different switching cycles correspond to different maximum stretching strokes, which stretches out row
Journey is the maximum distance that camera is stretched out according to the corresponding driving parameter of different switching cycles.With this solution, the present invention is implemented
Example by with different driving driving parameter camera stretchings, can make camera it is maximum stretch out stroke it is different (i.e. so that
The maximum stroke that stretches out of camera changes).Also, since the FPC in terminal can be moved with the movement of camera, because
The maximum stretching stroke of this camera changes and the region that FPC is bent in terminal can be made to change, so as to avoid
FPC is bent the case where cause FPC to be easily damaged in the same area for a long time, and then can promote the camera shooting to cooperate with FPC
The working life of head.
Optionally, in conjunction with Fig. 1, as shown in figure 4, after step 101, camera controlling party provided in an embodiment of the present invention
Method can also include the steps that following 102.
Step 102, terminal are in the case where receiving the second input to camera, according to target drives parameter, driving
Camera retracts.
In the embodiment of the present invention, the second input can be user to moving back on terminal interface (such as interface of camera applications)
The input of control out, or user exits the input of key (such as homepage key) to the physics of terminal, specifically can basis
Actual use demand determines that the embodiment of the present invention is not construed as limiting.
In the embodiment of the present invention, terminal can be in response to the first input to camera, according to the first driving driving parameter
Camera is stretched out from terminal inner, and certain terminal may also respond to the second input of user, is driven according to the first driving parameter
Dynamic camera retracts terminal inner.It is appreciated that due to the driving ginseng used when final drive camera is stretched out from terminal inner
Number, the driving used when final drive camera retracts terminal inner after terminal inner stretching with final drive camera are joined
Number is identical, therefore the maximum distance stretched out according to the driving driving parameter camera from terminal inner of terminal and terminal are according to the drive
The maximum distance that dynamic driving parameter camera retracts terminal inner is equal.It so, it is possible to guarantee final drive camera from terminal
Inside may return to the initial position of terminal inner after stretching out, so as to accurately control the flexible of camera.
It should be noted that above-mentioned steps 100- step 101 describes what driving camera stretched out in the embodiment of the present invention
Process, above-mentioned steps 102 describe the process that driving camera retracts.The difference is that above-mentioned steps 100- step 101 is
It is executed in the case where camera is located at terminal inner, and needs to sentence during executing above-mentioned steps 100- step 101
Whether disconnected switching condition meets;And above-mentioned steps 102 are to execute in the case where camera is located at exterior of terminal, and execute
Above-mentioned steps 102 are adopted when need to only stretch out according to final drive camera from terminal inner without judging whether switching condition meets
Driving driving parameter camera retracts terminal inner.
By this programme, can stretched out according to the first driving driving parameter camera from terminal inner and then according to
The first driving driving parameter camera retracts terminal inner, so that camera can be retracted into after terminal inner stretching
The initial position of camera, to realize that terminal accurately controls camera.
Optionally, in the embodiment of the present invention, corresponding to above-mentioned different switching condition, terminal can execute different move
Make.Separately below under different switching conditions, the movement that terminal executes illustratively is enumerated.
In a kind of possible implementation, when above-mentioned switching condition are as follows: when flexible number reaches preset times threshold value, upper
After the step 102 stated, camera control method provided in an embodiment of the present invention can also include the steps that following 103.
Flexible number is increased N by step 103, terminal.
Wherein, N can be default value, and N can be positive integer.
In the embodiment of the present invention, in terminal in response to the second input of user, according to the first driving driving parameter camera
After retracting terminal inner, flexible number can be increased N by terminal, with accumulative flexible number, in order to which terminal judges camera
Flexible number whether reach preset times threshold value, to judge whether to meet switching condition.
Optionally, in the embodiment of the present invention, above-mentioned N can be 1, or 2, or 10, it can also be other
Any positive integer met the actual needs can specifically determine that the embodiment of the present invention is not limited according to actual use demand
It is fixed.
Optionally, in the embodiment of the present invention, above-mentioned terminal can realize flexible number increase N by counter, can also
To be realized by counting procedure, can also be realized by the counting module of any other form, it specifically can be according to actual use
Demand determines that the embodiment of the present invention is not construed as limiting.
In alternatively possible implementation, work as switching condition are as follows: target time section is greater than or equal to preset time threshold
When, camera control method provided in an embodiment of the present invention can also include the steps that following 104.
Step 104, in the case where meeting switching condition, target time section is set the first initial value by terminal.
In the embodiment of the present invention, above-mentioned first initial value can be zero, or any other numerical value specifically may be used
To determine that the embodiment of the present invention is not construed as limiting according to actual use demand.
It illustratively, is that target time section is greater than or equal to preset time threshold in switching condition in the embodiment of the present invention
In the case where, if terminal judges that target time section is greater than or equal to preset time threshold (expression meets switching condition),
Target time section can be reset to zero by terminal, and then terminal can add up target time section again to target time section, such as
When can add up target again in the case where the driving parameter of camera is the first driving parameter from the second driving parameter switching
Between section.
In another possible implementation, work as switching condition are as follows: when flexible number reaches preset times threshold value, the present invention
The camera control method that embodiment provides can also include the steps that following 105.
Step 105, in the case where meeting switching condition, flexible number is set the second initial value by terminal.
In the embodiment of the present invention, above-mentioned second initial value can be zero, or other to meet the actual needs
Any number, specifically can determine that the embodiment of the present invention be not construed as limiting according to actual use demand.
Illustratively, in the embodiment of the present invention, in the case where switching condition is that flexible number reaches preset times threshold value,
If terminal can be by flexible number after terminal judges that flexible number reaches preset times threshold value (expression meets switching condition)
Reset to zero, and then terminal can add up flexible number again to flexible number, for example, camera driving parameter from second
Add up flexible number again in the case where driving parameter switching to drive parameter for first.
It is appreciated that camera is located at terminal inner, terminal receives the first input to camera and meets switching
In the case where condition, the driving that terminal can switch camera according to camera control method provided in an embodiment of the present invention is joined
Number, and stretched out according to the driving driving parameter camera after switching from terminal inner.And it is stretched out in camera from terminal inner
Later, terminal can retract terminal inner according still further to the driving driving parameter camera.
With this solution, can by the way that target time section or flexible number are reset when judgement meets switching condition, into
And accumulative target time section or again accumulative flexible number again, to be convenient for sentencing when triggering camera and stretching out from terminal inner
It is disconnected whether to meet switching condition, and then realize that terminal accurately controls camera.
As shown in figure 5, the embodiment of the present invention provides a kind of terminal 300, which includes camera, and can be with
Including determining module 301 and drive module 302, (drive module 302 can be used for driving camera mobile, for example, can drive
Dynamic camera stretches out from terminal inner or retracts terminal inner).
Determining module 301, for determining target drives parameter in the case where receiving the first input to camera,
The target drives parameter is the corresponding driving parameter of target switching cycle;Drive module 302, for true according to determining module 301
Fixed target drives parameter, driving camera stretch out;Wherein, different switching cycles correspond to different maximum stretching strokes, this is most
The big stroke that stretches out is the maximum distance that camera is stretched out according to the corresponding driving parameter of different switching cycles.
Optionally, in the embodiment of the present invention, switching meets any one of the following conditions between different switching cycles: receiving
It is greater than or equal to preset time threshold to the input of triggering camera stretching, target time section and flexible number reaches default
Frequency threshold value.Wherein, above-mentioned target time section is the first moment to the period between the second moment, which can be
At the beginning of one switching cycle, which can be at the time of receiving the input that triggering camera stretches out;It is above-mentioned
Flexible number is the number according to the corresponding driving driving parameter camera number stretched out of a switching cycle or retraction.
Optionally, in the embodiment of the present invention, drive module 302 is also used to drive camera according to target drives parameter
After stretching, in the case where receiving the second input to camera, according to target drives parameter, camera is driven to retract.
Optionally, in the embodiment of the present invention, different switching cycles may include the first switching cycle and the second switching cycle,
First switching cycle corresponding first is maximum to stretch out stroke X, and second switching cycle corresponding second is maximum to stretch out stroke X+Y.Its
In, X=X1+H*tan (α/2);X1 can be the light hole of camera and first in the case where camera is in original state
Vertical range between side, the first side are the side that camera stretches out in terminal;α can be the field angle of camera;H
It can be vertical between the field angle focus and the display screen of terminal of camera in the case where camera is in original state
Distance;Y can be any number between 0.5 millimeter~2 millimeters.
Optionally, in the embodiment of the present invention, above-mentioned condition can be with are as follows: flexible number reaches preset times threshold value.In conjunction with figure
5, as shown in fig. 6, terminal provided in an embodiment of the present invention 300 can also include counting module 303.
Counting module 303, for being retracted in terminal 300 in drive module 302 according to the first driving driving parameter camera
After portion, flexible number is increased into N, N is default value, and N is positive integer.
Optionally, in conjunction with Fig. 5, as shown in fig. 7, terminal provided in an embodiment of the present invention 300 can also include setup module
304。
Optionally, in the embodiment of the present invention, setup module 304, for being that target time section is greater than or equal in advance in condition
If time threshold and in the case where meeting the condition, the first initial value is set by target time section.
Optionally, in the embodiment of the present invention, setup module 304 is also used in condition be that flexible number reaches preset times
Threshold value and in the case where meeting the condition, sets the second initial value for flexible number.
Optionally, in the embodiment of the present invention, the driving parameter of above-mentioned camera may include driving speed and driving time
At least one of in.
Terminal provided in an embodiment of the present invention can be realized each process that terminal is realized in above method embodiment, to keep away
Exempt to repeat, which is not described herein again.
Terminal provided in an embodiment of the present invention can determine mesh in the case where receiving the first input to camera
Mark driving parameter (the target drives parameter is the corresponding driving parameter of target switching cycle);And according to the target drives parameter,
Camera is driven to stretch out;Wherein, different switching cycles correspond to different maximum stretching strokes, and it is camera which, which stretches out stroke,
The maximum distance stretched out according to the corresponding driving parameter of different switching cycles.With this solution, the embodiment of the present invention passes through with not
With driving driving parameter camera stretch out, can make camera it is maximum stretch out stroke it is different (i.e. so that camera most
The big stroke that stretches out changes).Also, since the FPC in terminal can be moved with the movement of camera, camera
Maximum, which stretches out stroke and changes, can make the region that FPC is bent in terminal change, so as to avoid FPC for a long time same
The case where one region bends and FPC is caused to be easily damaged, and then the work longevity with the FPC camera to cooperate can be promoted
Life.
A kind of hardware structural diagram of Fig. 8 terminal of each embodiment to realize the present invention.As shown in figure 8, the terminal
800 include but is not limited to: radio frequency unit 801, network module 802, audio output unit 803, input unit 804, sensor
805, display unit 806, user input unit 807, interface unit 808, memory 809, processor 810 and power supply 811 etc.
Component.It will be understood by those skilled in the art that the restriction of the not structure paired terminal of terminal structure shown in Fig. 8, terminal can be with
Including perhaps combining certain components or different component layouts than illustrating more or fewer components.In the embodiment of the present invention
In, terminal include but is not limited to mobile phone, tablet computer, laptop, palm PC, car-mounted terminal, wearable device and
Pedometer etc..
Wherein, processor 810, for determining that target drives are joined in the case where receiving the first input to camera
Number, and according to the target drives parameter, drive camera to stretch out;Wherein, the target drives parameter is corresponding for target switching cycle
Driving parameter;Different switching cycles correspond to different maximum stretching strokes, and it is camera according to difference which, which stretches out stroke,
The maximum distance that the corresponding driving parameter of switching cycle is stretched out.
The embodiment of the present invention provides a kind of terminal, which can be by being stretched with different driving driving parameter cameras
Out, so that the maximum of camera stretches out stroke difference (i.e. so that the maximum stroke that stretches out of camera changes).Also, due to
FPC in terminal can be moved with the movement of camera, thus camera it is maximum stretch out stroke and change can make end
The region that FPC is bent in end changes, and causes FPC to be easily damaged so as to avoid FPC from bending for a long time in the same area
The case where, and then the working life with the FPC camera to cooperate can be promoted.
It should be understood that the embodiment of the present invention in, radio frequency unit 801 can be used for receiving and sending messages or communication process in, signal
Send and receive, specifically, by from base station downlink data receive after, to processor 810 handle;In addition, by uplink
Data are sent to base station.In general, radio frequency unit 801 includes but is not limited to antenna, at least one amplifier, transceiver, coupling
Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 801 can also by wireless communication system and network and other set
Standby communication.
Terminal provides wireless broadband internet by network module 802 for user and accesses, and such as user is helped to receive and dispatch electricity
Sub- mail, browsing webpage and access streaming video etc..
Audio output unit 803 can be received by radio frequency unit 801 or network module 802 or in memory 809
The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 803 can also provide and end
The relevant audio output of specific function (for example, call signal receives sound, message sink sound etc.) that end 800 executes.Sound
Frequency output unit 803 includes loudspeaker, buzzer and receiver etc..
Input unit 804 is for receiving audio or video signal.Input unit 804 may include graphics processor
(graphics processing unit, GPU) 8041 and microphone 8042, graphics processor 8041 is in video acquisition mode
Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out
Reason.Treated, and picture frame may be displayed on display unit 806.Through graphics processor 8041, treated that picture frame can be deposited
Storage is sent in memory 809 (or other storage mediums) or via radio frequency unit 801 or network module 802.Mike
Wind 8042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be
The format output that mobile communication base station can be sent to via radio frequency unit 801 is converted in the case where telephone calling model.
Terminal 800 further includes at least one sensor 805, such as optical sensor, motion sensor and other sensors.
Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ambient light
Light and shade adjusts the brightness of display panel 8061, and proximity sensor can close display panel when terminal 800 is moved in one's ear
8061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (generally three axis) and add
The size of speed can detect that size and the direction of gravity when static, can be used to identify terminal posture (such as horizontal/vertical screen switching,
Dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Sensor 805 can be with
Including fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, hygrometer, thermometer,
Infrared sensor etc., details are not described herein.
Display unit 806 is for showing information input by user or being supplied to the information of user.Display unit 806 can wrap
Display panel 8061 is included, liquid crystal display (liquid crystal display, LCD), Organic Light Emitting Diode can be used
Forms such as (organic light-emitting diode, OLED) configure display panel 8061.
User input unit 807 can be used for receiving the number or character information of input, and generates and set with the user of terminal
It sets and the related key signals of function control inputs.Specifically, user input unit 807 include touch panel 8071 and other
Input equipment 8072.Touch panel 8071, also referred to as touch screen, collect user on it or nearby touch operation (such as
User is using any suitable objects or attachment such as finger, stylus on touch panel 8071 or near touch panel 8071
Operation).Touch panel 8071 may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus is examined
The touch orientation of user is surveyed, and detects touch operation bring signal, transmits a signal to touch controller;Touch controller from
Touch information is received on touch detecting apparatus, and is converted into contact coordinate, then gives processor 810, receives processor 810
The order sent simultaneously is executed.Furthermore, it is possible to using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves
Realize touch panel 8071.In addition to touch panel 8071, user input unit 807 can also include other input equipments 8072.
Specifically, other input equipments 8072 can include but is not limited to physical keyboard, function key (such as volume control button, switch
Key etc.), trace ball, mouse, operating stick, details are not described herein.
Further, touch panel 8071 can be covered on display panel 8061, when touch panel 8071 is detected at it
On or near touch operation after, send processor 810 to determine the type of touch event, be followed by subsequent processing device 810 according to touching
The type for touching event provides corresponding visual output on display panel 8061.Although in fig. 8, touch panel 8071 and display
Panel 8061 is the function that outputs and inputs of realizing terminal as two independent components, but in certain embodiments, it can
The function that outputs and inputs of terminal is realized so that touch panel 8071 and display panel 8061 is integrated, is not limited herein specifically
It is fixed.
Interface unit 808 is the interface that external device (ED) is connect with terminal 800.For example, external device (ED) may include it is wired or
Wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, memory card port,
For connecting port, the port audio input/output (I/O), video i/o port, ear port of the device with identification module
Etc..Interface unit 808 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and will
One or more elements that the input received is transferred in terminal 800 or can be used for terminal 800 and external device (ED) it
Between transmit data.
Memory 809 can be used for storing software program and various data.Memory 809 can mainly include storing program area
The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function
Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as
Audio data, phone directory etc.) etc..In addition, memory 809 may include high-speed random access memory, it can also include non-easy
The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 810 is the control centre of terminal, using the various pieces of various interfaces and the entire terminal of connection, is led to
It crosses operation or executes the software program and/or module being stored in memory 809, and call and be stored in memory 809
Data execute the various functions and processing data of terminal, to carry out integral monitoring to terminal.Processor 810 may include one
Or multiple processing units;Optionally, processor 810 can integrate application processor and modem processor, wherein application processing
The main processing operation system of device, user interface and application program etc., modem processor mainly handles wireless communication.It can manage
Solution, above-mentioned modem processor can not also be integrated into processor 810.
Terminal 800 can also include the power supply 811 (such as battery) powered to all parts, and optionally, power supply 811 can be with
It is logically contiguous by power-supply management system and processor 810, thus by power-supply management system realize management charging, electric discharge, with
And the functions such as power managed.
In addition, terminal 800 includes some unshowned functional modules, details are not described herein.
Optionally, the embodiment of the present invention also provides a kind of terminal, including processor 810 as shown in Figure 8, memory 809,
It is stored in the computer program that can be run on memory 809 and on the processor 810, the computer program is by processor
810 realize each process of above-mentioned camera control method embodiment when executing, and can reach identical technical effect, to avoid
It repeats, which is not described herein again.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium
Calculation machine program, the computer program realize each process of above-mentioned camera control method embodiment when being executed by processor, and
Identical technical effect can be reached, to avoid repeating, which is not described herein again.Wherein, which can wrap
Include read-only memory (read-only memory, ROM), random access memory (random access memory, RAM),
Magnetic or disk etc..
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service
Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific
Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art
Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much
Form belongs within protection of the invention.
Claims (12)
1. a kind of camera control method is applied to terminal, the terminal includes camera, which is characterized in that the method packet
It includes:
In the case where receiving the first input to the camera, target drives parameter, the target drives parameter are determined
For the corresponding driving parameter of target switching cycle;
According to the target drives parameter, the camera is driven to stretch out;
Wherein, different switching cycles correspond to it is different it is maximum stretch out stroke, it is described it is maximum stretch out stroke be the camera according to
The corresponding maximum distance for driving parameter to stretch out of different switching cycles.
2. meeting in the following conditions the method according to claim 1, wherein switching between different switching cycles
Any one: the input for triggering the camera and stretching out is received, target time section is greater than or equal to preset time threshold, Yi Jishen
Contracting number reaches preset times threshold value;
Wherein, the target time section is the first moment to the period between the second moment, and first moment is one and cuts
At the beginning of changing the period, second moment is at the time of receiving to trigger the input that the camera stretches out;It is described flexible
Number is according to the camera number stretched out described in the corresponding driving driving parameter of a switching cycle or the number of retraction.
3. according to the method described in claim 2, being taken the photograph described in driving it is characterized in that, described according to the target drives parameter
After being stretched out as head, the method also includes:
In the case where receiving the second input to the camera, according to the target drives parameter, the camera shooting is driven
Head retracts.
4. the method according to claim 1, wherein different switching cycles include that the first switching cycle and second is cut
It changes the period, first switching cycle corresponding first is maximum to stretch out stroke X, and second switching cycle corresponding second is maximum to be stretched out
Stroke X+Y;
Wherein, (α/2) X=X1+H*tan;X1 is in the case where the camera is in original state, and the camera leads to
Vertical range between unthreaded hole and first side, the first side are the side that camera described in the terminal stretches out;α is
The field angle of camera;H is the field angle focus of the camera in the case where the camera is in the original state
Vertical range between the display screen of the terminal;Y is any number between 0.5 millimeter~2 millimeters.
5. method according to claim 1 to 4, which is characterized in that the driving parameter of the camera includes
At least one of in driving speed and driving time.
6. a kind of terminal, which is characterized in that the terminal includes camera, determining module and drive module;
Determining module, it is described for determining target drives parameter in the case where receiving the first input to the camera
Target drives parameter is the corresponding driving parameter of target switching cycle;
Drive module, the target drives parameter for determining according to the determining module, drives the camera to stretch out;
Wherein, different switching cycles correspond to it is different it is maximum stretch out stroke, it is described it is maximum stretch out stroke be the camera according to
The corresponding maximum distance for driving parameter to stretch out of different switching cycles.
7. terminal according to claim 6, which is characterized in that switching meets in the following conditions between different switching cycles
Any one: the input for triggering the camera and stretching out is received, target time section is greater than or equal to preset time threshold, Yi Jishen
Contracting number reaches preset times threshold value;
Wherein, the target time section is the first moment to the period between the second moment, and first moment is one and cuts
At the beginning of changing the period, second moment is at the time of receiving to trigger the input that the camera stretches out;It is described flexible
Number is according to the camera number stretched out described in the corresponding driving driving parameter of a switching cycle or the number of retraction.
8. terminal according to claim 7, which is characterized in that
The drive module is also used to receiving after driving the camera to stretch out according to the target drives parameter
In the case where inputting to the second of the camera, according to the target drives parameter, the camera is driven to retract.
9. terminal according to claim 6, which is characterized in that different switching cycles include that the first switching cycle and second is cut
It changes the period, first switching cycle corresponding first is maximum to stretch out stroke X, and second switching cycle corresponding second is maximum to be stretched out
Stroke X+Y;
Wherein, (α/2) X=X1+H*tan;X1 is in the case where the camera is in original state, and the camera leads to
Vertical range between unthreaded hole and first side, the first side are the side that camera described in the terminal stretches out;α is
The field angle of the camera;H is the field angle of the camera in the case where the camera is in the original state
Vertical range between focus and the display screen of the terminal;Y is any number between 0.5 millimeter~2 millimeters.
10. terminal according to any one of claims 6 to 9, which is characterized in that the driving parameter of the camera includes
At least one of in driving speed and driving time.
11. a kind of terminal, which is characterized in that including processor, memory and be stored on the memory and can be at the place
The computer program run on reason device is realized when the computer program is executed by the processor as appointed in claim 1 to 5
The step of camera control method described in one.
12. a kind of computer readable storage medium, which is characterized in that store computer journey on the computer readable storage medium
Sequence realizes the camera control method as described in any one of claims 1 to 5 when the computer program is executed by processor
The step of.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810906377.1A CN108989644B (en) | 2018-08-10 | 2018-08-10 | Camera control method and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810906377.1A CN108989644B (en) | 2018-08-10 | 2018-08-10 | Camera control method and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108989644A true CN108989644A (en) | 2018-12-11 |
CN108989644B CN108989644B (en) | 2020-06-30 |
Family
ID=64555623
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810906377.1A Active CN108989644B (en) | 2018-08-10 | 2018-08-10 | Camera control method and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108989644B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109710324A (en) * | 2018-12-29 | 2019-05-03 | 360企业安全技术(珠海)有限公司 | Processing method and processing device that blue screen is shown, storage medium, terminal |
CN109819117A (en) * | 2019-03-27 | 2019-05-28 | 维沃移动通信有限公司 | A kind of based reminding method and mobile terminal |
CN109862240A (en) * | 2018-12-25 | 2019-06-07 | 维沃移动通信(杭州)有限公司 | A kind of camera structure and terminal |
CN110221657A (en) * | 2019-06-06 | 2019-09-10 | Oppo(重庆)智能科技有限公司 | Drive control method, apparatus, terminal and computer readable storage medium |
CN110572568A (en) * | 2019-08-29 | 2019-12-13 | 维沃移动通信有限公司 | Camera control method and electronic equipment |
CN110881083A (en) * | 2019-11-29 | 2020-03-13 | 维沃移动通信有限公司 | Camera control method and electronic equipment |
CN111400207A (en) * | 2020-03-13 | 2020-07-10 | Oppo广东移动通信有限公司 | Expansion control method and device for expandable component, storage medium and electronic equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020025148A1 (en) * | 2000-08-31 | 2002-02-28 | Asahi Kogaku Kogyo Kabushiki Kaisha | FPC (flexible printed circuit) board arrangement structure for zoom lens barrels |
CN101790033A (en) * | 2009-01-28 | 2010-07-28 | 奥林巴斯映像株式会社 | Image pickup apparatus and camera shake correcting apparatus applied to image pickup apparatus |
CN201585201U (en) * | 2010-01-28 | 2010-09-15 | 华为终端有限公司 | Electronic product with data connector and flexible printed circuit board |
CN203523141U (en) * | 2013-10-23 | 2014-04-02 | 深圳Tcl新技术有限公司 | Flexible circuit board and TV set |
CN106331457A (en) * | 2016-09-29 | 2017-01-11 | 深圳市金立通信设备有限公司 | Camera shooting mechanism, terminal and tilt-shift shooting method |
CN106790801A (en) * | 2016-12-15 | 2017-05-31 | 卢春宁 | One kind has the telescopic mobile communication equipment of modularization |
-
2018
- 2018-08-10 CN CN201810906377.1A patent/CN108989644B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020025148A1 (en) * | 2000-08-31 | 2002-02-28 | Asahi Kogaku Kogyo Kabushiki Kaisha | FPC (flexible printed circuit) board arrangement structure for zoom lens barrels |
CN101790033A (en) * | 2009-01-28 | 2010-07-28 | 奥林巴斯映像株式会社 | Image pickup apparatus and camera shake correcting apparatus applied to image pickup apparatus |
CN201585201U (en) * | 2010-01-28 | 2010-09-15 | 华为终端有限公司 | Electronic product with data connector and flexible printed circuit board |
CN203523141U (en) * | 2013-10-23 | 2014-04-02 | 深圳Tcl新技术有限公司 | Flexible circuit board and TV set |
CN106331457A (en) * | 2016-09-29 | 2017-01-11 | 深圳市金立通信设备有限公司 | Camera shooting mechanism, terminal and tilt-shift shooting method |
CN106790801A (en) * | 2016-12-15 | 2017-05-31 | 卢春宁 | One kind has the telescopic mobile communication equipment of modularization |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109862240A (en) * | 2018-12-25 | 2019-06-07 | 维沃移动通信(杭州)有限公司 | A kind of camera structure and terminal |
CN109862240B (en) * | 2018-12-25 | 2021-05-07 | 维沃移动通信(杭州)有限公司 | Camera structure and terminal |
CN109710324A (en) * | 2018-12-29 | 2019-05-03 | 360企业安全技术(珠海)有限公司 | Processing method and processing device that blue screen is shown, storage medium, terminal |
CN109710324B (en) * | 2018-12-29 | 2022-04-22 | 奇安信安全技术(珠海)有限公司 | Processing method and device for blue screen display, storage medium and terminal |
CN109819117A (en) * | 2019-03-27 | 2019-05-28 | 维沃移动通信有限公司 | A kind of based reminding method and mobile terminal |
CN110221657A (en) * | 2019-06-06 | 2019-09-10 | Oppo(重庆)智能科技有限公司 | Drive control method, apparatus, terminal and computer readable storage medium |
CN110221657B (en) * | 2019-06-06 | 2020-09-01 | Oppo(重庆)智能科技有限公司 | Drive control method, device, terminal and computer readable storage medium |
CN110572568A (en) * | 2019-08-29 | 2019-12-13 | 维沃移动通信有限公司 | Camera control method and electronic equipment |
CN110572568B (en) * | 2019-08-29 | 2021-05-14 | 维沃移动通信有限公司 | Camera control method and electronic equipment |
CN110881083A (en) * | 2019-11-29 | 2020-03-13 | 维沃移动通信有限公司 | Camera control method and electronic equipment |
CN111400207A (en) * | 2020-03-13 | 2020-07-10 | Oppo广东移动通信有限公司 | Expansion control method and device for expandable component, storage medium and electronic equipment |
CN111400207B (en) * | 2020-03-13 | 2023-11-10 | Oppo广东移动通信有限公司 | Expansion control method and device of expandable component, storage medium and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN108989644B (en) | 2020-06-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108989644A (en) | A kind of camera control method and terminal | |
CN107819907A (en) | A kind of camera control method and mobile terminal | |
CN109151180A (en) | A kind of object identifying method and mobile terminal | |
CN108427876A (en) | A kind of fingerprint identification method and mobile terminal | |
CN109005262A (en) | A kind of camera control method and terminal | |
CN108111730A (en) | A kind of camera module, control method and mobile terminal | |
CN110213414A (en) | A kind of drive control method, terminal and computer readable storage medium | |
CN108471234B (en) | A kind of voltage control circuit and its control method, mobile terminal | |
CN107592459A (en) | A kind of photographic method and mobile terminal | |
CN108989668A (en) | A kind of working method and mobile terminal of camera | |
CN109348020A (en) | A kind of photographic method and mobile terminal | |
CN110099213A (en) | A kind of image display control method and terminal | |
CN109639965A (en) | Starting method, terminal and the computer readable storage medium of camera | |
CN110049192A (en) | A kind of detection method and mobile terminal | |
CN107888728A (en) | A kind of mobile terminal and the image pickup method based on the mobile terminal | |
CN108111729B (en) | A kind of camera module, control method and mobile terminal | |
CN109981009A (en) | A kind of control method and mobile terminal of stepper motor | |
CN108924414A (en) | A kind of image pickup method and terminal device | |
CN110209313A (en) | Icon moving method and terminal device | |
CN110351406A (en) | Mobile terminal and its control method | |
CN108173993A (en) | A kind of camera module, control method and mobile terminal | |
CN108833709A (en) | A kind of the starting method and mobile terminal of camera | |
CN109493821B (en) | Screen brightness adjusting method and device and storage medium | |
CN108881544A (en) | A kind of method taken pictures and mobile terminal | |
CN109144393A (en) | A kind of image display method 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 |