CN108184055A - A kind of focusing method and focusing mechanism based on intelligent terminal - Google Patents
A kind of focusing method and focusing mechanism based on intelligent terminal Download PDFInfo
- Publication number
- CN108184055A CN108184055A CN201711458446.9A CN201711458446A CN108184055A CN 108184055 A CN108184055 A CN 108184055A CN 201711458446 A CN201711458446 A CN 201711458446A CN 108184055 A CN108184055 A CN 108184055A
- Authority
- CN
- China
- Prior art keywords
- focusing
- contrast
- module
- intelligent terminal
- phase
- 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
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/60—Control of cameras or camera modules
- H04N23/67—Focus control based on electronic image sensor signals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/62—Control of parameters via user interfaces
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/80—Camera processing pipelines; Components thereof
- H04N23/84—Camera processing pipelines; Components thereof for processing colour signals
- H04N23/88—Camera processing pipelines; Components thereof for processing colour signals for colour balance, e.g. white-balance circuits or colour temperature control
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Automatic Focus Adjustment (AREA)
- Studio Devices (AREA)
Abstract
The present invention provides a kind of focusing method and focusing mechanism based on intelligent terminal, the focusing method includes the following steps:Exposing operation is performed according to a shooting focusing area;Count the phase information of the shooting focusing area;The distance of position and optimal phase position where calculating the eyeglass of the intelligent terminal according to the phase information by phase focus algorithm;The motor of the intelligent terminal moves the eyeglass to the optimal phase position;Optimum contrast position of the eyeglass near the optimal phase position is searched for by contrast focus algorithm;The motor of the intelligent terminal moves the eyeglass to the optimum contrast position.The technical program effectively shortens auto-focusing time and photo opporunity, promotes user experience.
Description
Technical field
The present invention relates to intelligent terminal field more particularly to a kind of focusing methods and focusing mechanism based on intelligent terminal.
Background technology
At present, an indispensable part during the intelligent terminals such as smart mobile phone, tablet computer have become for people's lives,
The intelligent terminal has operating system, supports human-computer interaction, provides various function application program, facilitate people’s lives.
With the development of technology, the intelligent terminal is also integrated with picture pick-up device to realize camera function, and forms digital photograph storage
In in the intelligent terminal.
However intelligent terminal is not the photographing camera equipment of profession after all, due to limitations such as structure designs, it is difficult to accomplish to permit
Family allowable carries out lens position adjustment to realize focusing manually.The process of focusing is exactly to make focusing area by mobile eyeglass
Image reaches most clearly process.The prior art proposes the problem solution of auto-focusing, and the intelligence of mainstream is eventually
End auto-focusing is realized using contrast focusing mode or phase focusing mode.The clarity of image preferably when be contrast most
When big, at the same be also aberration minimum when, contrast focusing be exactly by the way that the point of focusing area contrast maximum is looked for be used as
It focuses accurate point, and phase focusing is then the point for looking for focusing area difference minimum as accurate point of focusing.Contrast focusing pair
Light it is of less demanding, can also realize preferable focus effects in dim light.
Existing contrast focusing technology is commonly applied to specified focusing area focusing, that is, Touch AF, i.e., according to user
Some selected region carries out contrast focusing.The realization principle of contrast focusing is that the picture contrast of different location is in eyeglass
It is calculated, finds out the lens position of contrast maximum, however this process needs constantly mobile eyeglass to scan for, and compares
It is time-consuming.
The principle of phase focusing technology is, some point of object can emit beam from all directions by image lenses to
Above optical sensor, when the image formation by rays of different directions falls on the same position of sensor, aberration is minimum, that is,
When image is most clear.However, the situation that people face, which is often the different light that same point sets out, forms different positions
The picture put, the and when optical sensor is in the different directions of aberration smallest point, the position of imaging be also it is different, accordingly can be with
The direction of the mobile eyeglass is indicated, to eliminate the position difference between different pictures.Phase focusing technology can make the movement of eyeglass
It settles at one go, realizing needs additional phase detection device or the pixel of optical sensor is redesigned, and
Requirement to light is higher.
Accordingly, it is desirable to provide a kind of focusing method based on intelligent terminal, on the basis of specified focusing area contrast focusing
It is upper further to shorten the auto-focusing time.
Invention content
In order to overcome above-mentioned technological deficiency, the purpose of the present invention is to provide a kind of focusing method based on intelligent terminal and
Focusing mechanism can shorten the auto-focusing time, especially apply the intelligent terminal of specified focusing area contrast focusing technology
The auto-focusing time.
The first aspect of the present invention discloses a kind of focusing method based on intelligent terminal, includes the following steps:
Exposing operation is performed according to a shooting focusing area;
Count the phase information of the shooting focusing area;
By phase focus algorithm according to the position where the eyeglass of the phase information calculating intelligent terminal and most
The distance of good phase position;
The motor of the intelligent terminal moves the eyeglass to the optimal phase position;
Optimum contrast position of the eyeglass near the optimal phase position is searched for by contrast focus algorithm;
The motor of the intelligent terminal moves the eyeglass to the optimum contrast position.
Preferably, according to one shooting focusing area perform exposing operation the step of before, the focusing method further include with
Lower step:
The intelligent terminal is controlled to be in shooting preview pattern;
Judge whether the touch screen of the intelligent terminal receives a touch operation;
It, will be on the corresponding touch screen of the touch operation when the touch screen that the intelligent terminal connects receives a touch operation
Position be set as shooting focusing area.
Preferably, after the motor of the intelligent terminal moves the eyeglass to the step of optimum contrast position,
The focusing method is further comprising the steps of:
It re-shoots to form an image signal information;
White balance processing is carried out to described image signal message;
By the image information of white balance treated image signal information is converted to number format, photo is formed.
Preferably, when counting the phase information of the shooting focusing area, the phase information includes phase value and confidence
Degree.
Preferably, optimum contrast of the eyeglass near the optimal phase position is searched for by contrast focus algorithm
The step of position, includes:
The motor moves the eyeglass to different location;
Obtain the contrast of the image of different location photographs;
Position during using contrast maximum is as the optimum contrast position.
The second aspect of the present invention discloses a kind of focusing mechanism based on intelligent terminal, including:
Exposure module performs exposing operation according to a shooting focusing area;
Statistical module is connect with the exposure module, counts the phase information of the shooting focusing area;
Phase Focusing module is connect with the statistical module, is calculated by phase focus algorithm according to the phase information
The distance of position and optimal phase position where the eyeglass of the intelligent terminal;
First movement module is connect with the phase Focusing module, and the motor of the intelligent terminal is controlled to move the mirror
Piece is to the optimal phase position;
It is best near the optimal phase position to search for the eyeglass by contrast focus algorithm for contrast Focusing module
Contrast position;
Second mobile module is connect with the contrast Focusing module, and the motor of the intelligent terminal is controlled to move the mirror
Piece is to the optimum contrast position.
Preferably, the focusing mechanism further includes:
Previewing module controls the intelligent terminal to be in shooting preview pattern;
Operation judges module, judges whether the touch screen of the intelligent terminal receives a touch operation;
Setup module is connect with the operation judges module, when the operation judges module judges that the intelligent terminal connects
Touch screen receive a touch operation when, by the position on the corresponding touch screen of the touch operation be set as shooting focusing area.
Preferably, the focusing mechanism further includes:
Image signal information acquisition module re-shoots to form an image signal information;
White balance processing module is connect with described image signal message acquisition module, and described image signal message is carried out
White balance processing;
Image signal information processing module is connect with the white balance processing module, and white balance treated image is believed
Number information is converted to the image information of number format, forms photo.
Preferably, when the phase information of focusing area is shot described in the statistical module counts, the phase information includes
Phase value and confidence level.
Preferably, the contrast Focusing module includes:
Mobile unit controls the motor to move the eyeglass to different location;
Contrast acquiring unit obtains the contrast of the image of different location photographs;
Optimum contrast position acquisition unit is connect with the contrast acquiring unit, position during by contrast maximum
As the optimum contrast position.
After employing above-mentioned technical proposal, compared with prior art, have the advantages that:
1. effectively shortening auto-focusing time and photo opporunity, user experience is promoted.
Description of the drawings
Fig. 1 is the flow diagram for meeting the focusing method based on intelligent terminal in one embodiment of the invention;
Fig. 2 is the flow diagram for meeting the focusing method based on intelligent terminal in another embodiment of the present invention;
Fig. 3 is the flow diagram for meeting step S106 in Fig. 1 in one embodiment of the invention;
Fig. 4 is the structure diagram for meeting the focusing mechanism based on intelligent terminal in one embodiment of the invention;
Fig. 5 is the structure diagram for meeting the focusing mechanism based on intelligent terminal in another embodiment of the present invention;
Fig. 6 is the structure diagram for meeting Fig. 4 medium contrasts Focusing module in one embodiment of the invention.
Reference numeral:
Focusing mechanisms of the 10- based on intelligent terminal, 11- previewing modules, 12- operation judges module, 13- setup modules, 14-
Exposure module, 15- statistical modules, 16- phases Focusing module, 17- first movements module, 18- contrasts Focusing module, 19- second
Mobile module, 20- image signal informations acquisition module, 21- white balances processing module, 22- image signal informations processing module,
181- mobile units, 182- contrasts acquiring unit, 183- optimum contrast position acquisition units.
Specific embodiment
The advantages of the present invention is further explained below in conjunction with attached drawing and specific embodiment.
Here exemplary embodiment will be illustrated in detail, example is illustrated in the accompanying drawings.Following description is related to
During attached drawing, unless otherwise indicated, the same numbers in different attached drawings represent the same or similar element.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
It is only merely for the purpose of description specific embodiment in the term that the disclosure uses, and is not intended to be limiting the disclosure.
" one kind " of singulative used in disclosure and the accompanying claims book, " described " and "the" are also intended to including majority
Form, unless context clearly shows that other meanings.It is also understood that term "and/or" used herein refers to and wraps
Containing one or more associated list items purposes, any or all may be combined.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the disclosure
A little information should not necessarily be limited by these terms.These terms are only used for same type of information being distinguished from each other out.For example, not departing from
In the case of disclosure range, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as
One information.Depending on linguistic context, word as used in this " if " can be construed to " ... when " or " when ...
When " or " in response to determining ".
In the description of the present invention, it is to be understood that term " longitudinal direction ", " transverse direction ", " on ", " under ", "front", "rear",
The orientation or position relationship of the instructions such as "left", "right", " vertical ", " level ", " top ", " bottom " " interior ", " outer " is based on attached drawing institutes
The orientation or position relationship shown is for only for ease of the description present invention and simplifies description rather than instruction or imply signified dress
It puts or element must have specific orientation, with specific azimuth configuration and operation, therefore it is not intended that limit of the invention
System.
In the description of the present invention, unless otherwise prescribed and limit, it should be noted that term " installation ", " connected ",
" connection " should be interpreted broadly, for example, it may be the connection inside mechanical connection or electrical connection or two elements, it can
To be to be connected directly, can also be indirectly connected by intermediary, it for the ordinary skill in the art, can basis
Concrete condition understands the concrete meaning of above-mentioned term.
In subsequent description, using for representing that the suffix of such as " module ", " component " or " unit " of element is only
Be conducive to the explanation of the present invention, itself there is no specific meanings.Therefore, " module " can mixedly make with " component "
With.
It is described to meet the flow diagram of the focusing method based on intelligent terminal in one embodiment of the invention refering to Fig. 1
Focusing method includes the following steps:
S101:The intelligent terminal is controlled to be in shooting preview pattern.
The intelligent terminal can be the smart machine that smart mobile phone, tablet computer etc. have shooting function.The intelligence
Terminal has shooting preview pattern, that is, after opening shooting function, the content of shooting of preview is shown on the screen of the intelligent terminal,
With the movement of intelligent terminal, the content of shooting of the preview shown on screen can also change therewith, and user can be according to preview
Content of shooting determines best shooting scene.The realization of the shooting preview pattern, must be according to intelligence described in some frequency coordination
The optical signals photosensitive element of the content of shooting is converted to electric signal and shown on the screen by the camera of terminal.Institute
Frequency is stated not less than 24Hz, to keep the visual continuity of preview content.
S102:Judge whether the touch screen of the intelligent terminal receives a touch operation.
The intelligent terminal has touch screen, can recognize that the touch operation that user implements.The touch operation can be in institute
State any position on touch screen.When user carries out touch operation, the telecommunications of touch operation position on the touch screen can be caused
Number parameter changes, such as capacitance variation or resistance change, so as to fulfill the identification to touch operation.The touch screen
It is that there is output to show and receive a kind of special screen of input operation simultaneously.
S103:It is when the touch screen that the intelligent terminal connects receives a touch operation, the touch operation is corresponding tactile
It touches the position on screen and is set as shooting focusing area.
When touch screen one touch operation of reception that step S102 judges to set up, i.e., described intelligent terminal connects, this step is performed
Suddenly.Position on the corresponding touch screen of the touch operation is set as shooting focusing area by this step.The touch screen uses phase
Mutually vertical sensing unit can accurately perceive the position of the touch operation.Then the position is set as institute by the intelligent terminal
State shooting focusing area.Existing middle and high end intelligent terminal supports touch focusing technology, i.e. user first selects a Petting Area
Domain, then the intelligent terminal is for touch area operation focus algorithm, so as to fulfill auto-focusing.Described in the present embodiment
Shoot focusing area be for the region for step of subsequently focusing, can be rectangle centered on the position of the touch operation or
Circle, the size of the shooting focusing area represent with pixel, such as the rectangle of 50*50 or circle that radius is 50.
S104:Exposing operation is performed according to the shooting focusing area.
This step performs exposing operation according to the shooting focusing area set in step S103.The effect of the exposing operation
Range is still whole coverages of the camera, is not limited to the shooting focusing area.The physics connotation of exposure refers to light
Line makes photosensitive level (having applied photographic chemistry object) generate latent image, and in the present embodiment, exposure refers to intelligent terminal using lamp
Pattern, be generally divided into it is a variety of, such as Manual exposure, AE exposure isotype.The quality of photo is related with exposure, that is to say, that should
This, which leads to how many light, enables camera to obtain clearly image, and light exposure is by thang-kng time (shutter speed determines) and thang-kng
Area (aperture size) determines.After performing exposing operation, the photosensitive element in the intelligent terminal forms the figure that electric signal represents
As information, an image, that is, photo are eventually formed.
In other embodiments of the invention, the shooting focusing area is not necessarily the region that user's touch operation is selected,
Can be preset one piece of screen area, such as the middle position of the screen, corner location etc..
S105:Count the phase information of the shooting focusing area.
Contain eyeglass, combination of the eyeglass for a lens or multiple lens in the camera.The object being taken
Some point can be emitted beam from all directions through the eyeglass, and be imaged on photosensitive element, when the light of different directions
When line imaging falls on the same position of the photosensitive element, the phase coincidence of different light generations, aberration is minimum at this time.
In most cases, the distance of the eyeglass and photosensitive element is not in optimum state, can be different at this time excessively closely or too far
The light in direction is imaged on different positions, and aberration is larger, and according to hypotelorism or too far, the relative position of two composition pictures
Also it is different, it can be as the foundation for judging phase directional.
According to above-mentioned principle, this step chooses the shooting focusing area and carries out phase information acquisition, i.e., from described photosensitive
The different image spaces of specific pixel point in the shooting focusing area are obtained on element, and record the letter of different image spaces
Breath, that is, phase information.The phase information provides calculating basis for subsequent focus algorithm.In order to save calculation amount and sense
The workload of optical element will not choose reference of the range entirely shot as phase calculation, but shoot focusing area from described
One or several pixels is selected to carry out the acquisition of phase information in domain.
S106:Position where calculating the eyeglass of the intelligent terminal according to the phase information by phase focus algorithm
With the distance of optimal phase position.
Phase is focused, and English abbreviation PDAF, English full name is PhaseDetectionAutoFocus, and literal meaning is just
It is " phase-detection auto-focusing ".This step execution phase focus algorithm, the wherein content of phase-detection are in step S105
It realizes, has obtained phase information, this step calculates the phase information by phase focus algorithm.For same point institute
The imaging of the different location of formation, two distances being imaged and the photosensitive element are in position (the i.e. best phase of imaging coincidence point
Position position) there are correspondence, during each intelligent terminal manufacture, the geometric parameter of the eyeglass in camera be it is fixed,
That is if extraneous light is also it is believed that be aware of the distances of two imagings by the light path of the image lenses,
And the position that the eyeglass is current, you can calculate the distance of the eyeglass and optimal phase position.Due to the photosensitive member
Part is located at difference of the imaging with relative position during optimal phase position both sides respectively, therefore phase focus algorithm can recognize that institute
The directionality of eyeglass position and the optimal phase position is stated, direction and distance are determined for the movement of subsequent eyeglass.
S107:The motor of the intelligent terminal moves the eyeglass to the optimal phase position.
This step performs the moving operation to the eyeglass.Motor is equipped in the intelligent terminal, dedicated for mobile institute
Eyeglass is stated, moving direction is parallel through the direction of the eyeglass with light.Step S106 has been calculated where the eyeglass
Position and optimal phase position distance and direction, therefore this step only need to move the eyeglass according to above-mentioned parameter.
Accurate movement of the stepper motor realization to camera lens can be used in the intelligent terminal;Position sensor be may also set up to the eyeglass
It is fed back to realize accurate movement in position.
Step S106 and S107 realize " single step " movement to camera lens, quickly reach optimal phase position, are follow-up
The focusing of contrast phase provides pinpoint basis.
S108:Optimum contrast position of the eyeglass near the optimal phase position is searched for by contrast focus algorithm
It puts.
Although step S106 and S107 is realized by way of opposite focusing is moved to the optimum phase by the eyeglass
Position, it is less however, as the pixel number for participating in the calculating of phase focus algorithm, it is difficult to weigh from the angle of entire coverage
Best phase position is measured, may not be exactly whole Zhang Zhao in this position even if obtaining an optimal phase position in step S106
Piece most clearly camera site, it is therefore desirable to carry out supplement positioning with contrast focus algorithm.
Contrast is focused, and is by the way that the point of contrast maximum in focusing area is looked for be used as the accurate point of focusing, but difference is right
The size of the contrast in burnt region is not fixed, and intelligent terminal does not know when maximum trace comparison degree is yet, so needing
Move back and forth eyeglass to find optimum contrast position.In this step, the contrast focus algorithm can be searching algorithm, i.e., not
Next position is found disconnectedly, the Record Comparison degree on each position, and the contrast size of all positions recorded,
The position of contrast maximum is chosen as optimum contrast position.Search of this step to the optimum contrast position, is based on
The eyeglass has been in optimal phase position after the optimal phase position, i.e. step S107, this step is in optimum phase
The search of optimum contrast position is carried out near position.The computer capacity of the contrast focus algorithm is entire coverage,
The range of namely whole photo, therefore most clear photograph can be obtained.
S109:The motor of the intelligent terminal moves the eyeglass to the optimum contrast position.
This step moves the eyeglass according to the search result of step S108.According to the characteristics of contrast focus algorithm, the calculation
It needs constantly to move eyeglass in method implementation procedure, therefore actually this step and the step S108 is alternately, often
The position of search next step, this step just mobile primary eyeglass, and the position by step S108 calculating next time,
Until finding optimum contrast position, stop the execution of this step.
In the prior art, using only the intelligent terminal of contrast focus algorithm, the entire movement of the ranging from eyeglass of search
Range in order to find optimum contrast position, needs to expend longer search time.The present embodiment is then focused by phase first
Algorithm finds out optimal phase position, then moves the eyeglass to the optimal phase position, then by contrast focus algorithm into
Row fine search finds optimum contrast position near the optimal phase position, reduces the search of contrast focus algorithm
Range saves search time relative to the prior art.
Referring to Fig.2, the flow diagram to meet the focusing method based on intelligent terminal in another embodiment of the present invention, step
After rapid S109, the focusing method is further comprising the steps of:
S110:It re-shoots to form an image signal information.
After the step S109 is finished, the eyeglass has been in optimum contrast position, that is, image is most clear
Camera site when clear, this step are re-shoot, and form an image signal information.Described image signal message is the photosensitive member
The signal message that part directly obtains also needs subsequent step processing that could form final photo.
S111:White balance processing is carried out to described image signal message.
The white balance is to describe an index of white accuracy after red, green, blue three primary colours mixing generation in display.
Due to exposure characteristics, the image shot in the room of fluorescent lamp can seem greening, shoot what is come under tungsten light indoors
Scenery will be partially yellow, and then partially blue in the photo that daylight shaded side takes.In order to make the color on photo more close to true
Object color, need carry out white balance processing, under these scenes restore image normal color.In existing intelligent terminal
White balance processing function is respectively provided with, be otherwise known as AWB processing, can carry out white balance processing to the image signal information of acquisition.Intelligence
Energy terminal additionally provides the parameter setting interface of white balance processing, allows user from main regulation white balance parameter.
S112:By the image information of white balance treated image signal information is converted to number format, photo is formed.
The form of the intelligent terminal storage photo of mainstream is the digital image formats such as jpg, png, and what photosensitive element obtained
Image signal information also needs to carry out format conversion just to obtain the photo of unified form.This step is by white balance treated image
Signal message is converted to the image information of number format, obtains photo.Such as described image signal message is represented for picture element matrix
Binary number, an element of each pixel as matrix, this step is then according to unified digital image format to upper
It states picture element matrix to be handled, obtains the image information for meeting call format.
As being further improved for the focusing method, when step S105 is performed, the phase information include phase value and
Confidence level.This improvement embodiment further specifies the content of the phase information, including phase value and confidence level.The phase
The relative position and distance of different imagings that the different light that value includes same point are formed, be otherwise known as PD values;The confidence
The confidence level values that are otherwise known as are spent, is also called confidence level, refers to population parameter value and fall in a certain area of sample statistics value
Interior probability.Due to the various uncertainties in shooting operation, such as the power of extraneous light, the angle of shooting, subject
The factors such as the color contrast of body can cause the accuracy of phase focus algorithm and contrast focus algorithm to decline, that is to say, that logical
Crossing optimal phase position that above-mentioned algorithm obtains or optimum contrast position may be not necessarily really, therefore introduce confidence level
It participates in calculating, to ensure the reasonability of algorithm.
Refering to Fig. 3, to meet the flow diagram of step S106 in Fig. 1 in one embodiment of the invention, the step S106
Including:
S106-1:The motor moves the eyeglass to different location.
The present embodiment refines the realization process of contrast focus algorithm.In this step, institute is moved by the motor
Eyeglass is stated to different location.When this step performs, the moving range of the eyeglass should be no more than and the optimal phase position
A distance threshold, such as the distance threshold can be 1/5th of entire eyeglass moving range.Only limit the mirror
The moving range of piece could effectively reduce the search range of the contrast focus algorithm, could shorten search time.
S106-2:Obtain the contrast of the image of different location photographs.
Whenever the eyeglass is moved to a position, the intelligent terminal shoots image, and obtains the contrast of the image.
If eyeglass described in step S106-1 is successively moved to multiple positions, the intelligent terminal shoots multiple images and calculates comparison
Degree.When obtaining contrast, the corresponding position of each contrast must also be recorded.
S106-3:Position during using contrast maximum is as the optimum contrast position.
The step S106-2 all contrasts obtained are compared, maximum contrast is found out and the contrast corresponds to
Position, using the position as the optimum contrast position.Because during contrast maximum, that is, the most clear feelings of piece image
Condition.
It is described to meet the structure diagram of the focusing mechanism 10 based on intelligent terminal in one embodiment of the invention refering to Fig. 4
Focusing mechanism 10 includes:
Previewing module 11
The previewing module 11 controls the intelligent terminal to be in shooting preview pattern.The operating system of the intelligent terminal
The open interface for having shooting preview pattern, the previewing module 11 call the shooting anticipation pattern by the interface.
Operation judges module 12
The operation judges module 12 judges whether the touch screen of the intelligent terminal receives a touch operation.The operation
Judgment module 12 obtains touch event by the interface that the intelligent terminal operation system opens, and has also just known whether to touch behaviour
Make.
Setup module 13
The setup module 13 is connect with the operation judges module 12, when the operation judges module 12 judges the intelligence
When the touch screen that energy terminal connects receives a touch operation, the position on the corresponding touch screen of the touch operation is set as shooting pair
Burnt region.
Exposure module 14
The exposure module 14 performs exposing operation according to a shooting focusing area.The exposure module 14 controls the sense
Optical element converts optical signals to electric signal, i.e. image signal information, realizes exposing operation.
Statistical module 15
The statistical module 15 is connect with the exposure module 14, counts the phase information of the shooting focusing area.Institute
It states statistical module 15 and obtains described image signal message from the exposure module 14, and to the image in the shooting focusing area
Signal message is handled, and obtains phase information.Such as some pixel in the shooting focusing area is as a reference point,
Then obtain the position of different imagings of the reference point in described image signal message.
Phase Focusing module 16
The phase Focusing module 16 is connect with the statistical module 15, is believed by phase focus algorithm according to the phase
The distance of position and optimal phase position where the eyeglass of the breath calculating intelligent terminal.The phase Focusing module 16 is from institute
It states statistical module 15 and obtains the phase information, and according to phase information and the physical message of the intelligent terminal eyeglass, meter
Calculate the position where the eyeglass and the distance of the optimal phase position.
First movement module 17
The first movement module 17 is connect with the phase Focusing module 16, and the motor of the intelligent terminal is controlled to move
The eyeglass is to the optimal phase position.The first movement module 17 performs the calculating knot of the phase Focusing module 16
Fruit, and motor described in the Interface Controller opened by the intelligent terminal operation system moves the eyeglass.
Contrast Focusing module 18
The contrast Focusing module 18 searches for the eyeglass near the optimal phase position by contrast focus algorithm
Optimum contrast position.It is preset with contrast focus algorithm in the contrast Focusing module 18, and from the optimal phase position
Start to search for, find out the optimum contrast position of the eyeglass.
- the second mobile module 19
Second mobile module 19 is connect with the contrast Focusing module 18, and the motor of the intelligent terminal is controlled to move
The eyeglass is to the optimum contrast position.Second mobile module 19 performs the calculating knot of the contrast Focusing module 18
Fruit, and motor described in the Interface Controller opened by the intelligent terminal operation system moves the eyeglass.
Refering to Fig. 5, to meet the structure diagram of the focusing mechanism 10 based on intelligent terminal in another embodiment of the present invention, institute
Focusing mechanism 10 is stated to further include:
Image signal information acquisition module 20
Described image signal message acquisition module 20 re-shoots to form an image signal information.Described image signal message
Acquisition module 20 controls the camera of the intelligent terminal and photosensitive element to re-shoot, and forms an image signal information.
White balance processing module 21
The white balance processing module 21 is connect with described image signal message acquisition module 20, and described image signal is believed
Breath carries out white balance processing.
Image signal information processing module 22
Described image signal and information processing technology module 22 is connect with the white balance processing module 21, and by white balance, treated
Image signal information is converted to the image information of number format, forms photo.
As being further improved for the focusing mechanism 10, the statistical module 15 counts the phase of the shooting focusing area
During the information of position, the phase information includes phase value and confidence level.
Refering to Fig. 6, to meet the structure diagram of Fig. 4 medium contrasts Focusing module 18 in one embodiment of the invention, the contrast
Focusing module 18 includes:
Mobile unit 181
The mobile unit 181 controls the motor to move the eyeglass to different location.
Contrast acquiring unit 182
The contrast acquiring unit 182 obtains the contrast of the image of different location photographs.The contrast obtains
Unit 182 and 181 cooperating of mobile unit, it is described whenever the mobile unit 181 moves the eyeglass to a position
Contrast acquiring unit 182 obtains the contrast of image in this position, and records the corresponding position of each contrast.
Optimum contrast position acquisition unit 183
The optimum contrast position acquisition unit 183 is connect with the contrast acquiring unit 182, by contrast maximum
When position as the optimum contrast position.The optimum contrast position acquisition unit 183 obtains the contrast
All contrasts that unit 182 obtains are compared, and find out the corresponding position of contrast of maximum contrast and maximum, the position
It puts as the optimum contrast position.
It should be noted that the embodiment of the present invention has preferable implementation, and not the present invention is made any type of
Limitation, any one skilled in the art change or are modified to possibly also with the technology contents of the disclosure above equivalent effective
Embodiment, as long as without departing from the content of technical solution of the present invention, what technical spirit according to the present invention made above example
Any modification or equivalent variations and modification, in the range of still falling within technical solution of the present invention.
Claims (10)
1. a kind of focusing method based on intelligent terminal, which is characterized in that include the following steps:
Exposing operation is performed according to a shooting focusing area;
Count the phase information of the shooting focusing area;
Position and best phase where calculating the eyeglass of the intelligent terminal according to the phase information by phase focus algorithm
The distance of position position;
The motor of the intelligent terminal moves the eyeglass to the optimal phase position;
Optimum contrast position of the eyeglass near the optimal phase position is searched for by contrast focus algorithm;
The motor of the intelligent terminal moves the eyeglass to the optimum contrast position.
2. focusing method as described in claim 1, which is characterized in that
Before the step of performing exposing operation according to a shooting focusing area, the focusing method is further comprising the steps of:
The intelligent terminal is controlled to be in shooting preview pattern;
Judge whether the touch screen of the intelligent terminal receives a touch operation;
When the touch screen that the intelligent terminal connects receives a touch operation, by the position on the corresponding touch screen of the touch operation
It installs to shoot focusing area.
3. focusing method as claimed in claim 2, which is characterized in that
After the motor of the intelligent terminal moves the eyeglass to the step of optimum contrast position, the focusing method
It is further comprising the steps of:
It re-shoots to form an image signal information;
White balance processing is carried out to described image signal message;
By the image information of white balance treated image signal information is converted to number format, photo is formed.
4. such as claim 1-3 any one of them focusing methods, which is characterized in that
When counting the phase information of the shooting focusing area, the phase information includes phase value and confidence level.
5. such as claim 1-3 any one of them focusing methods, which is characterized in that
The step of optimum contrast position of the eyeglass near the optimal phase position is searched for by contrast focus algorithm
Including:
The motor moves the eyeglass to different location;
Obtain the contrast of the image of different location photographs;
Position during using contrast maximum is as the optimum contrast position.
6. a kind of focusing mechanism based on intelligent terminal, which is characterized in that including:
Exposure module performs exposing operation according to a shooting focusing area;
Statistical module is connect with the exposure module, counts the phase information of the shooting focusing area;
Phase Focusing module is connect with the statistical module, by phase focus algorithm according to calculating the phase information
The distance of position and optimal phase position where the eyeglass of intelligent terminal;
First movement module is connect with the phase Focusing module, and the motor of the intelligent terminal is controlled to move the eyeglass extremely
The optimal phase position;
Contrast Focusing module searches for best comparison of the eyeglass near the optimal phase position by contrast focus algorithm
Spend position;
Second mobile module is connect with the contrast Focusing module, and the motor of the intelligent terminal is controlled to move the eyeglass extremely
The optimum contrast position.
7. focusing mechanism as claimed in claim 6, which is characterized in that
The focusing mechanism further includes:
Previewing module controls the intelligent terminal to be in shooting preview pattern;
Operation judges module, judges whether the touch screen of the intelligent terminal receives a touch operation;
Setup module is connect with the operation judges module, when the operation judges module judges that the intelligent terminal connects tactile
When touching screen one touch operation of reception, the position on the corresponding touch screen of the touch operation is set as shooting focusing area.
8. focusing mechanism as claimed in claim 7, which is characterized in that
The focusing mechanism further includes:
Image signal information acquisition module re-shoots to form an image signal information;
White balance processing module connect with described image signal message acquisition module, described image signal message is put down in vain
Weighing apparatus processing;
Image signal information processing module is connect with the white balance processing module, and white balance treated picture signal is believed
Breath is converted to the image information of number format, forms photo.
9. such as claim 6-8 any one of them focusing mechanisms, which is characterized in that
When the phase information of focusing area is shot described in the statistical module counts, the phase information includes phase value and confidence
Degree.
10. such as claim 6-8 any one of them focusing mechanisms, which is characterized in that
The contrast Focusing module includes:
Mobile unit controls the motor to move the eyeglass to different location;
Contrast acquiring unit obtains the contrast of the image of different location photographs;
Optimum contrast position acquisition unit is connect with the contrast acquiring unit, position during using contrast maximum as
The optimum contrast position.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711458446.9A CN108184055A (en) | 2017-12-28 | 2017-12-28 | A kind of focusing method and focusing mechanism based on intelligent terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711458446.9A CN108184055A (en) | 2017-12-28 | 2017-12-28 | A kind of focusing method and focusing mechanism based on intelligent terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108184055A true CN108184055A (en) | 2018-06-19 |
Family
ID=62548212
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711458446.9A Pending CN108184055A (en) | 2017-12-28 | 2017-12-28 | A kind of focusing method and focusing mechanism based on intelligent terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108184055A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111568240A (en) * | 2020-02-29 | 2020-08-25 | 佛山市云米电器科技有限公司 | Water outlet control method of water dispenser, water dispenser and computer readable storage medium |
CN114359807A (en) * | 2022-01-05 | 2022-04-15 | 深圳市布雷斯塔科技有限公司 | Visual perception method, device, equipment and computer storage medium |
CN114401372A (en) * | 2022-02-28 | 2022-04-26 | 维沃移动通信有限公司 | Focusing method, focusing device, electronic equipment and readable storage medium |
CN114466130A (en) * | 2020-11-09 | 2022-05-10 | 哲库科技(上海)有限公司 | Image processor, image processing method, and electronic device |
CN117939293A (en) * | 2024-01-24 | 2024-04-26 | 深圳赛尔智控科技有限公司 | Automatic focusing method, system, equipment and storage medium for middle-frame inspection camera |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1450398A (en) * | 2002-04-05 | 2003-10-22 | 佳能株式会社 | Image pick up apparatus and camera system thereof |
US20040202461A1 (en) * | 2003-04-08 | 2004-10-14 | Pentax Corporation | Passive autofocus system for a camera |
JP2007240877A (en) * | 2006-03-08 | 2007-09-20 | Canon Inc | Imaging apparatus and control method therefor |
JP2011197690A (en) * | 2011-05-26 | 2011-10-06 | Canon Inc | Imaging device and control method therefor |
CN104811620A (en) * | 2015-04-28 | 2015-07-29 | 上海与德通讯技术有限公司 | Focusing method and focusing system |
CN105007420A (en) * | 2015-07-14 | 2015-10-28 | 广东欧珀移动通信有限公司 | Focusing method and mobile terminal |
CN106060407A (en) * | 2016-07-29 | 2016-10-26 | 努比亚技术有限公司 | Focusing method and terminal |
-
2017
- 2017-12-28 CN CN201711458446.9A patent/CN108184055A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1450398A (en) * | 2002-04-05 | 2003-10-22 | 佳能株式会社 | Image pick up apparatus and camera system thereof |
US20040202461A1 (en) * | 2003-04-08 | 2004-10-14 | Pentax Corporation | Passive autofocus system for a camera |
JP2007240877A (en) * | 2006-03-08 | 2007-09-20 | Canon Inc | Imaging apparatus and control method therefor |
JP2011197690A (en) * | 2011-05-26 | 2011-10-06 | Canon Inc | Imaging device and control method therefor |
CN104811620A (en) * | 2015-04-28 | 2015-07-29 | 上海与德通讯技术有限公司 | Focusing method and focusing system |
CN105007420A (en) * | 2015-07-14 | 2015-10-28 | 广东欧珀移动通信有限公司 | Focusing method and mobile terminal |
CN106060407A (en) * | 2016-07-29 | 2016-10-26 | 努比亚技术有限公司 | Focusing method and terminal |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111568240A (en) * | 2020-02-29 | 2020-08-25 | 佛山市云米电器科技有限公司 | Water outlet control method of water dispenser, water dispenser and computer readable storage medium |
CN114466130A (en) * | 2020-11-09 | 2022-05-10 | 哲库科技(上海)有限公司 | Image processor, image processing method, and electronic device |
CN114359807A (en) * | 2022-01-05 | 2022-04-15 | 深圳市布雷斯塔科技有限公司 | Visual perception method, device, equipment and computer storage medium |
CN114401372A (en) * | 2022-02-28 | 2022-04-26 | 维沃移动通信有限公司 | Focusing method, focusing device, electronic equipment and readable storage medium |
CN114401372B (en) * | 2022-02-28 | 2024-08-06 | 维沃移动通信有限公司 | Focusing method, focusing device, electronic equipment and readable storage medium |
CN117939293A (en) * | 2024-01-24 | 2024-04-26 | 深圳赛尔智控科技有限公司 | Automatic focusing method, system, equipment and storage medium for middle-frame inspection camera |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108184055A (en) | A kind of focusing method and focusing mechanism based on intelligent terminal | |
CN108933899B (en) | Panorama shooting method, device, terminal and computer readable storage medium | |
JP5096017B2 (en) | Imaging device | |
CN103428416B (en) | Automatic terminal focusing mode switching method and terminal | |
CN108777767A (en) | Photographic method, device, terminal and computer readable storage medium | |
CN103261939B (en) | Imaging device and main photography target recognition methods | |
US20210112204A1 (en) | Image processing apparatus, control method therefor, and storage medium | |
US7725019B2 (en) | Apparatus and method for deciding in-focus position of imaging lens | |
KR20180109918A (en) | Systems and methods for implementing seamless zoom functionality using multiple cameras | |
US8670064B2 (en) | Image capturing apparatus and control method therefor | |
CN108028887A (en) | Focusing method of taking pictures, device and the equipment of a kind of terminal | |
WO2011004686A1 (en) | Focus detection apparatus | |
CN105872393A (en) | High dynamic range image generation method and device | |
CN102811312B (en) | Picture pick-up device and control method thereof | |
CN1450398A (en) | Image pick up apparatus and camera system thereof | |
US7614559B2 (en) | Apparatus and method for deciding in-focus position of imaging lens | |
CN105227857A (en) | A kind of method and apparatus of automatic exposure | |
CN106331505A (en) | Shooting method and device | |
CN106060344A (en) | Imaging apparatus and method of controlling the same | |
CN103227899B (en) | Picture pick-up device and control method thereof | |
JP2009086688A (en) | Camera | |
CN106412419A (en) | Image capture apparatus and method for controlling the same | |
CN115379201A (en) | Test method and device, electronic equipment and readable storage medium | |
JP3510063B2 (en) | Exposure control device for still video camera | |
JP2008199461A (en) | Imaging apparatus |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180619 |