Summary of the invention
Because above-mentioned known technical matters, purpose of the present invention just is to provide a kind of lens actuating device and camera lens actuating method thereof, to solve in known technology camera when zoom and the focus operation, need to drive the higher problem of the cost that causes with d.c. motor and step motor respectively, and the higher problem of camera battery power consumption when controlling zoom and focusing with single step motor.
According to purpose of the present invention, the present invention by the following technical solutions:
A kind of lens actuating device, it comprises an image sensing assembly, a focusing mirror group, a direct current motor and a microcontroller.One image of image sensing assembly sensing one shooting target.Focusing mirror group is positioned between image sensing assembly and shooting target, to change the focusing of described video imaging.D.c. motor drives focusing mirror group and moves.Microcontroller is electrically connected the image sensing assembly to receive described image, and the control d.c. motor drives the focusing that focusing mirror group moves to change described video imaging, with this and then change a contrast of described image, and microcontroller calculates a correlative value according to contrast, when focusing mirror group is positioned to position corresponding to a maximum contrast value of described image, complete a focusing action.
Preferably, d.c. motor first drives focusing mirror group and moves toward a direction, and microcontroller is taken a sample with one first interval simultaneously and is calculated the correlative value of described image, if the numerical value of correlative value is when increasing progressively state and be converted to decrement states, microcontroller is to be converted to greatest measure before decrement states as a coarse scan maximum contrast value.
Preferably, when microcontroller is obtained coarse scan maximum contrast value, the microprocessor controls d.c. motor drives described focusing mirror group and moves toward a reverse direction, and microcontroller is simultaneously to take a sample between a Second Region, with the correlative value of calculating described image and a location signal that records corresponding correlative value, if the numerical value of correlative value is when increasing progressively state and be converted to decrement states, microcontroller is carefully swept the maximum contrast value take the greatest measure that is converted to before decrement states as one, and carefully to sweep the maximum contrast value as the maximum contrast value.Wherein, between Second Region less than the first interval.
Preferably, microcontroller is taken a sample with the first interval, and when making correlative value be decremented to a predetermined extent by coarse scan maximum contrast value, the microprocessor controls d.c. motor drives focusing mirror group and moves toward described reverse direction.
Preferably, obtain when carefully sweeping the maximum contrast value when microcontroller, microcontroller is controlled d.c. motor according to the positioning signal that records, and drives focusing mirror group and returns to running fix to the position of carefully sweeping the maximum contrast value of corresponding described image, to complete focus operation.
Preferably, microcontroller is to take a sample between Second Region, make correlative value by carefully sweeping the maximum contrast value when being decremented to a predetermined extent, microcontroller is controlled d.c. motor and is driven focusing mirror group and return to movement, to be positioned to the position of carefully sweeping the maximum contrast value of corresponding described image.
Preferably, lens actuating device of the present invention, be applicable to a camera head, focusing mirror group is arranged in a camera lens of camera head, d.c. motor drives the camera lens rotation so that focusing mirror group moves, when positioning signal is rotated for camera lens, the light source reading that an optical receiver of camera head is received.
Preferably, lens actuating device of the present invention, it also comprises a varifocal mirror group, and the microprocessor controls d.c. motor drives the varifocal mirror group and moves, to carry out a zoom action.Wherein, the microprocessor controls d.c. motor drives respectively focusing mirror group and varifocal mirror group, and when making d.c. motor drive focusing mirror group to move, the varifocal mirror group keeps transfixion, and d.c. motor is when driving the varifocal mirror group and moving, and focusing mirror group keeps transfixion.
According to purpose of the present invention, a kind of camera lens actuating method is proposed again, comprise the following step: by an image of image sensing assembly sensing one a shooting target, utilize a microcontroller to receive described image, driving a focusing mirror group by microprocessor controls one direct current motor moves, to change the focusing of described video imaging, with this and then change a contrast of described image, and utilize microcontroller to calculate a correlative value according to contrast, when focusing mirror group is positioned to position corresponding to a maximum contrast value of described image, complete a focusing action.
According to purpose of the present invention, reintroduce a kind of lens actuating device, be applicable to a camera head, it comprises an image sensing assembly, a varifocal mirror group, a focusing mirror group, a direct current motor and a microcontroller.One image of image sensing assembly sensing one shooting target.The varifocal mirror group is arranged in a camera lens of camera head, and is positioned between image sensing assembly and shooting target, to adjust the focal length of camera lens, to change the distance of described video imaging.Focusing mirror group is arranged in the camera lens of camera head, and is positioned at varifocal mirror group and image sensing inter-module, to change the focusing of described video imaging.D.c. motor drives respectively the varifocal mirror group and focusing mirror group moves.Microcontroller is electrically connected the image sensing assembly receiving described image, and controls d.c. motor and drive the varifocal mirror group and move, and to change the distance of described video imaging, completes a zoom action with this.Or the microprocessor controls d.c. motor drives the focusing that focusing mirror group moves to change described video imaging, with this and then change a contrast of described image, and microcontroller calculates a correlative value according to contrast, when focusing mirror group is positioned to position corresponding to a maximum contrast value of described image, complete a focusing action.
From the above, according to lens actuating device of the present invention and camera lens actuating method thereof, it can have one or more following advantage:
(1) this lens actuating device and camera lens actuating method thereof, mainly to complete the function of camera zoom and focusing with single microcontroller and d.c. motor, not only reduce the camera lens part and reduced manufacturing cost, also can effectively reduce the power consumption of camera battery, use the needs of camera to meet the user.
(2) this lens actuating device and camera lens actuating method thereof, when focus operation, to utilize the microprocessor controls d.c. motor to drive focusing mirror group to move around, come flyback retrace to judge the maximum contrast value of image in the mode of rapid scanning and fine scanning, not only can seek out the focusing position of image accurately, also can not extend the time of the required cost of focusing.
Embodiment
Be the effect of understanding technical characterictic of the present invention, content and advantage and reaching, the present invention will coordinate accompanying drawing, and be described in detail as follows with the expression-form of embodiment, and the accompanying drawing that uses, its purport is only the use of signal and aid illustration book, may not be the true ratio after the invention process and precisely configuration, therefore should not understand, limit the invention to the interest field in actual enforcement, statement in advance with regard to ratio and the configuration relation of accompanying drawing.
Lens actuating device of the present invention and camera lens actuating method thereof, mainly to utilize single d.c. motor to carry out lens zoom and focusing, applicable to camera heads such as digital camera, intelligent camera cell phone, S.L.Rs, but actual exercisable category is not take camera head as restriction.
Fig. 1 is the schematic diagram of the first embodiment of lens actuating device of the present invention.As shown in the figure, lens actuating device 1 comprises focusing mirror group 11, image sensing assembly 12, a microcontroller 13 and a direct current motor 14.Image sensing assembly 12 can be Charged Coupled Device (Charge-coupled Device, CCD) or CMOS (Complementary Metal Oxide Semiconductor) (Complementary Metal-Oxide-Semiconductor, the sensory package such as CMOS) can be in order to an image 31 of sensing one shooting target 3.Microcontroller 13 can be the assemblies such as a micro-control unit (Micro Control Unit, MCU).Microcontroller 13 is electrically connected image sensing assembly 12, and in order to control the start of d.c. motor 14.Lens actuating device 1 can be arranged in a camera head 2.Focusing mirror group 11 just can be arranged in a camera lens 21 of camera head 2, and focusing mirror group 11 position is between image sensing assembly 12 and shooting target 3, mainly can be used to change the focusing of image 31 imagings.14 of d.c. motors can be in order to drive focusing mirror group 11.In addition, camera head 2 has also comprised an optical receiver 22.
In above-mentioned, receive the image 31 of 12 sensings of image sensing assemblies when microcontroller 13, and control d.c. motor 14 and drive focusing mirror groups 11 and move around to change the focusing of image 31 imagings, change a contrast of image 31 with this.In the contrast of change image 31 imagings, microcontroller 13 calculates respectively a correlative value according to each contrast.When if d.c. motor 14 drives focusing mirror group 11 running fixes to the position of a maximum contrast value of corresponding image 31, just completed focus operation.
More specifically, microcontroller 13 is first controlled d.c. motor 14 driving focusing mirror groups 11 and is moved to carry out a coarse scan action toward a direction.In the process that focusing mirror group 11 moves toward described direction, the contrast of image 31 will change, and microcontroller 13 is just taken a sample with one first interval simultaneously, and calculates correlative value according to image 31 in the described first corresponding contrast in interval each interval.If the numerical value of correlative value is when increasing progressively state and be converted to decrement states, just the greatest measure that microcontroller 13 can be judged before decrement states is a coarse scan maximum contrast value.When microcontroller 13 is obtained coarse scan maximum contrast value or be decremented to a predetermined extent by coarse scan maximum contrast value, microcontroller 13 just will be controlled d.c. motor 14 driving focusing mirror groups 11 and move to carry out a fine scanning action toward reverse direction.In the process that focusing mirror group 11 moves toward described reverse direction, microcontroller 13 is just simultaneously to take a sample between a Second Region, and calculate correlative value according to image 31 corresponding contrast in each interval between described Second Region, an and location signal of corresponding each correlative value of record.If microcontroller 13 when increasing progressively state and be converted to decrement states, is one carefully to sweep maximum contrast value just microcontroller 13 can be judged greatest measure before decrement states with the correlative value of the gained of taking a sample between Second Region.When moving toward described reverse direction due to focusing mirror group 11, microcontroller 13 is done the fine scanning action, therefore microcontroller 13 with the interval of taking a sample between Second Region less than the first interval, with in order to obtain more accurate maximum contrast value, therefore carefully sweep the maximum contrast value more than or equal to coarse scan maximum contrast value, and the described maximum contrast value of carefully sweeping just can be considered above-mentioned alleged maximum contrast value.Carefully sweep the maximum contrast value or by carefully sweeping the maximum contrast value when being decremented to a predetermined extent and obtain when microcontroller 13, microcontroller 13 just will be according to the positioning signal that records, control d.c. motor 14 driving focusing mirror groups 11 and return to running fix to the position of carefully sweeping the maximum contrast value of corresponding image 31, just completed thus focus operation.Wherein, d.c. motor 14 drives camera lens 21 and rotates, move to cause focusing mirror group 11, and when the positioning signal of the above is camera lens 21 rotation, the light source reading that the optical receiver 22 of camera head 2 is received.
Fig. 2 is the process flow diagram of the camera lens actuating method of the first embodiment of the present invention, and its steps flow chart is as follows:
S21: by an image 31 of image sensing assembly 12 sensing one shooting targets 3.
S22: utilize a microcontroller 13 to receive described image 31.
S23: control direct current motors 14 by microcontroller 13 and drive focusing mirror groups 11 and move, changing the focusing of described image 31 imagings, with this and then change a contrast of described image 31.
S24: utilize microcontroller 13 to calculate a correlative value according to contrast, when focusing mirror group 11 is positioned to position corresponding to a maximum contrast value of described image 31, complete a focusing action.
Fig. 3 is the schematic diagram of the second embodiment of lens actuating device of the present invention.In figure, lens actuating device 100 is applicable in a camera head 200, and camera head 200 has comprised a camera lens 201.Lens actuating device 100 has comprised varifocal mirror group 101, focusing mirror group 102, image sensing assembly 103, a microcontroller 104 and a direct current motor 105, microcontroller 104 is electrically connected image sensing assembly 103, can start 103 pairs one shooting targets 300 of image sensing assembly and carry out sensing, and microcontroller 104 can be in order to control d.c. motor 105.D.c. motor 105 is just in order to drive varifocal mirror group 101 and focusing mirror group 102.Varifocal mirror group 101 and focusing mirror group 102 be with being located in the camera lens 201 of camera head 200, and varifocal mirror group 101 is arranged between shooting target 300 and image sensing assembly 103, and the mirror group 102 that focuses is located between varifocal mirror group 101 and image sensing assembly 103.Image sensing assembly 103 is imaged as an image 301 in order to sensing shooting target 300 with the target 300 of making a video recording.Varifocal mirror group 101 can be in order to adjust the focal length of camera lens 201, with the distance of change image 301 imagings.Focusing mirror group 102 can be in order to change the focusing of image 301 imagings.Wherein, d.c. motor 105 can drive respectively varifocal mirror group 101 and focusing mirror group 102 moves, and makes when varifocal mirror group 101 moves, and focusing mirror group 102 keeps motionless, and when focusing mirror group 102 moved, 101 of varifocal mirror groups kept motionless.
In the second embodiment, when microcontroller 104 receives image 301 by 103 sensings of image sensing assembly, can control d.c. motor 105 and drive varifocal mirror groups 101 and move, to change the distance of image 301 imagings, complete a zoom action with this.Or microcontroller 104 can be controlled d.c. motor 105 and drives focusing mirror groups 102 and move, focusing with 301 imagings of change image, with this and then change a contrast of image 301, and microcontroller 104 also will calculate a correlative value according to each contrast that changes.Control d.c. motors 105 when microcontroller 104 and drive focusing mirror groups 102 and move to and fro, make focusing mirror group 102 running fixes to corresponding to the position of a maximum contrast value of image 301 time, just can complete a focusing action.
Fig. 4,5 and 6 is the first schematic diagram, the second schematic diagram and the 3rd schematic diagram of the 3rd embodiment of lens actuating device of the present invention.In this embodiment, lens actuating device 4 has comprised image sensing assembly 41, microcontroller 42, d.c. motor 43, varifocal mirror group 44 and focusing mirror group 45.Microcontroller 42 is electrically connected image sensing assembly 41, and microcontroller 42 can d.c. motor 43 drives varifocal mirror group 44 and focusing mirror group 45 moves in order to control.Microcontroller 42 has also comprised image process unit 421, control module 422 and computing unit 423.Image process unit 421 can be in order to read and to process an image 6 of 41 sensings of image sensing assembly.Control module 422 can be controlled d.c. motor 43.423 of counting units can be in order to counting a PI signal, and this PI signal i.e. positioning signal as described in the present invention.Lens actuating device 4 can be arranged in camera head 5 as digital camera, S.L.R etc., and varifocal mirror group 44 and focusing mirror group 45 can be arranged among a camera lens 51 of camera head 5.And camera head 5 has also comprised an optical receiver 52 and Photo Interrupter 53.
In the 3rd embodiment, when camera head 5 start, can first carry out the location of a PI signal.Then when the focusing section of user's cutaway 51, control module 422 will be controlled d.c. motor 43 and rotate, move to drive varifocal mirror group 44, and by counting unit 423 calculate the PI signals with the confirmation zoom position after, complete zoom and move.After arriving zoom position, image process unit 421 begins to read image 6 and calculates the present correlative value of image 6, control module 422 drives d.c. motor 43 and drives the scanning that focusing mirror group 45 moves around the value of comparing, search the maximum contrast value of image 6, focusing namely, behind the clear position of orienting image 6, complete focus operation.Wherein, varifocal mirror group 44 and focusing mirror group 45 can't move under the driving of d.c. motor 43 simultaneously, meaning is that d.c. motor 43 is when driving varifocal mirror group 44 moves, focusing mirror group 45 is motionless, and d.c. motor 43 is when driving focusing mirror group 45 and move, and 44 of varifocal mirror groups keep motionless.
In the 3rd embodiment, focus operation is mainly moved around by microcontroller 42 control d.c. motors 43 driving focusing mirror groups 45 and is completed.Coordinate Fig. 5 and Fig. 6 explanation, microcontroller 42 control d.c. motors 43 drive camera lenses 51 and rotate toward the left side, move toward a direction so that focusing mirror group 45 is first, to carry out a coarse scan.In the coarse scan process, focusing mirror group 45 moves to change the contrast of image 6 toward described direction, and microcontroller 42 will position with the interval in the first interval the counting of signal (PI signal), and calculate a correlative value with the corresponding contrast in each interval, as shown in Fig. 5 (A).Wherein, when positioning signal is mainly camera lens 51 rotation, the light source reading that the LED lamp 531 that the optical receiver 52 of camera head 5 receives Photo Interrupters 53 sends.And the first interval is just take two lattice LED lamps 531 as the interval, and 42 positioning signals that the interval was counted out with two lattice LED lamps 531 of microcontroller are taken a sample and calculate corresponding correlative value.Meaning namely, whenever driving camera lens 51, d.c. motor 43 rotates with the interval (the first interval) of two lattice LED lamps 531, focusing mirror group 45 is moved with described direction, microcontroller 42 is the light source of the LED lamp 531 received according to optical receiver 52 just, counting one location signal, go out again the correlative value of the position of corresponding described positioning signal with the interval calculation in described the first interval, until calculating obtains a coarse scan maximum contrast value to complete the coarse scan action.
In above-mentioned, the obtaining of coarse scan maximum contrast value, when increasing progressively state and be converted to decrement states, microcontroller 42 judges to get it with the greatest measure before successively decreasing when the numerical value of correlative value.Obtain coarse scan maximum contrast value and work as microcontroller 42, or correlative value is when being decremented to a predetermined extent by coarse scan maximum contrast value, microcontroller 42 just will be controlled d.c. motor 43 and drive camera lens 51 toward the right rotation, move toward a reverse direction so that focusing mirror group 45 is first, to carry out a fine scanning.At this moment, focusing mirror group 45 moves to change the contrast of image 6 with described reverse direction, and microcontroller 42 will position with the interval between described Second Region the counting of signal, and calculate a correlative value with the corresponding contrast in each interval, and little controller processed 42 is also recorded the corresponding positioning signal of each correlative value, as shown in Fig. 5 (B).Wherein, between Second Region take a lattice LED lamp 531 as the interval, and microcontroller 42 is just with the calculating of interval value of comparing of every lattice LED lamp 531, and recorded corresponding positioning signal, and when the numerical value of correlative value when increasing progressively the state conversion by decrement states, it is one carefully to sweep the maximum contrast value that microcontroller 42 just can be judged the greatest measure that is converted to before decrement states.Less than the first interval, therefore carefully sweeping the maximum contrast value certainly will be more than or equal to coarse scan maximum contrast value due to the interval between Second Region.In this embodiment, carefully sweep the maximum contrast value and equal coarse scan maximum contrast value.
In above-mentioned, due in fine scanning, microcontroller 42 is recorded the counting of the corresponding positioning signal of each correlative value, therefore obtain when microcontroller 42 and carefully sweep the maximum contrast value, or correlative value is by carefully sweeping the maximum contrast value when being decremented to a predetermined extent, microcontroller 42 just will be according to the positioning signal that records, control d.c. motor 43 and drive camera lens 51 once again toward left side rotation, so that focusing mirror group 45 returns to the position of carefully sweeping the maximum contrast value of moving and be positioned to image 6, as shown in Fig. 5 (C).The described namely maximum contrast value of image 6 of maximum contrast value of carefully sweeping so, has just been completed focus operation.Wherein, the interval of adopting between described the first interval of the 3rd embodiment and Second Region is only an embodiment, and the calculating of interval value of comparing of the LED lamps 531 such as microcontroller 42 also can three lattice, four lattice therefore should the restriction to some extent with the present embodiment illustrated embodiment.Moreover it is also an embodiment that d.c. motor 43 is controlled turning to of camera lens 51, also can first control camera lens 51 and first turn to the right to carry out the coarse scan action.
Fig. 7 is the process flow diagram of the camera lens actuating method of the third embodiment of the present invention, and in conjunction with Fig. 4, its steps flow chart is as follows:
S71: d.c. motor 43 drives focusing mirror group 45 and moves toward a direction, carries out the correlative value that image 6 was moved and calculated in coarse scan;
S72: judge whether surpass a coarse scan maximum contrast value and successively decrease downwards;
S73: if d.c. motor 43 drives focusing mirror group 45 and moves toward a reverse direction, carefully sweeps the correlative value of doing and calculating image 6, and records the positioning signal of corresponding correlative value;
S74: judge whether that surpassing one carefully sweeps the maximum contrast value and successively decrease downwards; And
S75: if d.c. motor 43 returns according to positioning signal driving focusing mirror group 45 and moves to the position of carefully sweeping the maximum contrast value, to complete focus operation.
Comprehensively above-mentioned, lens actuating device of the present invention and camera lens actuating method thereof, can utilize single d.c. motor to complete zoom and focus function, and the mode that is used to flyback retrace is come the focus operation of completing fast and accurately, not only can avoid zoom and focusing need utilize respectively two motors activate cause the higher problem of camera manufacturing cost, also can solve zoom and focusing and utilize simultaneously single step motor to drive institute's camera battery that causes higher problem that consumes energy, can reach the effect of rapid focus.
The above is only illustrative, but not is restricted person.Anyly do not break away from spirit of the present invention and category, and to its equivalent modifications of carrying out or change, all should be contained in claim scope of the present invention.