CN104902162A - Information processing method and electronic equipment - Google Patents
Information processing method and electronic equipment Download PDFInfo
- Publication number
- CN104902162A CN104902162A CN201410074896.8A CN201410074896A CN104902162A CN 104902162 A CN104902162 A CN 104902162A CN 201410074896 A CN201410074896 A CN 201410074896A CN 104902162 A CN104902162 A CN 104902162A
- Authority
- CN
- China
- Prior art keywords
- pair
- coke number
- image acquisition
- acquisition units
- duty ratio
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Studio Devices (AREA)
- Automatic Focus Adjustment (AREA)
Abstract
The application provides an information processing method and electronic equipment, and aims at solving the technical problems of long time required for contrast detection method focusing in the prior art. The method comprises the steps that the first lens of a first image acquisition unit is controlled to move from a first position to a first direction, and the second lens of a second image acquisition unit is controlled to move from the first position to a second direction opposite to the first direction; at least one first focusing value in a first focusing area corresponding to the first image acquisition unit is acquired in the process of moving to the first direction, and at least one second focusing value in a second focusing area corresponding to the second image acquisition unit is acquired in the process of moving to the second direction; first operation processing is performed on the at least one first focusing value and the at least one second focusing value so that a third focusing value is acquired; and the first and second image acquisition units are controlled to complete focusing based on the third focusing value.
Description
Technical field
The present invention relates to electronic technology field, particularly relate to a kind of information processing method and electronic equipment.
Background technology
Nineteen thirty-nine, French Daguerre has invented First camera in the world, and from then on, people just change the mode that people record life.Along with the development of electro-optical technology, the landscape of people's shooting, the photographic quality of personage and animal have also developed colour from black and white, and photo is more clear and true to nature.
Existing focusing mode mainly contains two kinds: one is initiatively focusing; Another kind is passive focusing.Initiatively focusing is mainly used in old-fashioned camera.What present mobile phone, panel computer and magazine focusing nearly all adopted is passive focusing.Further, the contrast detection method focusing in passive focusing has again three kinds of concrete methods.
The first is universe climbing algorithm, as shown in Figure 1, one by one relatively to coke number, all coke number has been compared after determine maximum to coke number to drive focusing motor to complete focusing.The second is algorithm of climbing fast, as described in Figure 2, once compare acquisition maximum, namely occur current to coke number be less than upper one to coke number time, just obtain maximum to coke number, so far just no longer continue to compare.The third is universe segmentation climbing algorithm, as shown in Figure 3, is divided into multistage to carry out climbing algorithm respectively by the depth of field, selects a representation node, compare the maximum to coke number to obtain to coke number of each representation node in identical field depth.
But the computing time of above-mentioned three kinds of focusing methods is long and speed is slow, is difficult to the requirement meeting user's rapid focus.Therefore, there is the technical problem that contrast detection method focusing required time is long in prior art.
Summary of the invention
This application provides a kind of information processing method and electronic equipment, in order to solve the technical problem of the contrast detection method focusing required time length that prior art exists, achieve the technique effect reducing half focusing time.
On the one hand, this application provides a kind of information processing method, be applied to an electronic equipment, described electronic equipment comprises two image acquisition units, and described method comprises:
The first eyeglass controlling the first image acquisition units moves from primary importance to first direction, and the second eyeglass of the second image acquisition units moves from described primary importance to second direction opposite to the first direction;
To in described first direction moving process, obtain at least one the first pair of coke number in the first focusing area corresponding to described first image acquisition units, and in described second direction moving process, obtain at least one the second pair of coke number in the second focusing area corresponding to described second image acquisition units;
First calculation process is carried out at least one first pair of coke number described and at least one second pair of coke number described, obtains the 3rd pair of coke number;
Control first and second image acquisition units described and complete focusing based on described 3rd pair of coke number.
Optionally, when the duty ratio that described primary importance is specially driving pulse is the first duty ratio, the position that the first driver element in described electronic equipment and the second driver element can drive described first eyeglass and described second eyeglass to arrive respectively.
Optionally, the first eyeglass of described control first image acquisition units moves from primary importance to first direction, and the second eyeglass of the second image acquisition units moves from described primary importance to second direction opposite to the first direction, is specially:
Control described driving pulse from described first change in duty cycle to the second duty ratio being different from described first duty ratio, thus control described first eyeglass and move to described first direction from described primary importance;
Control described driving pulse from described first change in duty cycle to three duty ratio all different with described second duty ratio from described first duty ratio, thus control described second eyeglass and move to described second direction from described primary importance.
Optionally, described in described first direction moving process, obtain at least one the first pair of coke number in the first focusing area corresponding to described first image acquisition units, and in described second direction moving process, obtain at least one the second pair of coke number in the second focusing area corresponding to described second image acquisition units, be specially:
Obtain the first pixel value in described first focusing area, based on described first pixel value, obtain the first gradient information;
Carry out universe climbing algorithm process, fast climbing algorithm or universe segmentation climbing algorithm for described first gradient information, obtain at least one first pair of coke number described;
Obtain the second pixel value in described second focusing area, based on described second pixel value, obtain the second gradient information;
Carry out universe climbing algorithm process, fast climbing algorithm or universe segmentation climbing algorithm for described second gradient information, obtain at least one second pair of coke number described.
Optionally, described first calculation process is carried out at least one first pair of coke number described and at least one second pair of coke number described, obtains the 3rd pair of coke number, be specially:
Each at least one first pair of coke number relatively more described and at least one second pair of coke number described, to coke number, obtains maximum to coke number;
Determine obtain described maximum be described 3rd pair of coke number to coke number.
Optionally, first and second image acquisition units described in described control completes focusing based on described 3rd pair of coke number, is specially:
Based on described 3rd pair of coke number, obtain the 4th duty ratio;
Described first driver element drives described first eyeglass to move to the described 3rd pair of second place that coke number is corresponding based on described 4th duty ratio, and then makes described first image acquisition units complete focusing; And described second driver element drives described second eyeglass to move to the described second place corresponding to described 3rd pair of coke number based on described 4th duty ratio, and then described second image acquisition units is made to complete focusing.
On the other hand, this application provides electronic equipment in, comprise two image acquisition units, described electronic equipment also comprises:
First control unit, moves to first direction from primary importance for the first eyeglass controlling the first image acquisition units, and the second eyeglass of the second image acquisition units moves from described primary importance to second direction opposite to the first direction;
Unit is obtained to coke number, for in described first direction moving process, obtain at least one the first pair of coke number in the first focusing area corresponding to described first image acquisition units, and in described second direction moving process, obtain at least one the second pair of coke number in the second focusing area corresponding to described second image acquisition units;
Processing unit, for carrying out the first calculation process at least one first pair of coke number described and at least one second pair of coke number described, obtains the 3rd pair of coke number;
Second control unit, completes focusing for controlling first and second image acquisition units described based on described 3rd pair of coke number.
Optionally, when the duty ratio that described primary importance is specially driving pulse is the first duty ratio, the position that the first driver element in described electronic equipment and the second driver element can drive described first eyeglass and described second eyeglass to arrive respectively.
Optionally, described first control unit, specifically for:
Control described driving pulse from described first change in duty cycle to the second duty ratio being different from described first duty ratio, thus control described first eyeglass and move to described first direction from described primary importance;
Control described driving pulse from described first change in duty cycle to three duty ratio all different with described second duty ratio from described first duty ratio, thus control described second eyeglass and move to described second direction from described primary importance.
Optionally, described to coke number acquisition unit, specifically for:
Obtain the first pixel value in described first focusing area, based on described first pixel value, obtain the first gradient information;
Carry out universe climbing algorithm process, fast climbing algorithm or universe segmentation climbing algorithm for described first gradient information, obtain at least one first pair of coke number described;
Obtain the second pixel value in described second focusing area, based on described second pixel value, obtain the second gradient information;
Carry out universe climbing algorithm process, fast climbing algorithm or universe segmentation climbing algorithm for described second gradient information, obtain at least one second pair of coke number described.
Optionally, described processing unit, specifically for:
Each at least one first pair of coke number relatively more described and at least one second pair of coke number described, to coke number, obtains maximum to coke number;
Determine obtain described maximum be described 3rd pair of coke number to coke number.
Optionally, described second control unit, specifically for:
Based on described 3rd pair of coke number, obtain the 4th duty ratio;
Described first driver element drives described first eyeglass to move to the described 3rd pair of second place that coke number is corresponding based on described 4th duty ratio, and then makes described first image acquisition units complete focusing; And described second driver element drives described second eyeglass to move to the described second place corresponding to described 3rd pair of coke number based on described 4th duty ratio, and then described second image acquisition units is made to complete focusing.
Above-mentioned one or more technical scheme in the embodiment of the present application, at least has one or more technique effects following:
1, in the technical scheme of the application, first, the first eyeglass controlling the first image acquisition units moves from primary importance to first direction, and the second eyeglass of the second image acquisition units moves from described primary importance to second direction opposite to the first direction; Then, to in described first direction moving process, obtain at least one the first pair of coke number in the first focusing area corresponding to described first image acquisition units, and in described second direction moving process, obtain at least one the second pair of coke number in the second focusing area corresponding to described second image acquisition units; Further, the first calculation process is carried out at least one first pair of coke number described and at least one second pair of coke number described, obtains the 3rd pair of coke number; Finally, control first and second image acquisition units described and complete focusing based on described 3rd pair of coke number, solve the technical problem of the contrast detection method focusing required time length that prior art exists, achieve the technique effect simultaneously moving rapid focus by two image acquisition units to two rightabouts.
Accompanying drawing explanation
Fig. 1 is universe of the prior art climbing algorithm schematic diagram;
Fig. 2 is quick climbing algorithm schematic diagram of the prior art;
Fig. 3 is segmentation universe of the prior art climbing algorithm schematic diagram;
Fig. 4 is the information processing method flow chart in the embodiment of the present application one;
Fig. 5 is the universe climbing algorithm schematic diagram in the embodiment of the present application one;
Fig. 6 is the quick climbing algorithm schematic diagram in the embodiment of the present application one;
Fig. 7 is the segmentation universe climbing algorithm schematic diagram in the embodiment of the present application one;
Fig. 8 is the electronic devices structure schematic diagram in the embodiment of the present application two.
Embodiment
This application provides a kind of information processing method and electronic equipment, in order to solve the technical problem of the contrast detection method focusing required time length that prior art exists, achieve the technique effect reducing half focusing time.
In order to solve the problems of the technologies described above, technical scheme general thought provided by the invention is as follows:
The first eyeglass controlling the first image acquisition units moves from primary importance to first direction, and the second eyeglass of the second image acquisition units moves from described primary importance to second direction opposite to the first direction;
To in described first direction moving process, obtain at least one the first pair of coke number in the first focusing area corresponding to described first image acquisition units, and in described second direction moving process, obtain at least one the second pair of coke number in the second focusing area corresponding to described second image acquisition units;
First calculation process is carried out at least one first pair of coke number described and at least one second pair of coke number described, obtains the 3rd pair of coke number;
Control first and second image acquisition units described and complete focusing based on described 3rd pair of coke number.
In the technical scheme of the application, first, the first eyeglass controlling the first image acquisition units moves from primary importance to first direction, and the second eyeglass of the second image acquisition units moves from described primary importance to second direction opposite to the first direction; Then, to in described first direction moving process, obtain at least one the first pair of coke number in the first focusing area corresponding to described first image acquisition units, and in described second direction moving process, obtain at least one the second pair of coke number in the second focusing area corresponding to described second image acquisition units; Further, the first calculation process is carried out at least one first pair of coke number described and at least one second pair of coke number described, obtains the 3rd pair of coke number; Finally, control first and second image acquisition units described and complete focusing based on described 3rd pair of coke number, solve the technical problem of the contrast detection method focusing required time length that prior art exists, achieve the technique effect simultaneously moving rapid focus by two image acquisition units to two rightabouts.
Below by accompanying drawing and specific embodiment, technical solution of the present invention is described in detail, the specific features being to be understood that in the embodiment of the present application and embodiment is the detailed description to technical scheme, instead of the restriction to technical scheme, when not conflicting, the technical characteristic in the embodiment of the present application and embodiment can combine mutually.
In the embodiment of the present application, provide a kind of information processing method and electronic equipment, in concrete enforcement, electronic equipment can be smart mobile phone, can be also panel computer or slr camera, as long as have image acquisition units, concrete, in the embodiment of the present application, will not be restricted.In the following description, for camera, the information processing method in the embodiment of the present application and electronic equipment will be described in detail.
Embodiment one:
Before introducing the information processing method of the embodiment of the present application, the basic structure of the electronic equipment first method of the embodiment of the present application applied makes a presentation, and please refer to Fig. 8, and the electronic equipment in the embodiment of the present application comprises:
First control unit 1, moves to first direction from primary importance for the first eyeglass controlling the first image acquisition units, and the second eyeglass of the second image acquisition units moves from described primary importance to second direction opposite to the first direction;
Unit 2 is obtained to coke number, for in described first direction moving process, obtain at least one the first pair of coke number in the first focusing area corresponding to described first image acquisition units, and in described second direction moving process, obtain at least one the second pair of coke number in the second focusing area corresponding to described second image acquisition units;
Processing unit 3, for carrying out the first calculation process at least one first pair of coke number described and at least one second pair of coke number described, obtains the 3rd pair of coke number;
Second control unit 4, also completes focusing for controlling first and second image acquisition units described based on described 3rd pair of coke number.
Below the first information processing method in the application is described in detail, please refer to Fig. 4.
S1: the first eyeglass controlling the first image acquisition units moves from primary importance to first direction, the second eyeglass of the second image acquisition units moves from described primary importance to second direction opposite to the first direction.
In order to complete focusing rapidly, in the embodiment of the present application, the image acquisition units of electronic equipment has two, and the same at the visual angle of the embodiment of the present application two image acquisition units, and two image acquisition units like this can be focused to same point.
In the embodiment of the present application, when the duty ratio that primary importance is specially driving pulse is the first duty ratio, the position that the first driver element in described electronic equipment and the second driver element can drive described first eyeglass and described second eyeglass to arrive respectively.
Specifically, focus process is that focusing motor drives the eyeglass of image acquisition units to move, thus obtains preview image.And drive the movement of eyeglass, be realized by the change of driving pulse.So in the embodiment of the present application, when the duty ratio of driving pulse is the first duty ratio, the position that the first eyeglass and the second eyeglass can reach is just primary importance.
And the first eyeglass controlling the first image acquisition units in step S1 moves from primary importance to first direction, the second eyeglass of the second image acquisition units moves from described primary importance to second direction opposite to the first direction, is specially:
Control described driving pulse from described first change in duty cycle to the second duty ratio being different from described first duty ratio, thus control described first eyeglass and move to described first direction from described primary importance;
Control described driving pulse from described first change in duty cycle to three duty ratio all different with described second duty ratio from described first duty ratio, thus control described second eyeglass and move to described second direction from described primary importance.
Along with the change of driving pulse duty ratio, focusing motor just can drive eyeglass to move, therefore, in order to rapid focus, in the embodiment of the present application, the duty ratio controlling driving pulse changes to the second duty ratio and the 3rd duty ratio from the first duty ratio respectively simultaneously, and the first duty ratio is different from the second duty ratio, thus the eyeglass controlling two image acquisition units moves simultaneously.
Further, if the first duty ratio is q1, second duty ratio is q2,3rd duty ratio is q3, in order to ensure that the first eyeglass and the second eyeglass can move toward different directions, need 0≤q2<q1<q3≤100%, or 0≤<q3<q1<q2≤100%.
Preferably, in order to ensure that the first image acquisition units and the second image acquisition units can obtain time enough, can q1=50% be set, q2=0, q3=100% or q1=50%, q2=100%, q3=0.Like this, the first eyeglass and the second eyeglass just from centre position respectively movement forward or backward obtain preview image.Certainly, can be also other, as q1=50%, q2=30%, q3=70% or q1=50%, q2=67%, q3=33%, technical staff belonging to the application can select according to actual needs, and the application does not do concrete restriction.
S2: in described first direction moving process, obtain at least one the first pair of coke number in the first focusing area corresponding to described first image acquisition units, and in described second direction moving process, obtain at least one the second pair of coke number in the second focusing area corresponding to described second image acquisition units.
In moving process, obtain preview image, and then obtain at least one first pair of coke number and at least one second pair of coke number.Wherein, the process obtaining at least one first pair of coke number and at least one second pair of coke number is:
Obtain the first pixel value in described first focusing area, based on described first pixel value, obtain the first gradient information;
Carry out universe climbing algorithm process, fast climbing algorithm or universe segmentation climbing algorithm for described first gradient information, obtain at least one first pair of coke number described;
Obtain the second pixel value in described second focusing area, based on described second pixel value, obtain the second gradient information;
Carry out universe climbing algorithm process, fast climbing algorithm or universe segmentation climbing algorithm for described second gradient information, obtain at least one second pair of coke number described.
Specifically, in the first image acquisition units focus process, first the first pixel value in the first focusing area is obtained, first pixel value is the pixel value of each pixel in focusing area, pixel value is between 0 ~ 255, by the contrast between neighbor pixel, and difference just can obtain the first gradient information.
Further, universe climbing algorithm process, fast climbing algorithm or universe segmentation are carried out to the first gradient information and climb algorithm to obtain at least one to coke number.Universe climbing algorithm process, fast climbing algorithm or universe segmentation climbing algorithm will be introduced in detail obtain the process of first pair of coke number below.
The first: universe climbing algorithm.
As shown in Figure 5, suppose primary importance corresponding be A point in Fig. 5 to coke number, and first direction is focal plane becomes general orientation.First, in universe climbing algorithm, the change of the first duty ratio q1 changes according to the frame per second of electronic equipment, if frame per second is 50fps, so as q1=50%, the change of q1 to q2 is just for driving the first eyeglass to move once every 1%, to obtain a frame preview image, obtain 50 frame preview images altogether.First elementary area carries out climbing algorithm from A point.Suppose q2=100%, and B point when duty ratio is 100% in corresponding diagram 5, so along with in the change of duty ratio, calculation process is carried out to the first gradient information, will be obtained at least one to coke number, until B point terminates.
For the process obtaining at least one second pair of coke number, suppose q3=0, corresponding C point, the process being obtained at least one second pair of coke number by the second gradient information is identical with the process obtaining first pair of coke number, has therefore just repeated no longer one by one.
The second: algorithm of climbing fast
As shown in Figure 6, suppose primary importance corresponding be A point in Fig. 6 to coke number, and first direction is focal plane becomes general orientation.First, climbing in algorithm fast, the change of the first duty ratio q1 changes according to the frame per second of electronic equipment, if frame per second is 50fps, so as q1=50%, the change of q1 to q2 is just for driving the first eyeglass to move once every 1%, to obtain a frame preview image, obtain 50 frame preview images altogether.First elementary area carries out climbing algorithm from A point.Suppose q2=85%, and B point when duty ratio is 85% in corresponding diagram 5, so along with in the change of duty ratio, calculation process is carried out to the first gradient information, will be obtained at least one to coke number, until B point terminates.
For the process obtaining at least one second pair of coke number, suppose q3=15%, corresponding C point, the process being obtained at least one second pair of coke number by the second gradient information is identical with the process obtaining first pair of coke number, has therefore just repeated no longer one by one.
The third: universe segmentation climbing algorithm
As shown in Figure 7, suppose primary importance corresponding be A point in Fig. 7 to coke number, and first direction is focal plane becomes general orientation.First, climbing in algorithm fast, the change of the first duty ratio q1 changes according to the depth of field of electronic equipment, if the depth of field is 4.94m ~ 5.062m, the change of duty ratio can be divided into 10 parts, so as q1=50%, the change of q1 to q2 is just for driving the first eyeglass to move once every 5%, to obtain a frame preview image, obtain 10 frame preview images altogether.First elementary area carries out climbing algorithm from A point.Suppose q2=100%, and B point when duty ratio is 100% in corresponding diagram 7, so along with in the change of duty ratio, calculation process is carried out to the first gradient information, will be obtained at least one to coke number, until B point terminates.
For the process obtaining at least one second pair of coke number, suppose q3=0%, corresponding C point, the process being obtained at least one second pair of coke number by the second gradient information is identical with the process obtaining first pair of coke number, has therefore just repeated no longer one by one.
S3: the first calculation process is carried out at least one first pair of coke number described and at least one second pair of coke number described, obtains the 3rd pair of coke number.
After obtaining at least one first pair of coke number and at least one second pair of coke number, carry out the first calculation process, the 3rd pair of coke number can be obtained.Be specially:
Each at least one first pair of coke number relatively more described and at least one second pair of coke number described, to coke number, obtains maximum to coke number;
Determine obtain described maximum be described 3rd pair of coke number to coke number.
Specifically, in the embodiment of the present application, when carrying out algorithms of different, the method obtaining the 3rd pair of coke number is different, will obtain the 3rd pair of coke number be below introduced three kinds of algorithms.
The first: universe climbing algorithm
When carrying out universe climbing algorithm, due to the first image acquisition units from the first duty ratio to the process of the second duty ratio, and second image acquisition units to the process of the 3rd duty ratio, obtain at least one first pair of coke number and at least one second pair of coke number from the first duty ratio, by comparing at least one to coke number and at least one second pair of coke number, what wherein compare is maximumly the 3rd pair of coke number to coke number.Such as: at least one first pair of coke number is 1.4,1.2,1.1,1, at least one second pair of coke number is 1.5,1.6, and 1.5,1.4 can 1.6 be so maximums, and so the 3rd pair of coke number is exactly 1.6, is assumed to be the D point in Fig. 5.
The second: algorithm of climbing fast
Owing to climbing fast, algorithm has been searched for regard to no longer carrying out after acquisition maximum.Therefore, at least one first pair of coke number that the first image acquisition units and the second image acquisition units obtain and at least one second pair of coke number compare, and have searched for after acquisition maximum with regard to no longer carrying out.Such as: at least one first pair of coke number is 1.4,1.2,1.1,1,0.8 at least one second pair of coke number is 1.6,1.7,1.8,1.95,1.8, so obvious, at least one first pixel value has more and more less trend, and at least one second pair of coke number occurred after 1.95 than previous to coke number little 1.8, so 1.95 is maximums, so the 3rd pair of coke number is exactly 1.95, is assumed to be the D point in Fig. 6.After maximizing, the first image acquisition units and the second image acquisition units have not just obtained coke number.
The third: universe segmentation climbing algorithm
When carrying out universe climbing algorithm, due to the first image acquisition units from the first duty ratio to the process of the second duty ratio, and second image acquisition units to the process of the 3rd duty ratio, obtain at least one first pair of coke number and at least one second pair of coke number from the first duty ratio, by comparing at least one to coke number and at least one second pair of coke number, what wherein compare is maximumly the 3rd pair of coke number to coke number.Such as: at least one first pair of coke number of the representation node of each section is 1.4,1.2,1.1,1, and at least one second pair of coke number is 1.5,1.6,1.5,1.4 can 1.6 be so maximums, and so the 3rd pair of coke number is exactly 1.6, is assumed to be the D point in Fig. 7.
S4: control first and second image acquisition units described and complete focusing based on described 3rd pair of coke number.
After obtaining the 3rd pair of coke number, just can complete based on the 3rd pair of coke number and focus.Be specially:
Based on described 3rd pair of coke number, obtain the 4th duty ratio;
Described first driver element drives described first eyeglass to move to the described 3rd pair of second place that coke number is corresponding based on described 4th duty ratio, and then makes described first image acquisition units complete focusing; And described second driver element drives described second eyeglass to move to the described second place corresponding to described 3rd pair of coke number based on described 4th duty ratio, and then described second image acquisition units is made to complete focusing.
Specifically, after acquisition the 3rd pair of coke number, just can obtain the 4th duty ratio that the 3rd pair of coke number is corresponding, as 13%, 58%, 46% or 16% etc., further, after obtaining the 4th duty ratio, the duty ratio of driving pulse is adjusted to the 4th duty ratio, so the first eyeglass and the second eyeglass just can be driven into the second place corresponding to the 4th duty ratio by driving pulse, and the second place is exactly focal position.
Further, in order to focus more exactly, after such scheme implement one time, can implement second time, can more accurately focus like this among a small circle, being also just equivalent to first pass for thick focusing, is for second time thin focusing.
Therefore, in the technical scheme of the application, owing to using two image acquisition units to focus simultaneously, therefore search for maximum to coke number time, from a point, climbing algorithm can be carried out to both sides simultaneously, and then the focusing time of half can be reduced.
Embodiment two:
Please refer to Fig. 8, the embodiment of the present application two provides a kind of electronic equipment, and comprise two image acquisition units, electronic equipment also comprises:
First control unit 1, moves to first direction from primary importance for the first eyeglass controlling the first image acquisition units, and the second eyeglass of the second image acquisition units moves from described primary importance to second direction opposite to the first direction;
Unit 2 is obtained to coke number, for in described first direction moving process, obtain at least one the first pair of coke number in the first focusing area corresponding to described first image acquisition units, and in described second direction moving process, obtain at least one the second pair of coke number in the second focusing area corresponding to described second image acquisition units;
Processing unit 3, for carrying out the first calculation process at least one first pair of coke number described and at least one second pair of coke number described, obtains the 3rd pair of coke number;
Second control unit 4, completes focusing for controlling first and second image acquisition units described based on described 3rd pair of coke number.
Specifically, in the embodiment of the present application, when the duty ratio that primary importance is specially driving pulse is the first duty ratio, the position that the first driver element in described electronic equipment and the second driver element can drive described first eyeglass and described second eyeglass to arrive respectively.
Further, the first control unit 1, specifically for:
Control described driving pulse from described first change in duty cycle to the second duty ratio being different from described first duty ratio, thus control described first eyeglass and move to described first direction from described primary importance;
Control described driving pulse from described first change in duty cycle to three duty ratio all different with described second duty ratio from described first duty ratio, thus control described second eyeglass and move to described second direction from described primary importance.
Unit 2 is obtained to coke number, specifically for:
Obtain the first pixel value in described first focusing area, based on described first pixel value, obtain the first gradient information;
Carry out universe climbing algorithm process, fast climbing algorithm or universe segmentation climbing algorithm for described first gradient information, obtain at least one first pair of coke number described;
Obtain the second pixel value in described second focusing area, based on described second pixel value, obtain the second gradient information;
Carry out universe climbing algorithm process, fast climbing algorithm or universe segmentation climbing algorithm for described second gradient information, obtain at least one second pair of coke number described.
Processing unit 3, specifically for:
Each at least one first pair of coke number relatively more described and at least one second pair of coke number described, to coke number, obtains maximum to coke number;
Determine obtain described maximum be described 3rd pair of coke number to coke number.
Second control unit 4, specifically for:
Based on described 3rd pair of coke number, obtain the 4th duty ratio;
Described first driver element drives described first eyeglass to move to the described 3rd pair of second place that coke number is corresponding based on described 4th duty ratio, and then makes described first image acquisition units complete focusing; And described second driver element drives described second eyeglass to move to the described second place corresponding to described 3rd pair of coke number based on described 4th duty ratio, and then described second image acquisition units is made to complete focusing.
Embodiment two and embodiment one, based on same total inventive concept, have just repeated no longer one by one so repeat part.
Above-mentioned one or more technical scheme in the embodiment of the present application, at least has one or more technique effects following:
1, in the technical scheme of the application, first, the first eyeglass controlling the first image acquisition units moves from primary importance to first direction, and the second eyeglass of the second image acquisition units moves from described primary importance to second direction opposite to the first direction; Then, to in described first direction moving process, obtain at least one the first pair of coke number in the first focusing area corresponding to described first image acquisition units, and in described second direction moving process, obtain at least one the second pair of coke number in the second focusing area corresponding to described second image acquisition units; Further, the first calculation process is carried out at least one first pair of coke number described and at least one second pair of coke number described, obtains the 3rd pair of coke number; Finally, control first and second image acquisition units described and complete focusing based on described 3rd pair of coke number, solve the technical problem of the contrast detection method focusing required time length that prior art exists, achieve the technique effect simultaneously moving rapid focus by two image acquisition units to two rightabouts.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the flow chart of the method for the embodiment of the present invention, equipment (system) and computer program and/or block diagram.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can being provided to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computer or other programmable data processing device produce device for realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make on computer or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computer or other programmable devices is provided for the step realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
Specifically, the computer program instructions that two kinds of information processing methods in the embodiment of the present application are corresponding can be stored in CD, hard disk, on the storage mediums such as USB flash disk, read by an electronic equipment when the computer program instructions corresponding with information processing method in storage medium or when being performed, comprise the steps:
The first eyeglass controlling the first image acquisition units moves from primary importance to first direction, and the second eyeglass of the second image acquisition units moves from described primary importance to second direction opposite to the first direction;
To in described first direction moving process, obtain at least one the first pair of coke number in the first focusing area corresponding to described first image acquisition units, and in described second direction moving process, obtain at least one the second pair of coke number in the second focusing area corresponding to described second image acquisition units;
First calculation process is carried out at least one first pair of coke number described and at least one second pair of coke number described, obtains the 3rd pair of coke number;
Control first and second image acquisition units described and complete focusing based on described 3rd pair of coke number.
Optionally, when the duty ratio that described primary importance is specially driving pulse is the first duty ratio, the position that the first driver element in described electronic equipment and the second driver element can drive described first eyeglass and described second eyeglass to arrive respectively.
Optionally, the first eyeglass controlling the first image acquisition units with step stored in described storage medium moves from primary importance to first direction, second eyeglass of the second image acquisition units moves from described primary importance to second direction opposite to the first direction, corresponding computer instruction, being specifically performed in process, specifically comprises the steps:
Control described driving pulse from described first change in duty cycle to the second duty ratio being different from described first duty ratio, thus control described first eyeglass and move to described first direction from described primary importance;
Control described driving pulse from described first change in duty cycle to three duty ratio all different with described second duty ratio from described first duty ratio, thus control described second eyeglass and move to described second direction from described primary importance.
Optionally, store in described storage medium with step in described first direction moving process, obtain at least one the first pair of coke number in the first focusing area corresponding to described first image acquisition units, and in described second direction moving process, obtain at least one the second pair of coke number in the second focusing area corresponding to described second image acquisition units, corresponding computer instruction, being specifically performed in process, specifically comprises the steps:
Obtain the first pixel value in described first focusing area, based on described first pixel value, obtain the first gradient information;
Carry out universe climbing algorithm process, fast climbing algorithm or universe segmentation climbing algorithm for described first gradient information, obtain at least one first pair of coke number described;
Obtain the second pixel value in described second focusing area, based on described second pixel value, obtain the second gradient information;
Carry out universe climbing algorithm process, fast climbing algorithm or universe segmentation climbing algorithm for described second gradient information, obtain at least one second pair of coke number described.
Optionally, what store in described storage medium carries out the first calculation process with step at least one first pair of coke number described and at least one second pair of coke number described, obtain the 3rd pair of coke number, corresponding computer instruction, being specifically performed in process, specifically comprises the steps:
Each at least one first pair of coke number relatively more described and at least one second pair of coke number described, to coke number, obtains maximum to coke number;
Determine obtain described maximum be described 3rd pair of coke number to coke number.
Optionally, what store in described storage medium controls first and second image acquisition units described with step and completes focusing based on described 3rd pair of coke number, and corresponding computer instruction, being specifically performed in process, specifically comprises the steps:
Based on described 3rd pair of coke number, obtain the 4th duty ratio;
Described first driver element drives described first eyeglass to move to the described 3rd pair of second place that coke number is corresponding based on described 4th duty ratio, and then makes described first image acquisition units complete focusing; And described second driver element drives described second eyeglass to move to the described second place corresponding to described 3rd pair of coke number based on described 4th duty ratio, and then described second image acquisition units is made to complete focusing.
When described first judged result is for being, start described first application program.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.
Claims (12)
1. an information processing method, is applied to an electronic equipment, and described electronic equipment comprises two image acquisition units, and described method comprises:
The first eyeglass controlling the first image acquisition units moves from primary importance to first direction, and the second eyeglass of the second image acquisition units moves from described primary importance to second direction opposite to the first direction;
To in described first direction moving process, obtain at least one the first pair of coke number in the first focusing area corresponding to described first image acquisition units, and in described second direction moving process, obtain at least one the second pair of coke number in the second focusing area corresponding to described second image acquisition units;
First calculation process is carried out at least one first pair of coke number described and at least one second pair of coke number described, obtains the 3rd pair of coke number;
Control first and second image acquisition units described and complete focusing based on described 3rd pair of coke number.
2. the method for claim 1, it is characterized in that, when the duty ratio that described primary importance is specially driving pulse is the first duty ratio, the position that the first driver element in described electronic equipment and the second driver element can drive described first eyeglass and described second eyeglass to arrive respectively.
3. method as claimed in claim 2, it is characterized in that, first eyeglass of described control first image acquisition units moves from primary importance to first direction, and the second eyeglass of the second image acquisition units moves from described primary importance to second direction opposite to the first direction, is specially:
Control described driving pulse from described first change in duty cycle to the second duty ratio being different from described first duty ratio, thus control described first eyeglass and move to described first direction from described primary importance;
Control described driving pulse from described first change in duty cycle to three duty ratio all different with described second duty ratio from described first duty ratio, thus control described second eyeglass and move to described second direction from described primary importance.
4. method as claimed in claim 3, it is characterized in that, described in described first direction moving process, obtain at least one the first pair of coke number in the first focusing area corresponding to described first image acquisition units, and in described second direction moving process, obtain at least one the second pair of coke number in the second focusing area corresponding to described second image acquisition units, be specially:
Obtain the first pixel value in described first focusing area, based on described first pixel value, obtain the first gradient information;
Carry out universe climbing algorithm process, fast climbing algorithm or universe segmentation climbing algorithm for described first gradient information, obtain at least one first pair of coke number described;
Obtain the second pixel value in described second focusing area, based on described second pixel value, obtain the second gradient information;
Carry out universe climbing algorithm process, fast climbing algorithm or universe segmentation climbing algorithm for described second gradient information, obtain at least one second pair of coke number described.
5. method as claimed in claim 4, is characterized in that, describedly carries out the first calculation process at least one first pair of coke number described and at least one second pair of coke number described, obtains the 3rd pair of coke number, is specially:
Each at least one first pair of coke number relatively more described and at least one second pair of coke number described, to coke number, obtains maximum to coke number;
Determine obtain described maximum be described 3rd pair of coke number to coke number.
6. method as claimed in claim 5, it is characterized in that, first and second image acquisition units described in described control completes focusing based on described 3rd pair of coke number, is specially:
Based on described 3rd pair of coke number, obtain the 4th duty ratio;
Described first driver element drives described first eyeglass to move to the described 3rd pair of second place that coke number is corresponding based on described 4th duty ratio, and then makes described first image acquisition units complete focusing; And described second driver element drives described second eyeglass to move to the described second place corresponding to described 3rd pair of coke number based on described 4th duty ratio, and then described second image acquisition units is made to complete focusing.
7. an electronic equipment, comprise two image acquisition units, described electronic equipment also comprises:
First control unit, moves to first direction from primary importance for the first eyeglass controlling the first image acquisition units, and the second eyeglass of the second image acquisition units moves from described primary importance to second direction opposite to the first direction;
Unit is obtained to coke number, for in described first direction moving process, obtain at least one the first pair of coke number in the first focusing area corresponding to described first image acquisition units, and in described second direction moving process, obtain at least one the second pair of coke number in the second focusing area corresponding to described second image acquisition units;
Processing unit, for carrying out the first calculation process at least one first pair of coke number described and at least one second pair of coke number described, obtains the 3rd pair of coke number;
Second control unit, completes focusing for controlling first and second image acquisition units described based on described 3rd pair of coke number.
8. electronic equipment as claimed in claim 7, it is characterized in that, when the duty ratio that described primary importance is specially driving pulse is the first duty ratio, the position that the first driver element in described electronic equipment and the second driver element can drive described first eyeglass and described second eyeglass to arrive respectively.
9. electronic equipment as claimed in claim 8, is characterized in that, described first control unit, specifically for:
Control described driving pulse from described first change in duty cycle to the second duty ratio being different from described first duty ratio, thus control described first eyeglass and move to described first direction from described primary importance;
Control described driving pulse from described first change in duty cycle to three duty ratio all different with described second duty ratio from described first duty ratio, thus control described second eyeglass and move to described second direction from described primary importance.
10. electronic equipment as claimed in claim 9, is characterized in that, described to coke number acquisition unit, specifically for:
Obtain the first pixel value in described first focusing area, based on described first pixel value, obtain the first gradient information;
Carry out universe climbing algorithm process, fast climbing algorithm or universe segmentation climbing algorithm for described first gradient information, obtain at least one first pair of coke number described;
Obtain the second pixel value in described second focusing area, based on described second pixel value, obtain the second gradient information;
Carry out universe climbing algorithm process, fast climbing algorithm or universe segmentation climbing algorithm for described second gradient information, obtain at least one second pair of coke number described.
11. electronic equipments as claimed in claim 10, is characterized in that, described processing unit, specifically for:
Each at least one first pair of coke number relatively more described and at least one second pair of coke number described, to coke number, obtains maximum to coke number;
Determine obtain described maximum be described 3rd pair of coke number to coke number.
12. electronic equipments as claimed in claim 11, is characterized in that, described second control unit, specifically for:
Based on described 3rd pair of coke number, obtain the 4th duty ratio;
Described first driver element drives described first eyeglass to move to the described 3rd pair of second place that coke number is corresponding based on described 4th duty ratio, and then makes described first image acquisition units complete focusing; And described second driver element drives described second eyeglass to move to the described second place corresponding to described 3rd pair of coke number based on described 4th duty ratio, and then described second image acquisition units is made to complete focusing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410074896.8A CN104902162B (en) | 2014-03-03 | 2014-03-03 | A kind of information processing method and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410074896.8A CN104902162B (en) | 2014-03-03 | 2014-03-03 | A kind of information processing method and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104902162A true CN104902162A (en) | 2015-09-09 |
CN104902162B CN104902162B (en) | 2019-03-29 |
Family
ID=54034531
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410074896.8A Active CN104902162B (en) | 2014-03-03 | 2014-03-03 | A kind of information processing method and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104902162B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111505816A (en) * | 2020-04-09 | 2020-08-07 | 揽华智慧医疗科技(江苏)有限公司 | High-flux electron microscope imaging method and system |
CN112492210A (en) * | 2020-12-01 | 2021-03-12 | 维沃移动通信有限公司 | Photographing method and device, electronic equipment and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070064141A1 (en) * | 2002-02-22 | 2007-03-22 | Fujifilm Corporation | Digital camera |
US20110150446A1 (en) * | 2009-12-23 | 2011-06-23 | Samsung Electronics Co., Ltd. | Method and Apparatus for Processing Digital Image by Using Fast Autofocus |
US20110277462A1 (en) * | 2008-10-29 | 2011-11-17 | Cambridge Mechatronics Limited | Control of a shape memory alloy actuation arrangement |
US20120154647A1 (en) * | 2010-12-17 | 2012-06-21 | Samsung Electronics Co., Ltd. | Imaging apparatus and method |
CN102749697A (en) * | 2011-04-21 | 2012-10-24 | 奥林巴斯映像株式会社 | Driving apparatus and imaging apparatus using the same |
CN103414849A (en) * | 2013-06-09 | 2013-11-27 | 上海博锐特光电科技有限公司 | Infrared thermal imager focusing method and device |
CN104902160A (en) * | 2014-03-03 | 2015-09-09 | 联想(北京)有限公司 | Information processing method and electronic equipment |
-
2014
- 2014-03-03 CN CN201410074896.8A patent/CN104902162B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070064141A1 (en) * | 2002-02-22 | 2007-03-22 | Fujifilm Corporation | Digital camera |
US20110277462A1 (en) * | 2008-10-29 | 2011-11-17 | Cambridge Mechatronics Limited | Control of a shape memory alloy actuation arrangement |
US20110150446A1 (en) * | 2009-12-23 | 2011-06-23 | Samsung Electronics Co., Ltd. | Method and Apparatus for Processing Digital Image by Using Fast Autofocus |
US20120154647A1 (en) * | 2010-12-17 | 2012-06-21 | Samsung Electronics Co., Ltd. | Imaging apparatus and method |
CN102749697A (en) * | 2011-04-21 | 2012-10-24 | 奥林巴斯映像株式会社 | Driving apparatus and imaging apparatus using the same |
CN103414849A (en) * | 2013-06-09 | 2013-11-27 | 上海博锐特光电科技有限公司 | Infrared thermal imager focusing method and device |
CN104902160A (en) * | 2014-03-03 | 2015-09-09 | 联想(北京)有限公司 | Information processing method and electronic equipment |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111505816A (en) * | 2020-04-09 | 2020-08-07 | 揽华智慧医疗科技(江苏)有限公司 | High-flux electron microscope imaging method and system |
CN111505816B (en) * | 2020-04-09 | 2022-05-31 | 揽华智慧医疗科技(江苏)有限公司 | High-flux electron microscope imaging method and system |
CN112492210A (en) * | 2020-12-01 | 2021-03-12 | 维沃移动通信有限公司 | Photographing method and device, electronic equipment and storage medium |
CN112492210B (en) * | 2020-12-01 | 2022-04-19 | 维沃移动通信有限公司 | Photographing method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN104902162B (en) | 2019-03-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104902160A (en) | Information processing method and electronic equipment | |
US10257502B2 (en) | Methods and apparatus for controlling light field capture | |
EP2947627B1 (en) | Light field image depth estimation | |
JP2017518664A (en) | Mount for easy placement and localization of mobile computing devices | |
CN108924428A (en) | A kind of Atomatic focusing method, device and electronic equipment | |
CN103179413A (en) | Image processing method and associated apparatus | |
CN106134176A (en) | System and method for multifocal imaging | |
CN103973978A (en) | Method and electronic device for achieving refocusing | |
CN103369227A (en) | Photographing method of moving object and electronic equipment | |
CN105247567B (en) | A kind of image focusing device, method, system and non-transient program storage device again | |
TWI668993B (en) | Control method, control device and electronic apparatus | |
WO2021233215A1 (en) | Image processing method and apparatus | |
CN106303222A (en) | Stabilization processing method, device and terminal unit | |
US10542204B2 (en) | Methods and apparatuses for capturing multiple digital image frames | |
JP2013090122A (en) | Imaging apparatus and program | |
CN104503188A (en) | Automatic focusing module and mobile equipment | |
CN105827932A (en) | Image synthesis method and mobile terminal | |
CN104902162A (en) | Information processing method and electronic equipment | |
CN103577520A (en) | Object searching apparatus, object searching method and computer-readable recording medium | |
CN105611156B (en) | Full frame focusing method and camera | |
CN105467741A (en) | Panoramic shooting method and terminal | |
CN104601873B (en) | focusing method | |
CN105357434A (en) | Information processing method and electronic equipment | |
CN106162158A (en) | A kind of method and device identifying lens shooting mode | |
CN105893578B (en) | A kind of method and device of photo selection |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |