CN105227840B - Focusing method and device - Google Patents

Focusing method and device Download PDF

Info

Publication number
CN105227840B
CN105227840B CN201510648673.2A CN201510648673A CN105227840B CN 105227840 B CN105227840 B CN 105227840B CN 201510648673 A CN201510648673 A CN 201510648673A CN 105227840 B CN105227840 B CN 105227840B
Authority
CN
China
Prior art keywords
exposure
time
focusing
sensitivity
default
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510648673.2A
Other languages
Chinese (zh)
Other versions
CN105227840A (en
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510648673.2A priority Critical patent/CN105227840B/en
Publication of CN105227840A publication Critical patent/CN105227840A/en
Application granted granted Critical
Publication of CN105227840B publication Critical patent/CN105227840B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Studio Devices (AREA)

Abstract

The present invention relates to a kind of focusing method and devices.The method includes the steps: when receiving focusing triggering command, time for exposure from the default time for exposure under current focusing environment is foreshortened into the new time for exposure, and the sensitivity under current focusing environment is improved from default sensitivity to new sensitivity;It is focused according to the new time for exposure and the new sensitivity.The focusing speed that contrast formula is focused under half-light environment not only can be improved in the present invention, can also improve the focusing speed that contrast formula is focused under light environment.

Description

Focusing method and device
Technical field
The present invention relates to fields of communication technology, more particularly to a kind of focusing method and device.
Background technique
With the development of science and technology, mobile terminal, such as smart phone etc., function are more and more diversified.User is to mobile whole The requirement of the camera function at end is also higher and higher.When taking pictures, there are many modes of focusing, such as phase focusing, contrast formula pair Burnt and laser focusing etc..And the focusing of contrast formula becomes focusing side commonly used at present due to its various advantage such as at low cost Method.
But under half-light environment, such as ISO (photo sensibility, sensitivity) > 1000, due to camera Frame per second can become very low, generally all in 10 frames or so, so focusing speed becomes slow when being focused using contrast formula.
Summary of the invention
Based on this, it is necessary in view of the above-mentioned problems, provide a kind of focusing method and device, can guarantee in half-light environment and The focusing of light environment medium contrast formula has higher focusing speed.
In order to achieve the above object, the present invention uses following scheme:
A kind of focusing method, comprising steps of
When receiving focusing triggering command, the time for exposure under current focusing environment is foreshortened to from the default time for exposure The new time for exposure, and the sensitivity under current focusing environment is improved from default sensitivity to new sensitivity;
It is focused according to the new time for exposure and the new sensitivity.
A kind of focusing mechanism, comprising:
Time and sensitivity setup module, the exposure for will currently focus under environment when receiving focusing triggering command The new time for exposure is foreshortened to from the default time for exposure between light time, and by the sensitivity under current focusing environment from default sensitivity It improves to new sensitivity;
Focusing module, for being focused according to the new time for exposure and the new sensitivity.
Focusing method and device of the present invention complete this from triggering focusing to focusing due to that is to say during focusing One stage, user will not generally pay close attention to the preview effect of picture, so the default time for exposure contracts when focusing triggering It is short, to improve the frame per second of camera, so as to improve focusing speed.Also to ensure that the sensitive volume obtained, while will write from memory Recognize ISO to draw high.The focusing speed that contrast formula is focused under half-light environment not only can be improved in the present invention, can also improve light environment The focusing speed of lower contrast formula focusing.
Detailed description of the invention
Fig. 1 is the flow diagram of focusing method embodiment of the present invention;
Fig. 2 is the structural schematic diagram of focusing mechanism embodiment one of the present invention;
Fig. 3 is the structural schematic diagram of time and sensitivity setup module embodiment one of the invention;
Fig. 4 is the structural schematic diagram of time and sensitivity setup module embodiment two of the invention;
Fig. 5 is the structural schematic diagram of focusing mechanism embodiment two of the present invention.
Specific embodiment
Technical problems to be solved, the technical solution taken and the technology reached effect in order to better understand the present invention Fruit is with reference to the accompanying drawing described in detail a specific embodiment of the invention.
As shown in Figure 1, a kind of focusing method, comprising steps of
S110, when receiving focusing triggering command, by time for exposure from the default time for exposure under current focusing environment The new time for exposure is foreshortened to, and the sensitivity under current focusing environment is improved from default sensitivity to new sensitivity;
S120, it is focused according to the new time for exposure and the new sensitivity.
The program realized according to the focusing method or chip etc. can be applied on mobile terminal.Due to the mistake in focusing Cheng Zhong that is to say and complete this stage from triggering focusing to focusing, and user will not generally pay close attention to the preview effect of picture, so When focusing triggering, the default time for exposure is shortened, to improve the frame per second of camera, so as to improve focusing speed.Separately Outside in order to guarantee the sensitive volume obtained, while default ISO being drawn high.Contrast under half-light environment not only can be improved in the method for the present invention The focusing speed of formula focusing, can also improve the focusing speed that contrast formula is focused under light environment.
The default time for exposure and default sensitivity under different focus environment be not generally identical, so, in one embodiment In, when receiving focusing triggering command, the time for exposure under current focusing environment was foreshortened to from the default time for exposure new Before time for exposure, can with comprising steps of
The current focusing environment of detection, wherein focusing environment includes light environment and half-light environment;
Default time for exposure and the default sensitivity under corresponding focusing environment are obtained according to the result of detection.
The default time for exposure under the default time for exposure and half-light environment under light environment is determining value, for example, certain The default time for exposure under the light environment of camera is 0.5 second, and the time for exposure under half-light environment is 2 seconds.Equally, light ring The default sensitivity under default sensitivity and half-light environment under border is also determining value.Sensitive volume is sensitivity and time for exposure Product.The sensitive volume under sensitive volume and half-light environment under light environment can be equal, can also be unequal, and the present invention is not right This makes restriction.
The default time for exposure specifically shortens how much can be configured according to actual needs, for example, in one embodiment, By the time for exposure under current focusing environment from may include: the step of the default time for exposure foreshortening to the new time for exposure
Time for exposure from the default time for exposure under current focusing environment is shorten to the default time for exposure;
Or,
A time for exposure is chosen from each time for exposure for being less than the default time for exposure according to preset condition;
Time for exposure under current focusing environment is shorten to the time for exposure of selection from the default time for exposure.
The default time for exposure will shorten to the default time for exposure, be shorten to each default time for exposure one it is fixed Value, such as 1/30S (second) etc..The new exposure under the new time for exposure and half-light environment under light environment can be respectively set Time can also set a fixation for the new time for exposure under the new time for exposure and half-light environment under light environment Value.The default time for exposure it will be shorten to the time for exposure chosen, then the degree that the default time for exposure shortens every time is possible different. User can be actually needed setting preset condition, such as environment is darker, and the degree that the default time for exposure shortens is bigger etc..
Since time for exposure and frame per second are inversely prroportional relationship, the shortening default time for exposure also means that frame per second improves, example Such as, the frame per second under existing half-light environment is that 10 frames are left back, and time for exposure when focusing is shorten to 1/30S by the present invention, then frame per second It will increase to 30 frames, substantially increase the speed of focusing.
In order to guarantee the sensitive volume obtained, when defaulting the time for exposure and shortening, need corresponding to draw high ISO.Default is felt Luminosity improve to new sensitivity method and it is above-mentioned by default the time for exposure foreshorten to the new time for exposure method class this, It will not go into details for this.Although ISO, which is drawn high, can obviously increase noise, since the process of focusing is not natively the effect being apparent, User will not generally be concerned about the clarity in focus process, so even if the situation relatively high in ISO, such as ISO > 2000, The present invention also shortens the time for exposure to improve frame per second, to improve focusing speed.
Since in order to improve focusing speed, the present invention is shortened the time for exposure is defaulted, and ISO is drawn high, institute Can also include step after step S120 in one embodiment in order to not influence subsequent preview effect and imaging effect It is rapid:
When receiving focusing completion instruction, time for exposure from the new time for exposure is restored to the default to expose Time, and sensitivity is restored from the new sensitivity to the default sensitivity.
Focus complete when, numerical value before new time for exposure and new sensitivity are reverted to, for example, just starting to exist It focuses, then new time for exposure and new sensitivity are reverted into the default time for exposure under half-light environment and writes from memory under half-light environment Recognize sensitivity.The method of the present invention is not under the premise of influencing subsequent preview effect and imaging effect, when substantially increasing focusing Focusing speed brings better user experience to user.
Based on the same inventive concept, the present invention also provides a kind of focusing mechanisms, with reference to the accompanying drawing to apparatus of the present invention Specific embodiment is described in detail.
As shown in Fig. 2, a kind of focusing mechanism, comprising:
Time and sensitivity setup module 110, for that current will focus under environment when receiving focusing triggering command Time for exposure from the default time for exposure foreshortens to the new time for exposure, and the sensitivity under current focusing environment is photosensitive from defaulting Degree is improved to new sensitivity;
Focusing module 120, for being focused according to the new time for exposure and the new sensitivity.
The focusing mechanism can be applied on mobile terminal.It focuses due to during focusing, that is to say from triggering This stage is completed to focusing, user will not generally pay close attention to the preview effect of picture, so exposing default when focusing triggering Time is shortened, to improve the frame per second of camera, so as to improve focusing speed.Also to ensure that is obtained is photosensitive Amount, while default ISO being drawn high.The focusing speed that contrast formula is focused under half-light environment not only can be improved in apparatus of the present invention, also The focusing speed that contrast formula is focused under light environment can be improved.
The default time for exposure and default sensitivity under different focus environment be not generally identical, so, in one embodiment In, the time and sensitivity setup module 110 are when receiving focusing triggering command, when by the current exposure focused under environment Between foreshorten to the new time for exposure from the default time for exposure before, be also used to detect current focusing environment, wherein focusing environment packet Include light environment and half-light environment;The default time for exposure under corresponding focusing environment is obtained according to the result of detection and is defaulted photosensitive Degree.
The default time for exposure under the default time for exposure and half-light environment under light environment is determining value.Equally, bright The default sensitivity under default sensitivity and half-light environment under luminous environment is also determining value.When sensitive volume is sensitivity and exposure Between product, the sensitive volume under sensitive volume and half-light environment under light environment can be equal, can also be unequal, the present invention is simultaneously Restriction is made not to this.
In one embodiment, as shown in figure 3, the time and sensitivity setup module 110 may include:
First time for exposure setting unit 1101, time for exposure from the default time for exposure for will currently focus under environment It shorten to the default time for exposure;
Or, as shown in figure 4, in another embodiment, the time and sensitivity setup module 110 may include:
Time for exposure selection unit 1102, when for according to preset condition from less than each exposure for defaulting the time for exposure Between one time for exposure of middle selection;
Second time for exposure setting unit 1103, time for exposure from the default time for exposure for will currently focus under environment It shorten to the time for exposure chosen.
The default time for exposure will shorten to the default time for exposure, be shorten to each default time for exposure one it is fixed Value.The new time for exposure under the new time for exposure and half-light environment under light environment can be respectively set, it can also will be bright The new time for exposure under new time for exposure and half-light environment under luminous environment is set as a fixed value.When by default exposure Between shorten to the time for exposure chosen, then the degree that the default time for exposure shortens every time may be different.User can actually need Preset condition is set, such as environment is darker, the degree that the default time for exposure shortens is bigger etc..
Since time for exposure and frame per second are inversely prroportional relationship, the shortening default time for exposure also means that frame per second improves, example Such as, the frame per second under existing half-light environment is that 10 frames are left back, and time for exposure when focusing is shorten to 1/30S by the present invention, then frame per second It will increase to 30 frames, substantially increase the speed of focusing.
In order to guarantee the sensitive volume obtained, when defaulting time for exposure shortening, time and sensitivity setup module 110 need It is corresponding to draw high ISO.Time and sensitivity setup module 110 will default sensitivity improve to the mode of new sensitivity with it is above-mentioned By default the time for exposure foreshorten to the new time for exposure mode class this, it will not be described here.Although ISO, which is drawn high, to be obviously increased Noise, but since the process of focusing is not natively the effect being apparent, user will not generally be concerned about clear in focus process Clear degree, so even if the situation relatively high in ISO, the present invention also shortens the time for exposure to improve frame per second, to improve focusing speed.
Since in order to improve focusing speed, the present invention is shortened the time for exposure is defaulted, and ISO is drawn high, institute With in order to not influence subsequent preview effect and imaging effect, in one embodiment, as shown in figure 5, apparatus of the present invention can be with Including the time being connected with the Focusing module 120 and sensitivity recovery module 130, the time and sensitivity recovery module 130 for when receiving focusing completion instruction, time for exposure from the new time for exposure being restored to the default to expose Time, and sensitivity is restored from the new sensitivity to the default sensitivity.
Focus complete when, time and sensitivity recovery module 130 time for exposure and sensitivity are reverted to before number Value then reverts to new time for exposure and new sensitivity under half-light environment for example, just starting to focus under half-light environment Default time for exposure and default sensitivity.Apparatus of the present invention are not under the premise of influencing subsequent preview effect and imaging effect, greatly Focusing speed when focusing is improved greatly, brings better user experience to user.
Each technical characteristic of embodiment described above can be combined arbitrarily, for simplicity of description, not to above-mentioned reality It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited In contradiction, all should be considered as described in this specification.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art It says, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to protection of the invention Range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.

Claims (4)

1. a kind of focusing method, which is characterized in that comprising steps of
When receiving focusing triggering command, the time for exposure under current focusing environment was foreshortened to from the default time for exposure new Time for exposure, and the sensitivity under current focusing environment is improved from default sensitivity to new sensitivity;
It is focused according to the new time for exposure and the new sensitivity;
When receiving focusing triggering command, the time for exposure under current focusing environment was foreshortened to from the default time for exposure new Before time for exposure, further comprise the steps of:
The current focusing environment of detection, wherein focusing environment includes light environment and half-light environment;
Default time for exposure and the default sensitivity under corresponding focusing environment are obtained according to the result of detection;
The new time for exposure is to be chosen from each time for exposure for being less than the default time for exposure according to preset condition Time for exposure, environment is darker, and the gap of the time for exposure and default time for exposure of the selection are bigger;
After being focused according to the new time for exposure and the new sensitivity, further comprise the steps of:
When receiving focusing completion instruction, when time for exposure from the new time for exposure is restored to the default to expose Between, and sensitivity is restored from the new sensitivity to the default sensitivity.
2. focusing method according to claim 1, which is characterized in that the program or chip realized according to the focusing method Applied on mobile terminal.
3. a kind of focusing mechanism characterized by comprising
Time and sensitivity setup module, for when receiving focusing triggering command, when by the exposure under current focusing environment Between from the default time for exposure foreshorten to the new time for exposure, and the sensitivity under current focusing environment is improved from default sensitivity To new sensitivity;
Focusing module, for being focused according to the new time for exposure and the new sensitivity;
The time and sensitivity setup module are when receiving focusing triggering command, by the time for exposure under current focusing environment Before foreshortening to the new time for exposure from the default time for exposure, it is also used to detect current focusing environment, wherein focusing environment includes Light environment and half-light environment;The default time for exposure under corresponding focusing environment is obtained according to the result of detection and is defaulted photosensitive Degree;
Time for exposure selection unit, for being chosen from each time for exposure for being less than the default time for exposure according to preset condition One time for exposure, environment is darker, and the gap of the time for exposure and default time for exposure of the selection are bigger;
Time for exposure setting unit, for the time for exposure under current focusing environment to be shorten to selection from the default time for exposure The time for exposure;
It further include the time being connected with the Focusing module and sensitivity recovery module, the time and sensitivity recovery module are used In when receiving focusing completion instruction, time for exposure from the new time for exposure was restored to the default time for exposure, And sensitivity is restored from the new sensitivity to the default sensitivity.
4. focusing mechanism according to claim 3, which is characterized in that the focusing mechanism is applied on mobile terminal.
CN201510648673.2A 2015-10-08 2015-10-08 Focusing method and device Active CN105227840B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510648673.2A CN105227840B (en) 2015-10-08 2015-10-08 Focusing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510648673.2A CN105227840B (en) 2015-10-08 2015-10-08 Focusing method and device

Publications (2)

Publication Number Publication Date
CN105227840A CN105227840A (en) 2016-01-06
CN105227840B true CN105227840B (en) 2019-04-19

Family

ID=54996491

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510648673.2A Active CN105227840B (en) 2015-10-08 2015-10-08 Focusing method and device

Country Status (1)

Country Link
CN (1) CN105227840B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106060408B (en) * 2016-07-29 2019-10-15 维沃移动通信有限公司 A kind of photographic method and mobile terminal

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101686332A (en) * 2008-09-24 2010-03-31 索尼株式会社 Image capturing apparatus, control method thereof, and program
CN103945119A (en) * 2014-03-17 2014-07-23 广东明创软件科技有限公司 Method for increasing focusing speed of camera based on mobile terminal and mobile terminal thereof
CN104796616A (en) * 2015-04-27 2015-07-22 惠州Tcl移动通信有限公司 Focusing method and focusing system based on distance sensor of mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5760792B2 (en) * 2011-07-22 2015-08-12 株式会社ニコン Focus adjustment device and imaging device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101686332A (en) * 2008-09-24 2010-03-31 索尼株式会社 Image capturing apparatus, control method thereof, and program
CN103945119A (en) * 2014-03-17 2014-07-23 广东明创软件科技有限公司 Method for increasing focusing speed of camera based on mobile terminal and mobile terminal thereof
CN104796616A (en) * 2015-04-27 2015-07-22 惠州Tcl移动通信有限公司 Focusing method and focusing system based on distance sensor of mobile terminal

Also Published As

Publication number Publication date
CN105227840A (en) 2016-01-06

Similar Documents

Publication Publication Date Title
CN108141535B (en) Electronic device and method for generating image data
CN110214375B (en) Image sensor and electronic device including the same
US9451173B2 (en) Electronic device and control method of the same
CN106375739B (en) Image sensor and signal processing method thereof
US11138707B2 (en) Electronic device and method for processing multiple images
US10291854B2 (en) Image capture apparatus and method of controlling the same
US20170006208A1 (en) Photographing Method of Dual-Lens Device, and Dual-Lens Device
EP3110134B1 (en) Electronic device and method for processing image
EP2512117B1 (en) Imaging device and control method for same
KR102124598B1 (en) Image acquisition method and apparatus
KR20150077646A (en) Image processing apparatus and method
CN104253939A (en) Focusing position adjusting method and electronic device
CN104618643A (en) Shooting method and device
CN108965692B (en) Sticker setting method and device
US20090122158A1 (en) Image capturing device and method
US9288398B2 (en) Action control device, action control method, imaging device, and program to reduce focus lag
CN112087569B (en) Camera and camera starting method and device
CN105227840B (en) Focusing method and device
CN109523456B (en) Image processing method and device, electronic equipment and computer readable storage medium
US10003758B2 (en) Defective pixel value correction for digital raw image frames
US11283994B2 (en) Synchronization mechanism for image capture and processing systems
CN104935709A (en) Method and device for achieving lens compatibility
KR20170011876A (en) Image processing apparatus and method for operating thereof
US20180149830A1 (en) Electronic device and method for autofocusing
WO2023192706A1 (en) Image capture using dynamic lens positions

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: Guangdong OPPO Mobile Communications Co., Ltd.

GR01 Patent grant
GR01 Patent grant