CN104954680A - Camera focusing method and terminal - Google Patents

Camera focusing method and terminal Download PDF

Info

Publication number
CN104954680A
CN104954680A CN201510334355.9A CN201510334355A CN104954680A CN 104954680 A CN104954680 A CN 104954680A CN 201510334355 A CN201510334355 A CN 201510334355A CN 104954680 A CN104954680 A CN 104954680A
Authority
CN
China
Prior art keywords
current environment
conditioned
focusing
optical parameter
tone
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.)
Pending
Application number
CN201510334355.9A
Other languages
Chinese (zh)
Inventor
吴堂志
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Jinli Communication Equipment Co Ltd
Original Assignee
Shenzhen Jinli Communication Equipment Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Jinli Communication Equipment Co Ltd filed Critical Shenzhen Jinli Communication Equipment Co Ltd
Priority to CN201510334355.9A priority Critical patent/CN104954680A/en
Publication of CN104954680A publication Critical patent/CN104954680A/en
Pending legal-status Critical Current

Links

Abstract

The embodiment of the invention provides a camera focusing method and a terminal, wherein the method comprises the following steps of detecting optical parameters of the current environment; judging whether the optical parameters of the current environment meet the preset condition or not; if the preset condition is met, adopting a first focusing mode for focusing; if the preset condition is not met, adopting a second focusing mode for focusing. When the embodiment of the invention is implemented, the automatic switching between the first focusing mode and the second focusing mode can be realized according to the judging result of the optical parameters of the current environment, the focusing operation is simplified, and the focusing flexibility is improved.

Description

A kind of camera focusing method and terminal
Technical field
The present invention relates to shooting technology field, particularly relate to a kind of camera focusing method and terminal.
Background technology
Along with the fast development of electronic technology and image processing techniques, the camera function of terminal from strength to strength.In the process of taking pictures, in order to photograph the photo of better definition, need to focus, the position namely carrying out adjustable lens according to current scene obtains the photo of most high definition to reach.In actual applications, the focusing method usually adopted has the methods such as detecting phase focusing or laser focusing, although these methods can realize the focusing of camera, these methods need user manually to arrange usually, complex operation, very flexible.
Summary of the invention
Embodiments provide a kind of camera focusing method and terminal, camera focusing operation can be simplified, improve the flexibility of focusing.
Embodiment of the present invention first aspect provides a kind of camera focusing method, comprising:
Detect the optical parameter of current environment;
Judge whether the optical parameter of current environment meets pre-conditioned;
If meet pre-conditioned, then the first focusing mode is adopted to focus; If do not meet pre-conditioned, then the second focusing mode is adopted to focus.
Embodiment of the present invention second aspect provides a kind of terminal, comprising:
Detecting unit, for detecting the optical parameter of current environment;
Judging unit, for judging whether the optical parameter of current environment meets pre-conditioned;
Processing unit, if pre-conditioned for meeting for the judged result of described judging unit, then adopts the first focusing mode to focus; If the judged result of described judging unit is pre-conditioned for not meeting, then the second focusing mode is adopted to focus.
The embodiment of the present invention, by detecting the optical parameter of current environment; Judge whether the optical parameter of current environment meets pre-conditioned; If meet pre-conditioned, then the first focusing mode is adopted to focus; If do not meet pre-conditioned, then the second focusing mode is adopted to focus.Automatically switch between the first focusing mode and the second focusing mode according to judged result, simplify focus operation, improve the flexibility of focusing.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The schematic flow sheet of a kind of camera focusing method that Fig. 1 provides for the embodiment of the present invention;
The schematic flow sheet of the another kind of camera focusing method that Fig. 2 provides for the embodiment of the present invention;
The schematic flow sheet of the another kind of camera focusing method that Fig. 3 provides for the embodiment of the present invention;
The schematic flow sheet of the another kind of camera focusing method that Fig. 4 provides for the embodiment of the present invention;
The structural representation of a kind of terminal that Fig. 5 provides for the embodiment of the present invention;
The structural representation of the another kind of terminal that Fig. 6 provides for the embodiment of the present invention;
The structural representation of the another kind of terminal that Fig. 7 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the invention discloses a kind of camera focusing method and terminal.Simplify focus operation, improve the flexibility of focusing.
Refer to Fig. 1, Fig. 1 is the schematic flow sheet of the first embodiment of a kind of camera focusing method disclosed in the embodiment of the present invention, and the method is by detecting the optical parameter of current environment; Judge whether the optical parameter of current environment meets pre-conditioned; If meet pre-conditioned, then the first focusing mode is adopted to focus; If do not meet pre-conditioned, then the second focusing mode is adopted to focus.The present embodiment is described from the angle of terminal.As shown in Figure 1, terminal completes the focusing of camera as follows, comprises the following steps.
101, the optical parameter of current environment is detected.
Because different focusing modes accuracy of focusing under different optical parameters there are differences, in some possible execution modes of the present invention, the optical parameter of current environment can be the parameter such as brightness value, tone of current environment; Wherein, the optical parameter of current environment can be the optical parameter of current environment residing for the terminal that sensed by transducer, such as, and the brightness value of the current environment detected by luminance sensor; In actual applications, the optical parameter of current environment also can be the tone of the picture in the view-finder of the camera of terminal.In feasible execution mode, the brightness value of current environment also can obtain in the following way: detect the image in camera view-finder by imageing sensor, then image processor obtains the brightness value of current environment according to the image that imageing sensor transmits.
102, judge whether the optical parameter of current environment meets pre-conditioned.
Wherein, the pre-conditioned optical parameter according to current environment is arranged.Such as, if the optical parameter of current environment is the brightness value of current environment, a brightness value can be set as the luminance threshold preset, pre-conditionedly can be: judge whether current environment brightness value is greater than default luminance threshold; If current environment brightness value is greater than default luminance threshold, be then defined as meeting pre-conditioned; If current environment brightness value is not more than default luminance threshold, be then defined as not meeting pre-conditioned.Such as from dark to the brightest brightness value that arranges for from 0 to 100, if arranging luminance threshold is X, if the brightness value that luminance sensor detects current environment is X1 (X1>X), due to X1>X, then current environment brightness value is greater than default luminance threshold, then the optical parameter of current environment meets pre-conditioned; If the brightness value that luminance sensor detects current environment is X1 (X1≤X), due to X1≤X, then current environment brightness value is less than default luminance threshold, then the optical parameter of current environment does not meet pre-conditioned.
Be understandable that, in some possible execution modes of the present invention, the optical parameter of described current environment can be the tone of picture in camera view-finder, wherein, tone refers to the global judgement of a width picture integral color, is the basic tendency of a width picture color.Tone can consider from lightness, purity, these three key elements of form and aspect.Wherein, lightness is eyes to the sensation of the bright-dark degree of light source and body surface, a kind of visual experience mainly determined by light intensity.All there is light and shade change in any color.Wherein yellow lightness is the highest, and purple lightness is minimum, and green, red, blue, orange lightness is close, is intermediate lightness.The change of the depth is also there is in addition in the lightness of same form and aspect.As having from shallow to deep in green, powder is green, pale green, the lightness such as emerald green change.Purity refers to the vividness of color, and a kind of vividness of color depends on the radiative single degree of these form and aspect.The look of monochromatic light feature that what human eye can distinguish have, all has certain vividness.Different form and aspect not only lightness are different, and purity is not identical yet.Form and aspect are primary features of color, are the standards the most accurately distinguishing various different color.Color beyond any black-white-gray has the attribute of form and aspect, and form and aspect are namely made up of primary colors, secondary color and secondary color.Tone also can be weighed from another one angle, such as cool tone and warm tones.A key property of color is " colour temperature ", and this is the natural reaction of people to color.For most people, colour system that is orange, yellow and red end is always associated with warm, ardent etc., is thus referred to as warm tones.Blue series is then connected with tranquil, easy, pleasantly cool, is just referred to as cool tone.
In some possible execution modes of the present invention, can preset a certain tone is default tone, if the tone of picture meets default tone in camera view-finder, is then defined as meeting pre-conditioned; If the tone of picture does not meet default tone in camera view-finder, be then defined as not meeting pre-conditioned.If be warm tones than the tone preset, if the tone that tone transducer detects picture in camera view-finder is warm tones, be then defined as meeting pre-conditioned; If the tone that tone transducer detects picture in camera view-finder is cool tone, be then defined as not meeting pre-conditioned.
If 103 meet pre-conditioned, then the first focusing mode is adopted to focus; If do not meet pre-conditioned, then the second focusing mode is adopted to focus.
Existing focusing technology mainly contains three kinds: contrast focusing, detecting phase focusing and laser focusing.Wherein, contrast is focused, and this is a kind of traditional focusing technology, is the contrast change of picture residing for focus, finds the lens location that contrast is maximum.Detecting phase is focused, and adds and shelters pixel in the imageing sensor adopted, the distance between pixel, in conjunction with their relative change, help system can determine that camera lens needs for accurately focusing and how far moves.Laser is focused, and normally infrared pulse light beam repeatedly calculates launch time through electronic measuring device, sets up an accurate scope, and image processor calculates concrete object or how far scene has actually, is locked in the optimal focus depth of field simultaneously.
In actual applications, can choose two kinds of focusing modes in advance as the first focusing mode and the second focusing mode, whether pre-conditioned according to meeting, camera focusing mode adopts the first focusing mode or the second focusing mode.
Such as, if the optical parameter of current environment is the brightness value of current environment, if the brightness value X1 of current environment is greater than default threshold values X, then meet pre-conditioned, now camera focusing mode adopts the first focusing mode; If the brightness value X1 of current environment is less than default threshold values X, then do not meet pre-conditioned, now camera focusing mode adopts the second focusing mode.
In some possible execution modes of the present invention, the first focusing mode can choose detecting phase focusing, and the second focusing mode can choose laser focusing.
The embodiment of the present invention, by detecting the optical parameter of current environment; Judge whether the optical parameter of current environment meets pre-conditioned; If meet pre-conditioned, then the first focusing mode is adopted to focus; If do not meet pre-conditioned, then the second focusing mode is adopted to focus.Automatically switch between the first focusing mode and the second focusing mode according to judged result, simplify focus operation, improve the flexibility of focusing.
Refer to Fig. 2, Fig. 2 is the schematic flow sheet of the second embodiment of a kind of camera focusing method disclosed in the embodiment of the present invention.As shown in Figure 2, the method can comprise the following steps.
201, the enabled instruction for focusing mode automatic setting control function is received.
In specific implementation, can by arranging enabled instruction, when receiving qualified enabled instruction, just start focusing mode automatic setting control function, the operation interface that such as can be arranged on terminal arranges a start button, when this start button of user click, send triggering command, just start focusing mode automatic setting control function.
202, respond described enabled instruction, start focusing mode automatic setting control function.
Particularly, according to the enabled instruction pre-set, when user click start button, send triggering command, start focusing mode automatic setting control function.
203, the optical parameter of current environment is detected.
204, judge whether the optical parameter of current environment meets pre-conditioned.
If 205 meet pre-conditioned, then the first focusing mode is adopted to focus; If do not meet pre-conditioned, then the second focusing mode is adopted to focus.
Wherein, the specific descriptions of step 203-205 refer to the step 101-103 of the embodiment of the present invention described in Fig. 1.
The embodiment of the present invention, by arranging enabled instruction, when receiving qualified enabled instruction, just start focusing mode automatic setting control function, such as start button can be set on the operation interface of terminal, when user inputs the triggering command for described start button, just start focusing mode automatic setting control function, thus, add the flexibility that camera focusing method is arranged.
For ease of better understanding and implement the such scheme of the embodiment of the present invention, the application scenarios concrete below by some is illustrated.
Refer to Fig. 3, the schematic flow sheet of a kind of camera focusing method that Fig. 3 provides for an alternative embodiment of the invention.Wherein, the optical parameter of the current environment preset in this embodiment is the brightness of current environment.As shown in Figure 3, the camera focusing method that this embodiment provides comprises:
301, the brightness value of current environment is detected.
302, judge whether the brightness value of current environment is greater than default ambient brightness value.
Particularly, in some possible execution modes of the present invention, can define from dark to the ambient brightness value of the brightest correspondence is from 0 to 100, uses transducer to detect the brightness value of current environment.Because detecting phase focusing is focused not accurate enough under darker environment, laser focusing is stronger to ambient brightness adaptability, the right accuracy improving focusing, in an alternate embodiment of the invention, a default ambient brightness value X can be set, such as 60, if the brightness value of current environment is greater than default ambient brightness value X, then adopt detecting phase focusing, if the brightness of current environment is not more than default ambient brightness value X, then adopt laser focusing.
If the brightness value of 303 current environments is greater than default ambient brightness value, camera adopts detecting phase focusing.
Particularly, if the brightness value X1 of current environment is greater than default ambient brightness value X, i.e. X1>X, then camera focusing mode adopts detecting phase to focus, if than X1=80, then camera adopts detecting phase focusing.
If the brightness value of 304 current environments is not more than default ambient brightness value, stylus adopts laser focusing.
Particularly, if the brightness value X1 of current environment is not more than default ambient brightness value X, i.e. X1≤X, then camera focusing mode adopts detecting phase to focus, if X1>X, if than X1=80, then camera adopts detecting phase focusing.If X1≤X, if than X1=20, then camera adopts laser focusing.
The embodiment of the present invention, detecting phase focusing is utilized to focus not accurate enough under darker environment, the feature that laser focusing is stronger to ambient brightness adaptability, using the brightness value of current environment as environmental parameter, if the brightness value of current environment is greater than default ambient brightness value, then adopt detecting phase focusing, if the brightness of current environment is not more than default ambient brightness value, then adopt laser focusing, thus, improve the accuracy of camera focusing.
Refer to Fig. 4, the schematic flow sheet of a kind of camera focusing method that Fig. 4 provides for an alternative embodiment of the invention.Wherein, the optical parameter of the current environment preset in this embodiment is the tone of current environment.As shown in Figure 4, the camera focusing method that an alternative embodiment of the invention provides comprises:
401, the tone of current environment is detected.
Particularly, the tone of current environment can obtain by extracting from the picture camera view-finder.
Whether the tone 402, judging current environment is default tone.
Particularly, in some possible execution modes of the present invention, a default tone can be set, such as warm tones, if the tone of current environment is warm tones, then adopt detecting phase focusing, if the tone of current environment is not warm tones, then adopt laser focusing.
If the tone of 403 current environments is default tone, camera adopts detecting phase focusing.
Particularly, if the tone of current environment is warm tones, then camera focusing mode adopts detecting phase to focus.
If the tone of 404 current environments is not warm tones, then camera adopts laser focusing.
The embodiment of the present invention, utilizes tone as the environmental parameter detected, if meet default tone, adopts detecting phase to focus, if do not meet default tone, adopt laser to focus.
It should be noted that, due to the mainly infrared laser that laser focusing adopts, in black tone environment, obvious to the absorption of infrared laser, focusing can be caused inaccurate, if so the tone of current environment is not warm tones, but during black tone, camera still can adopt detecting phase to focus.
The embodiment of the present invention, detecting phase is utilized to focus and laser focusing is focused the difference of performance under different tone, using the tone of current environment as environmental parameter, if the tone of current environment meets default tone, then adopt detecting phase focusing, if the tone of current environment does not meet default tone, laser is adopted to focus, thus, improve the accuracy of camera focusing.
Refer to Fig. 5, Fig. 5 is the structural representation of a kind of terminal disclosed in the embodiment of the present invention, and this terminal 500 performs camera focusing method.As shown in Figure 5, this terminal 5 can comprise: detecting unit 501, judging unit 502 and processing unit 503, specific as follows:
Detecting unit 501, for detecting the optical parameter of current environment.
Wherein, the optical parameter of current environment can be the optical parameter of current environment residing for the terminal that sensed by transducer, such as, and the brightness value of the current environment detected by luminance sensor; In actual applications, the optical parameter of current environment also can be the tone of the picture in the view-finder of the camera of terminal, certainly, also can be other parameters.
Judging unit 502, for judging whether the optical parameter of current environment meets pre-conditioned.
Wherein, the pre-conditioned optical parameter according to current environment is arranged.Such as, if the optical parameter of current environment is the brightness value of current environment, a brightness value can be set as the luminance threshold preset, pre-conditionedly can be: judge whether current environment brightness value is greater than default luminance threshold; If current environment brightness value is greater than default luminance threshold, be then defined as meeting pre-conditioned; If current environment brightness value is not more than default luminance threshold, be then defined as not meeting pre-conditioned.Such as from dark to the brightest brightness value that arranges for from 0 to 100, if arranging luminance threshold is X, if the brightness value that luminance sensor detects current environment is X1 (X1>X), due to X1>X, then current environment brightness value is greater than default luminance threshold, then the optical parameter of current environment meets pre-conditioned; If the brightness value that luminance sensor detects current environment is X1 (X1≤X), due to X1≤X, then current environment brightness value is less than default luminance threshold, then the optical parameter of current environment does not meet pre-conditioned.
Be understandable that, in some possible execution modes of the present invention, the optical parameter of described current environment also can be the tone of picture in camera view-finder, wherein, tone refers to the general inclination of color in a width picture, can preset a certain tone is default tone, if the tone of picture meets default tone in camera view-finder, is then defined as meeting pre-conditioned; If the tone of picture does not meet default tone in camera view-finder, be then defined as not meeting pre-conditioned.If be warm tones than the tone preset, if the tone that tone transducer detects picture in camera view-finder is warm tones, be then defined as meeting pre-conditioned; If the tone that tone transducer detects picture in camera view-finder is cool tone, be then defined as not meeting pre-conditioned.
Processing unit 503, if pre-conditioned for meeting for the judged result of described judging unit, then adopts the first focusing mode to focus; If the judged result of described judging unit is pre-conditioned for not meeting, then the second focusing mode is adopted to focus.
In actual applications, can choose two kinds of focusing modes in advance, such as the first focusing mode and the second focusing mode, whether pre-conditioned according to meeting, camera focusing mode adopts the first focusing mode or the second focusing mode.
Such as, if the optical parameter of current environment is the brightness value of current environment, if the brightness value X1 of current environment is greater than default threshold values X, then meet pre-conditioned, now camera focusing mode adopts the first focusing mode; If the brightness value X1 of current environment is less than default threshold values X, then do not meet pre-conditioned, now camera focusing mode adopts the second focusing mode.
In some possible execution modes of the present invention, the first focusing mode can choose detecting phase focusing, and the second focusing mode can choose laser focusing.
The embodiment of the present invention, by detecting the optical parameter of current environment; Judge whether the optical parameter of current environment meets pre-conditioned; If meet pre-conditioned, then the first focusing mode is adopted to focus; If do not meet pre-conditioned, then the second focusing mode is adopted to focus.Automatically switch between the first focusing mode and the second focusing mode according to judged result, simplify focus operation, improve the flexibility of focusing.
Refer to Fig. 6, Fig. 6 is the structural representation of another kind of terminal disclosed in the embodiment of the present invention, and this terminal 600 performs camera focusing method.As shown in Figure 6, this terminal 6 can comprise: instruction reception unit 601, start unit 602, detecting unit 603, judging unit 604 talk about processing unit 605, wherein, detecting unit 603 in Fig. 6, judging unit 604 talk about processing unit 605, the specific descriptions of processing unit 503 can be talked about with reference to the detecting unit 501 in figure 5, judging unit 502, specific as follows:
Instruction reception unit 601, for detect current environment at detecting unit 603 optical parameter before, receive the enabled instruction for focusing mode automatic setting control function.
In specific implementation, by arranging enabled instruction, when receiving qualified enabled instruction, just start focusing mode automatic setting control function, the operation interface that such as can be arranged on terminal arranges a start button, when this start button of user click, send triggering command, just start focusing mode automatic setting control function.
Start unit 602, when receiving enabled instruction for response instruction receiving element 601, starts focusing mode automatic setting control function.
Particularly, according to the enabled instruction pre-set, when user click start button, send triggering command, start focusing mode automatic setting control function.
Detecting unit 603, for detecting the optical parameter of current environment.
Judging unit 604, for judging whether the optical parameter of current environment meets pre-conditioned.
Processing unit 605, if pre-conditioned for meeting for the judged result of judging unit 604, then adopts the first focusing mode to focus; If the judged result of described judging unit is pre-conditioned for not meeting, then the second focusing mode is adopted to focus.
The terminal of the embodiment of the present invention, by arranging enabled instruction, when receiving qualified enabled instruction, just start focusing mode automatic setting control function, such as start button can be set on the operation interface of terminal, when user inputs the triggering command for described start button, just start focusing mode automatic setting control function, thus, add the flexibility that camera focusing method is arranged.
See the structural representation of the another kind of terminal that Fig. 7, Fig. 7 provide for the embodiment of the present invention.This terminal comprises: at least one processor 701, such as CPU; Also comprise: at least one input unit 703, at least one output device 704, memory 705 and at least one communication bus 702.
Wherein, communication bus 702 is for realizing the connection communication between these assemblies.Input unit 703 can comprise the device such as transducer of the optical parameter of Trackpad and acquisition current environment, and output device 704 can comprise display screen and camera.Memory 705 can be high-speed RAM memory, also can be non-labile memory (non-volatile memory), such as at least one magnetic disc store.Memory 705 can also be optionally that at least one is positioned at the storage device away from aforementioned processor 701.Wherein can store default environmental light parameter in memory 705, processor 701 can call the program code stored in memory 705, for performing following operation: the optical parameter detecting current environment, the optical parameter of current environment can be the environmental parameter of current environment residing for the terminal that sensed by transducer, such as, the brightness value of the current environment detected by luminance sensor; In actual applications, the optical parameter of current environment also can be the tone of the picture in the view-finder of the camera of terminal.Processor 701 judges whether the optical parameter of current environment meets pre-conditioned.
Wherein, pre-conditionedly to arrange according to current environmental parameter.Such as, if the optical parameter of current environment is the brightness value of current environment, a brightness value can be set as the luminance threshold preset, pre-conditionedly can be: judge whether current environment brightness value is greater than default luminance threshold; If current environment brightness value is greater than default luminance threshold, be then defined as meeting pre-conditioned; If current environment brightness value is not more than default luminance threshold, be then defined as not meeting pre-conditioned.Such as from dark to the brightest brightness value that arranges for from 0 to 100, if arranging luminance threshold is X, if the brightness value that luminance sensor detects current environment is X1 (X1>X), due to X1>X, then current environment brightness value is greater than default luminance threshold, then the optical parameter of current environment meets pre-conditioned; If the brightness value that luminance sensor detects current environment is X1 (X1≤X), due to X1≤X, then current environment brightness value is less than default luminance threshold, then the optical parameter of current environment does not meet pre-conditioned.
Be understandable that, in some possible execution modes of the present invention, the optical parameter of described current environment can be the tone of picture in camera view-finder, wherein, tone refers to the general inclination of color in a width picture, can preset a certain tone is default tone, if the tone of picture meets default tone in camera view-finder, is then defined as meeting pre-conditioned; If the tone of picture does not meet default tone in camera view-finder, be then defined as not meeting pre-conditioned.If be warm tones than the tone preset, if the tone that tone transducer detects picture in camera view-finder is warm tones, be then defined as meeting pre-conditioned; If the tone that tone transducer detects picture in camera view-finder is cool tone, be then defined as not meeting pre-conditioned.
According to the judged result of processor 701, if meet pre-conditioned, then the first focusing mode is adopted to focus; If do not meet pre-conditioned, then the second focusing mode is adopted to focus.
In actual applications, can choose two kinds of focusing modes in advance as the first focusing mode and the second focusing mode from existing focusing mode, whether pre-conditioned according to meeting, camera focusing mode adopts the first focusing mode or the second focusing mode.
Such as, if the optical parameter of current environment is the brightness value of current environment, if the brightness value X1 of current environment is greater than default threshold values X, then meet pre-conditioned, now camera focusing mode adopts the first focusing mode; If the brightness value X1 of current environment is less than default threshold values X, then do not meet pre-conditioned, now camera focusing mode adopts the second focusing mode.
In some possible execution modes of the present invention, the first focusing mode can choose detecting phase focusing, and the second focusing mode can choose laser focusing.
In some possible execution modes of the present invention, detect the optical parameter of current environment at input unit 703 before, input unit 703 can also receive the enabled instruction for focusing mode automatic setting control function.In specific implementation, by arranging enabled instruction, when receiving qualified enabled instruction, just start focusing mode automatic setting control function, the operation interface that such as can be arranged on terminal arranges a start button, when this start button of user click, send triggering command, just start focusing mode automatic setting control function.Processor 701 responds described enabled instruction, starts focusing mode automatic setting control function.Particularly, according to the enabled instruction pre-set, when user click start button, send triggering command, start focusing mode automatic setting control function; Thus, add the flexibility that camera focusing method is arranged.
The embodiment of the present invention, detects the optical parameter of current environment by input unit; Processor judges whether the optical parameter of current environment meets pre-conditioned; If meet pre-conditioned, then the first focusing mode is adopted to focus; If do not meet pre-conditioned, then the second focusing mode is adopted to focus.Automatically switch between the first focusing mode and the second focusing mode according to judged result, simplify focus operation, improve the flexibility of focusing.
It should be noted that, in the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields in certain embodiment, there is no the part described in detail, can see the associated description of other embodiments.Secondly, those skilled in the art also should know, the embodiment described in specification all belongs to preferred embodiment, and involved action and unit might not be that the embodiment of the present invention is necessary.
Step in embodiment of the present invention method can be carried out order according to actual needs and be adjusted, merges and delete.Unit in embodiment of the present invention terminal can carry out merging, divide and deleting according to actual needs.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosedly be only present pre-ferred embodiments, certainly can not limit the interest field of the present invention with this, therefore according to the equivalent variations that the claims in the present invention are done, still belong to the scope that the present invention is contained.

Claims (10)

1. a camera focusing method, is characterized in that, comprising:
Detect the optical parameter of current environment;
Judge whether the optical parameter of current environment meets pre-conditioned;
If meet pre-conditioned, then the first focusing mode is adopted to focus; If do not meet pre-conditioned, then the second focusing mode is adopted to focus.
2. method according to claim 1, is characterized in that,
The optical parameter of described current environment comprises: current environment brightness value;
Describedly judge whether the optical parameter of current environment meets pre-conditioned comprising:
Judge whether current environment brightness value exceedes default luminance threshold;
If when current environment brightness value exceedes default luminance threshold, then determine that the optical parameter of current environment meets pre-conditioned;
Otherwise, determine that the optical parameter of current environment does not meet pre-conditioned.
3. method according to claim 1, is characterized in that,
The optical parameter of described current environment comprises: the tone of picture in camera view-finder;
Describedly judge whether the optical parameter of current environment meets pre-conditioned comprising:
Whether the tone judging described picture is default tone;
If the tone of described picture is default tone, then determine that the optical parameter of current environment meets pre-conditioned; Otherwise, determine that the optical parameter of current environment does not meet pre-conditioned.
4. method according to claim 1 and 2, is characterized in that,
Described first focusing mode is detecting phase focusing;
Described second focusing mode is laser focusing.
5., according to the arbitrary described method of Claims 1-4, it is characterized in that, before the optical parameter of described detection current environment, described method also comprises:
Receive the enabled instruction for focusing mode automatic setting control function;
Respond described enabled instruction, start focusing mode automatic setting control function.
6. a terminal, is characterized in that, comprising:
Detecting unit, for detecting the optical parameter of current environment;
Judging unit, for judging whether the optical parameter of current environment meets pre-conditioned;
Processing unit, if pre-conditioned for meeting for the judged result of described judging unit, then adopts the first focusing mode to focus; If the judged result of described judging unit is pre-conditioned for not meeting, then the second focusing mode is adopted to focus.
7. terminal according to claim 6, is characterized in that,
Described detecting unit, specifically for detecting current environment brightness value;
Described judging unit, specifically for judging whether current environment brightness value exceedes default luminance threshold; If current environment brightness value exceedes default luminance threshold, then determine that the optical parameter of current environment meets pre-conditioned; Otherwise, determine that the optical parameter of current environment does not meet pre-conditioned.
8. terminal according to claim 7, is characterized in that,
Described detecting unit, specifically for detecting the tone of picture in camera view-finder;
Described judging unit, specifically for judging whether the tone of described picture is default tone; If the tone of described picture is default tone, then determine that the optical parameter of current environment meets pre-conditioned; Otherwise, determine that the optical parameter of current environment does not meet pre-conditioned.
9. the terminal according to claim 6 or 7, is characterized in that,
Described first focusing mode is detecting phase focusing;
Described second focusing mode is laser focusing.
10., according to the arbitrary described terminal of claim 6 to 9, it is characterized in that, described terminal also comprises:
Instruction reception unit, for before the optical parameter detecting current environment, receives the enabled instruction for focusing mode automatic setting control function;
Start unit, for respond described instruction reception unit receive described enabled instruction time, start focusing mode automatic setting control function.
CN201510334355.9A 2015-06-16 2015-06-16 Camera focusing method and terminal Pending CN104954680A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510334355.9A CN104954680A (en) 2015-06-16 2015-06-16 Camera focusing method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510334355.9A CN104954680A (en) 2015-06-16 2015-06-16 Camera focusing method and terminal

Publications (1)

Publication Number Publication Date
CN104954680A true CN104954680A (en) 2015-09-30

Family

ID=54168985

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510334355.9A Pending CN104954680A (en) 2015-06-16 2015-06-16 Camera focusing method and terminal

Country Status (1)

Country Link
CN (1) CN104954680A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105763806A (en) * 2016-02-29 2016-07-13 广东欧珀移动通信有限公司 Control method and device and electronic device
CN105763801A (en) * 2016-02-29 2016-07-13 广东欧珀移动通信有限公司 Control method and device and electronic device
CN106125879A (en) * 2016-06-14 2016-11-16 深圳市金立通信设备有限公司 A kind of method reducing power consumption of terminal and terminal
CN107026980A (en) * 2017-04-26 2017-08-08 深圳天珑无线科技有限公司 A kind of method and its system for deleting photo out of focus
CN107888829A (en) * 2017-11-23 2018-04-06 努比亚技术有限公司 Focusing method, mobile terminal and the storage medium of mobile terminal

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101089719A (en) * 2006-06-13 2007-12-19 普立尔科技股份有限公司 Focusing method for image pick-up device
JP2008167361A (en) * 2007-01-05 2008-07-17 Acutelogic Corp Camera module, electronic device with the same, method of manufacturing camera module, and method of manufacturing electronic device using the same
CN101344702A (en) * 2007-07-13 2009-01-14 佛山普立华科技有限公司 Automatic focusing system and automatic focusing method
CN101360188A (en) * 2007-08-03 2009-02-04 鸿富锦精密工业(深圳)有限公司 Focusing system and focusing method
EP2031866A2 (en) * 2007-08-31 2009-03-04 Fujifilm Corporation Image pickup apparatus and focusing condition displaying method
CN101382721A (en) * 2007-08-31 2009-03-11 富士胶片株式会社 Image pickup apparatus and focusing condition displaying method
US20090175610A1 (en) * 2007-12-27 2009-07-09 Hon Hai Precision Industry Co., Ltd. Imaging device
CN201667683U (en) * 2010-03-31 2010-12-08 福州开发区鸿发光电子技术有限公司 Large focal variation ratio automatic focusing all-in-one video camera
CN103442173A (en) * 2013-08-16 2013-12-11 广东欧珀移动通信有限公司 Photographing method and device of camera in low-light environment
WO2014080718A1 (en) * 2012-11-22 2014-05-30 富士フイルム株式会社 Image pick-up device and focus control method
WO2014083914A1 (en) * 2012-11-29 2014-06-05 富士フイルム株式会社 Image capture device and focus control method
CN103945119A (en) * 2014-03-17 2014-07-23 广东明创软件科技有限公司 Method for increasing focusing speed of camera based on mobile terminal and mobile terminal thereof
CN104704805A (en) * 2012-10-03 2015-06-10 索尼公司 Information processing apparatus, information processing method, and program
CN104811620A (en) * 2015-04-28 2015-07-29 上海与德通讯技术有限公司 Focusing method and focusing system

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101089719A (en) * 2006-06-13 2007-12-19 普立尔科技股份有限公司 Focusing method for image pick-up device
JP2008167361A (en) * 2007-01-05 2008-07-17 Acutelogic Corp Camera module, electronic device with the same, method of manufacturing camera module, and method of manufacturing electronic device using the same
CN101344702A (en) * 2007-07-13 2009-01-14 佛山普立华科技有限公司 Automatic focusing system and automatic focusing method
CN101360188A (en) * 2007-08-03 2009-02-04 鸿富锦精密工业(深圳)有限公司 Focusing system and focusing method
EP2031866A2 (en) * 2007-08-31 2009-03-04 Fujifilm Corporation Image pickup apparatus and focusing condition displaying method
CN101382721A (en) * 2007-08-31 2009-03-11 富士胶片株式会社 Image pickup apparatus and focusing condition displaying method
US20090175610A1 (en) * 2007-12-27 2009-07-09 Hon Hai Precision Industry Co., Ltd. Imaging device
CN201667683U (en) * 2010-03-31 2010-12-08 福州开发区鸿发光电子技术有限公司 Large focal variation ratio automatic focusing all-in-one video camera
CN104704805A (en) * 2012-10-03 2015-06-10 索尼公司 Information processing apparatus, information processing method, and program
WO2014080718A1 (en) * 2012-11-22 2014-05-30 富士フイルム株式会社 Image pick-up device and focus control method
WO2014083914A1 (en) * 2012-11-29 2014-06-05 富士フイルム株式会社 Image capture device and focus control method
CN103442173A (en) * 2013-08-16 2013-12-11 广东欧珀移动通信有限公司 Photographing method and device of camera in low-light environment
CN103945119A (en) * 2014-03-17 2014-07-23 广东明创软件科技有限公司 Method for increasing focusing speed of camera based on mobile terminal and mobile terminal thereof
CN104811620A (en) * 2015-04-28 2015-07-29 上海与德通讯技术有限公司 Focusing method and focusing system

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105763806A (en) * 2016-02-29 2016-07-13 广东欧珀移动通信有限公司 Control method and device and electronic device
CN105763801A (en) * 2016-02-29 2016-07-13 广东欧珀移动通信有限公司 Control method and device and electronic device
CN105763801B (en) * 2016-02-29 2019-02-05 Oppo广东移动通信有限公司 Control method, control device and electronic device
CN106125879A (en) * 2016-06-14 2016-11-16 深圳市金立通信设备有限公司 A kind of method reducing power consumption of terminal and terminal
CN107026980A (en) * 2017-04-26 2017-08-08 深圳天珑无线科技有限公司 A kind of method and its system for deleting photo out of focus
CN107026980B (en) * 2017-04-26 2020-05-08 徐州市神山智能科技有限公司 Method and system for deleting out-of-focus picture
CN107888829A (en) * 2017-11-23 2018-04-06 努比亚技术有限公司 Focusing method, mobile terminal and the storage medium of mobile terminal
CN107888829B (en) * 2017-11-23 2020-08-28 努比亚技术有限公司 Focusing method of mobile terminal, mobile terminal and storage medium

Similar Documents

Publication Publication Date Title
JP6946188B2 (en) Methods and equipment for multi-technology depth map acquisition and fusion
CN104954680A (en) Camera focusing method and terminal
US10878539B2 (en) Image-processing method, apparatus and device
WO2017016030A1 (en) Image processing method and terminal
CN108668093B (en) HDR image generation method and device
CN105791708B (en) A kind of filming control method, device and intelligent terminal
US20150116529A1 (en) Automatic effect method for photography and electronic apparatus
CN104967776A (en) Photographing setting method and user terminal
CN105306806B (en) A kind of mobile terminal and its method taken pictures
CN105007422B (en) A kind of phase focusing method and user terminal
CN107343190A (en) White balance adjusting method, apparatus and terminal device
CN106067947A (en) A kind of photographic method and terminal
CN108269552B (en) Screen brightness adjusting method, mobile terminal and medium product
CN106210330A (en) A kind of image processing method and terminal
US10027878B2 (en) Detection of object in digital image
EP3857874B1 (en) Hybrid depth processing
CN104780320B (en) Ambient light detection method and electronic device
CN106060417A (en) Flashlight control method and terminal
CN104751419A (en) Picture display regulation method and terminal
CN106331505A (en) Shooting method and device
CN109495731A (en) Auto white balance method is used for by what image-signal processor executed
CN105872399A (en) Backlighting detection method and system
CN104657056A (en) Theme color adjustment method
CN104535178A (en) Light strength value detecting method and terminal
US9578247B2 (en) Information processing device, imaging device, information processing method, and program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150930