CN107592464B - Zoom follows the switching method and device of curve during a kind of zoom - Google Patents
Zoom follows the switching method and device of curve during a kind of zoom Download PDFInfo
- Publication number
- CN107592464B CN107592464B CN201710919737.7A CN201710919737A CN107592464B CN 107592464 B CN107592464 B CN 107592464B CN 201710919737 A CN201710919737 A CN 201710919737A CN 107592464 B CN107592464 B CN 107592464B
- Authority
- CN
- China
- Prior art keywords
- zoom
- curve
- picture pick
- clarity
- parameter
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Studio Devices (AREA)
- Lens Barrels (AREA)
Abstract
The embodiment of the present application provides the switching method and device that zoom during a kind of zoom follows curve, to solve zoom process zoom existing in the prior art follow it is still not accurate enough in the switching of curve, it is difficult to the problem of guaranteeing the image clarity with higher of shooting.Wherein, the embodiment of the present application is by following curve to switch over and switchback the zoom of application, and compares zoom motor and be in identical position, but application is the clarity parameter of picture pick-up device shooting image when the corresponding zoom of different object distances follows curve, it can determine that zoom next time follows the switching direction of curve, compared to the prior art zoom motor be on different location compare picture pick-up device shooting image clarity scheme, zoom during zoom is enabled to follow the accuracy of the switching of curve higher, and then it ensure that picture pick-up device shooting image clarity with higher during zoom.
Description
Technical field
This application involves the switching sides that zoom during technical field of video monitoring more particularly to a kind of zoom follows curve
Method and device.
Background technique
With Video Surveillance Industry digitlization, networking and the development in high Qinghua, with zoom, automatic focusing function
The application of integrated camera is also more and more extensive.In the lens group of integrated camera include zoom camera lens and amasthenic lens,
Wherein, the change meeting of zoom lens location is so that the position of focus changes, correspondingly, focal length (the i.e. camera lens light of lens group
Learn the distance between posterior principal point and focus, wherein lens optical posterior principal point for image space to lens group interarea and optical axis intersection point)
Also it can change;Amasthenic lens position change meeting so that lens group image distance (i.e. lens optical posterior principal point and image forming medium
The distance between) change.Zoom motor (zoom motor) and focus motor are also configured in the integrated camera
(focus motor) can respectively drive zoom camera lens and amasthenic lens in the integrated camera and be moved.It is imaged in integration
During machine zoom, since zoom motor drives zoom camera lens mobile, can focal length be changed, then it is original clearly as
It may not be able to focus on the image forming mediums such as imaging sensor, cause the image of shooting fuzzy.And in order to enable during zoom
The image of shooting keeps clear, it is necessary to amasthenic lens be enable to follow the movement of zoom camera lens and move in real time.
Curve can be followed to control the movement of zoom motor and focus motor using zoom for this purpose, the prior art proposes.
Specifically, according to imaging formula 1/f=1/u+1/v it is found that when object distance u (i.e. lens optical posterior principal point to shoot object away from
From the distance between) it is fixed when, there is corresponding relationships between focal length f and image distance v, therefore can match in advance in integrated camera
It sets the corresponding zoom of different object distances and follows curve, wherein the corresponding zoom of any object distance follows curve that can represent described any
Under object distance, reflecting between the position of the focus motor of the mobile zoom motor of control zoom camera lens and control amasthenic lens movement
Penetrate relationship.It specifically can refer to shown in Fig. 1, illustrate zoom when object distance is 3m, 5m, 10m and infinity and curve is followed to illustrate
Figure.Wherein, which follows the abscissa of curve to represent position of the zoom motor from focal length end to wide coke end when mobile, ordinate
Represent position of the focus motor from nearly burnt end to remote coke end when mobile.When between zoom motor and focus motor along a certain object
When following track indicated by curve mobile away from corresponding zoom, the clarity of the image of integrated camera shooting is preferable.
Inventors have found that integrated camera, during zoom, zoom motor and focus motor are along different object distances
When zoom follows track indicated by curve mobile, there is certain differences for the clarity of the image of shooting.In zoom process
It is middle to need accurately to follow curve to switch over the zoom of application, bat when guaranteeing that the zoom after application switching follows curve
The clarity for the image taken the photograph is higher.
However, generalling use following scheme in the prior art to carry out the switching that zoom follows curve: according to zoom motor
Position is presently in focus motor and determines that corresponding first zoom of the first object distance of current application follows curve, then by
One zoom curve switch to respectively corresponding second zoom of the second object distance (second object distance be greater than the first object distance) follow curve with
And the corresponding third zoom of third object distance (the third object distance is less than the first object distance) follows on curve, and compares respectively using upper
The clarity that the second zoom follows curve and third zoom follows the image shot when curve is stated, and then based on obtained comparison
As a result, by the zoom of current application follow curve switch to clarity it is higher when the zoom applied follow on curve.Using above-mentioned
When mode follows the switching of curve to carry out zoom, during zoom, zoom motor always in movement, it is above-mentioned will be using the
Two zooms follow curve and third zoom that the clarity of the image shot when curve is followed to be compared, and are not actually same
Compare on a zoom motor position, finally obtained comparison result confidence level is poor.
It can be seen that being followed in existing scheme for zoom process zoom still not accurate enough in the switching of curve, it is difficult to
Guarantee the image clarity with higher of shooting.
Summary of the invention
The embodiment of the present application provides the switching method and device that zoom during a kind of zoom follows curve, existing to solve
Have zoom process zoom is followed in scheme it is still not accurate enough in the switching of curve, it is difficult to guarantee shooting image have compared with
The problem of high clarity.
Technical solution provided by the present application is as follows:
In a first aspect, zoom follows the switching method of curve during a kind of zoom, comprising:
Picture pick-up device records in the picture pick-up device when corresponding first zoom of the first object distance of current application follows curve
Zoom motor locating for first position and the picture pick-up device shooting image the first clarity parameter the first corresponding relationship;
First zoom is followed curve to be switched to after corresponding second zoom of the second object distance follows curve by picture pick-up device,
Record second pair of the second clarity parameter of the second position locating for the zoom motor and picture pick-up device shooting image
It should be related to;
Second zoom is followed curve to switch back into after first zoom follows curve by picture pick-up device, records the change
The third corresponding relationship of the third place locating for times motor and the third clarity parameter of picture pick-up device shooting image;
Picture pick-up device is taken the photograph described in calculating according to first corresponding relationship, the second corresponding relationship and third corresponding relationship
As equipment shoots the cleaning politics, economics, organization, and ideology of image when following curve using first zoom and the zoom motor is in the second position
Clear degree parameter;
Picture pick-up device the second clarity parameter and the 4th clarity parameter, based on comparative result, really
Fix the switching direction that a zoom follows curve.
Further, it is described based on comparative result, determine that zoom follows the switching direction of curve, specifically include:
If it is determined that the second clarity parameter is greater than the 4th clarity parameter, then cut according to by first object distance
The direction for shifting to second object distance carries out the switching that zoom next time follows curve;
If it is determined that the second clarity parameter is less than the 4th clarity parameter, then cut according to by second object distance
The direction for shifting to first object distance carries out the switching that zoom next time follows curve.
Further, calculating follows curve in application first zoom and the zoom motor is in second position when institute
The 4th clarity parameter for stating picture pick-up device shooting image, specifically includes:
In the two-dimensional coordinate system being made of position and clarity parameter, the first position and described first is determined clearly
Spend corresponding first coordinate points of parameter, the second position and corresponding second coordinate points of the second clarity parameter, described
The third place and the corresponding third coordinate points of the third clarity parameter;
Based on first coordinate points, the second coordinate points and the third coordinate points, calculates second coordinate points and reflect
Corresponding clarity parameter when penetrating on the line between first coordinate points and the third coordinate points, this by calculating are clear
Clear degree parameter is determined as the 4th clarity parameter.
Further, it follows curve to be switched to corresponding second zoom of the second object distance first zoom and follows curve,
It specifically includes:
By the focus motor in the picture pick-up device according to the mobile preset step-length of default moving direction;Wherein, described default
Moving direction be make the object distance focus motor mobile direction when being changed to second object distance by first object distance, and
And the clarity parameter of focus motor picture pick-up device shooting image when moving in the preset step-length is in setting model
In enclosing.
Further, the preset step-length is in preset focal depth range;
Wherein, depth of focus δ is calculated according to the following formula:F is the focal length of the picture pick-up device, D is described takes the photograph
As the wavelength average value that F-number, the λ of equipment are the light into the picture pick-up device.
Second aspect, zoom follows the switching device of curve during a kind of zoom, comprising:
Processing module, for recording picture pick-up device when corresponding first zoom of the first object distance of current application follows curve
In zoom motor locating for first position and the picture pick-up device shooting image the first clarity parameter first it is corresponding pass
System;It follows curve to be switched to after corresponding second zoom of the second object distance follows curve first zoom, records the zoom
Second corresponding relationship of the second clarity parameter of the second position locating for motor and picture pick-up device shooting image;It will be described
Second zoom follows curve to switch back into after first zoom follows curve, record the third place locating for the zoom motor with
The third corresponding relationship of the third clarity parameter of the picture pick-up device shooting image;
Computing module, for calculating institute according to first corresponding relationship, the second corresponding relationship and third corresponding relationship
Picture pick-up device is stated to follow curve using first zoom and shooting the of image when the zoom motor be in the second position
Four clarity parameters;
Determining module is used for the second clarity parameter and the 4th clarity parameter, is tied based on comparing
Fruit, determining zoom next time follow the switching direction of curve.
Further, the determining module is specifically used for:
If it is determined that the second clarity parameter is greater than the 4th clarity parameter, then cut according to by first object distance
The direction for shifting to second object distance carries out the switching that zoom next time follows curve;
If it is determined that the second clarity parameter is less than the 4th clarity parameter, then cut according to by second object distance
The direction for shifting to first object distance carries out the switching that zoom next time follows curve.
Further, the computing module is specifically used for:
In the two-dimensional coordinate system being made of position and clarity parameter, the first position and described first is determined clearly
Spend corresponding first coordinate points of parameter, the second position and corresponding second coordinate points of the second clarity parameter, described
The third place and the corresponding third coordinate points of the third clarity parameter;
Based on first coordinate points, the second coordinate points and the third coordinate points, calculates second coordinate points and reflect
Corresponding clarity parameter when penetrating on the line between first coordinate points and the third coordinate points, this by calculating are clear
Clear degree parameter is determined as the 4th clarity parameter.
Further, the processing module is specifically used for:
By the focus motor in the picture pick-up device according to the mobile preset step-length of default moving direction;Wherein, described default
Moving direction be make the object distance focus motor mobile direction when being changed to second object distance by first object distance, and
And the clarity parameter of focus motor picture pick-up device shooting image when moving in the preset step-length is in setting model
In enclosing.
Further, the preset step-length is in preset focal depth range;
Wherein, the computing module is also used to: depth of focus δ is calculated according to the following formula:F is the camera shooting
Focal length, the D of equipment are the F-number of the picture pick-up device, λ is wavelength average value into the light in the picture pick-up device.
The third aspect, a kind of electronic equipment, comprising: one or more processors;And it is one or more computer-readable
Medium is stored with the program for following the switching method of curve for executing zoom during zoom on the readable medium, wherein
When described program is executed by one or more of processors, the step of realizing method as described in first aspect is any.
Fourth aspect, one or more computer-readable mediums are stored with for executing zoom mistake on the readable medium
Zoom follows the program of the switching method of curve in journey, wherein when described program is executed by one or more processors, so that taking the photograph
As equipment execute such as first aspect it is any as described in method.
In the embodiment of the present application, picture pick-up device can become during zoom in the first object distance of current application corresponding first
When following curve again, records first position locating for zoom motor and the picture pick-up device in the picture pick-up device and shoot the first of image
First corresponding relationship of clarity parameter, and follow curve to switch to the second object distance corresponding first zoom of current application
After two zooms follow curve, the second clarity ginseng of the second position locating for zoom motor and picture pick-up device shooting image is recorded
Second zoom is followed curve to switch back into former first zoom and follows curve, record this time-varying by the second several corresponding relationships again later
The third corresponding relationship of the third place locating for times motor and the third clarity parameter of picture pick-up device shooting image, in this way,
Picture pick-up device can calculate the camera shooting based on above-mentioned first corresponding relationship, the second corresponding relationship and the third corresponding relationship of record
Equipment shoots the 4th clarity parameter of image when following curve using the first zoom and zoom motor is in the second position, into
And compare the second clarity parameter and the 4th clarity parameter, it can determine that zoom follows curve next time based on comparative result
Switching direction.By following curve to switch over and switchback the zoom of application, and compares zoom motor and be in identical
Position, but application is the clarity parameter of picture pick-up device shooting image when the corresponding zoom of different object distances follows curve, it can be true
The switching direction that zoom next time follows curve is made, is on different location to compare in zoom motor compared to the prior art and take the photograph
As the scheme of the clarity of equipment shooting image, enable to zoom during zoom follow the accuracy of the switching of curve compared with
Height, and then ensure that picture pick-up device shooting image clarity with higher during zoom.
Detailed description of the invention
The zoom that Fig. 1 is object distance when being 3m, 5m, 10m and infinity follows curve synoptic diagram;
Zoom follows the switching method flow chart of curve during the zoom that Fig. 2 provides for the embodiment of the present application one;
Fig. 3 is that the two dimension being made of the location of zoom motor and clarity parameter that the embodiment of the present application one provides is sat
The schematic diagram of each coordinate points in mark system;
Zoom follows the structural representation of the switching device of curve during the zoom that Fig. 4 provides for the embodiment of the present application two
Figure.
Specific embodiment
The application, which is that solution is existing in the prior art, follows in the switching of curve still not enough zoom process zoom
Accurately, it is difficult to the problem of guaranteeing the image clarity with higher of shooting, propose by the zoom of application follow curve into
Row switching and switchback, and compare zoom motor and be in identical position, but applying is that the corresponding zoom of different object distances follows
The clarity parameter of picture pick-up device shooting image when curve, it may be determined that go out the switching direction that zoom next time follows curve, compare
In the prior art zoom motor be on different location compare picture pick-up device shooting image clarity scheme, enable to
Zoom follows the accuracy of the switching of curve higher during zoom, and then ensure that picture pick-up device shooting image during zoom
Clarity with higher.
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, is not whole embodiments.It is based on
The embodiment of the present application, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall in the protection scope of this application.
It is to be appreciated that in the description of the present application, the vocabulary such as " first ", " second " are only used for distinguishing the mesh of description
, it is not understood to indicate or imply relative importance, indication or suggestion sequence can not be interpreted as.
Embodiment one
Referring to shown in Fig. 2, zoom follows the switching method stream of curve during the zoom provided for the embodiment of the present application one
Cheng Tu is specifically included:
Step 201: picture pick-up device records the camera shooting when corresponding first zoom of the first object distance of current application follows curve
The first of first clarity parameter of first position locating for the zoom motor in equipment and the picture pick-up device shooting image is corresponding
Relationship.
Wherein, picture pick-up device described here can be for applied to the integrated camera or ball machine etc. in video monitoring, should
It include zoom camera lens, zoom motor, amasthenic lens, focus motor etc. in picture pick-up device.Zoom motor can drive zoom camera lens into
Row movement, focus motor can drive amasthenic lens to be moved.Also, corresponding not jljl is previously stored in the picture pick-up device
Away from zoom follow curve, picture pick-up device is corresponding along a certain object distance between zoom motor and focus motor during zoom
Zoom follow track indicated by curve mobile, it is ensured that picture pick-up device shoots image clarity with higher.
Wherein, the clarity parameter of picture pick-up device shooting image is used to characterize image forming medium (such as image biography of picture pick-up device
Sensor etc.) in acquired image readability.The clarity parameter may include clarity evaluation of estimate (FV) etc..About clear
The calculating of clear degree parameter can refer to existing image definition evaluation algorithm, no longer be described in detail in the application.
In specific implementation, since the location of zoom motor can reflect out focal length, the focus motor of picture pick-up device
Location can reflect out the image distance of picture pick-up device, also, by imaging formula it is found that the focal length and picture of known picture pick-up device
Away from, it may be determined that go out the object distance of picture pick-up device, therefore the picture pick-up device is during zoom, the position that can be presently according to zoom motor
It sets and position that focus motor is presently in, determines that the object distance of current picture pick-up device is the first object distance, and then can determine and work as
It is that corresponding first zoom of the first object distance follows curve, and records the picture pick-up device and be somebody's turn to do in application that the zoom of preceding application, which follows curve,
When first zoom follows curve, the first clarity parameter of first position locating for zoom motor and picture pick-up device shooting image
The first corresponding relationship.
Step 202: the first zoom is followed curve to be switched to corresponding second zoom of the second object distance and follows song by picture pick-up device
After line, second corresponding pass of the second position locating for zoom motor with the second clarity parameter of picture pick-up device shooting image is recorded
System.
Here, curve is followed due to corresponding to different zooms under different object distances, therefore practical switching zoom follows curve
Process, as adjust object distance process.
In specific implementation, corresponding first zoom of the first object distance is followed curve to be switched to the second object distance pair by picture pick-up device
The second zoom answered follows curve, that is, the object distance of picture pick-up device is adjusted to the second object distance by the first object distance.And it images and sets
Standby object distance is to be codetermined by the location of the location of zoom motor and focus motor, therefore picture pick-up device is becoming
It, can be mobile default according to default moving direction by the focus motor in picture pick-up device with the movement of zoom motor during times
Step-length.
Wherein, the default moving direction is that focus motor moves when object distance being made to be changed to the second object distance by the first object distance
Direction.Here, the first object distance can be greater than the second object distance, and the first object distance might be less that the second object distance.That is, default move
Dynamic direction can be the mobile direction of focus motor when object distance being made to become smaller, or focus motor mobile side when object distance being made to become larger
To.When it is implemented, default moving direction can be configured according to actual needs.
Also, during switching zoom follows curve, namely during mobile focus motor is to adjust object distance,
In order to which significant change occurs in the clarity for guaranteeing that user is detectable shooting image as far as possible, can be set for the mobile position of focus motor
Preset step-length is set, so that the clarity parameter of picture pick-up device shooting image is being set when focus motor moves in the preset step-length
In range.
Preferably, preset step-length may be configured as in preset focal depth range.When it is implemented, can count according to the following formula
Calculate depth of focus δ:Wherein, f be the focal length of the picture pick-up device, D be the F-number of the picture pick-up device, λ be into
Enter the wavelength average value of the light in the picture pick-up device.
Specifically, the size of F-number may depend on the actual exposure status of picture pick-up device, and wavelength average value is big
It is small to may depend on picture pick-up device current environment and imaging pattern, for example, if in the preferable environment of light, picture pick-up device
Visual light imaging mode can be started, then wavelength average value can refer to the wavelength average value for entering visible light in picture pick-up device, if in light
In the poor environment of line, picture pick-up device can start infrared imaging mode, then wavelength average value can refer to enter red in picture pick-up device
The wavelength average value of outside line.
It should be noted that in the application preset step-length can be according to picture pick-up device state in which during zoom and
It configures in real time.Since the F-number of the focal length of picture pick-up device and picture pick-up device can change during zoom, and it is real
The light that border enters in picture pick-up device can also change because of the change of environment, so, it, can be according to when proactive when calculating depth of focus
As equipment status is calculated in real time, correspondingly, if being arranged preset step-length in preset focal depth range, preset
Step-length is configured in combination with the size of the depth of focus under current picture pick-up device status.
Step 203: the second zoom is followed curve to switch back into after the first zoom follows curve by picture pick-up device, record zoom electricity
The third corresponding relationship of the third place locating for machine and the third clarity parameter of picture pick-up device shooting image.
Here, since in step 202, corresponding first zoom of the first object distance is followed curve to be switched to by picture pick-up device
Corresponding second zoom of two object distances follows curve, actually cannot determine whether that being switched to correct zoom follows on curve,
Therefore whether the subsequent zoom in order to verify switching follows curve correct and determines that zoom next time follows the switching direction of curve,
Picture pick-up device record follow curve using the second zoom when, the second position locating for zoom motor and picture pick-up device shooting
After second clarity parameter of image, the second zoom can be followed curve switch back into the first zoom again and follow curve, remembered simultaneously
Record the third corresponding relationship of the third clarity parameter of the third place locating for zoom motor and picture pick-up device shooting image.
Wherein, the second zoom is followed curve to be switched to the first zoom and follows curve by picture pick-up device, that is, by object distance by
Second object distance switches back into the first object distance again.It can specifically be continued by control focus motor along the opposite direction of above-mentioned default moving direction
Preset step-length is moved to realize.Since in the switching and switchback process that zoom follows curve, the mobile step-length of focus motor is equal
In preset focal depth range, therefore the clarity parameter of picture pick-up device shooting image is within the set range, can guarantee to use as far as possible
The significant change of family imperceptible image definition when viewing shoots image.
Step 204: picture pick-up device is closed according to above-mentioned first corresponding relationship, the second corresponding relationship and third of record are corresponding
System calculates the cleaning politics, economics, organization, and ideology that picture pick-up device shoots image when following curve using the first zoom and zoom motor is in the second position
Clear degree parameter.
Wherein, picture pick-up device shooting figure when following curve using the first zoom and zoom motor is in the second position is calculated
4th clarity parameter of picture is specific executable are as follows: in the two-dimensional coordinate system being made of position and clarity parameter, to determine the
One position and corresponding first coordinate points of the first clarity parameter, the second position and corresponding second coordinate of the second clarity parameter
Point, the third place and the corresponding third coordinate points of third clarity parameter;Based on the first coordinate points, the second coordinate points and third
Coordinate points calculate corresponding clarity ginseng when the second coordinate points are mapped on the line between the first coordinate points and third coordinate points
Number, is determined as the 4th clarity parameter for the clarity parameter of calculating.
Inventors have found that when the corresponding zoom of application different object distances follows curve, for the corresponding change of each object distance
Curve is followed again, it can be by shooting image to the location of the location of zoom motor, focus motor and picture pick-up device
Clarity parameter three between carry out simulation analysis, obtain the corresponding AF statistical value curve of the object distance.Wherein, any object distance pair
The zoom answered follows curve, has strong correlation between AF statistical value curve corresponding with any object distance.Also, it is directed to and appoints
When the corresponding AF statistical value curve of one object distance applies the corresponding zoom of any object distance to follow curve for being characterized in, zoom electricity
Mapping between the clarity parameter three of the location of machine present position, focus motor and picture pick-up device shooting image is closed
System.Based on this, the corresponding AF statistical value curve of different object distances that can be gone out according to simulation analysis is obtained corresponding using different object distances
Zoom when following curve, the mapping between the clarity parameter of zoom motor present position and picture pick-up device shooting image is closed
System.
Therefore, in the embodiment of the present application, the clear of image can shot by the location of zoom motor and picture pick-up device
In the coordinate system that clear degree parameter is constituted, first position and corresponding first coordinate points of the first clarity parameter, second are determined
Set the second coordinate points corresponding with the second clarity parameter, the third place and the corresponding third coordinate points of third clarity parameter.
Wherein, the first coordinate points and third coordinate points can be understood as the coordinate points on the corresponding AF statistical value curve of the first object distance,
Second coordinate points can be understood as the coordinate points on the corresponding AF statistical value curve of the second object distance.And due to any object distance pair
The AF statistical value curve answered zoom corresponding with any object distance, which follows, has strong correlation between curve, therefore calculates camera shooting and set
4th clarity parameter of the standby shooting image when following curve using the first zoom and zoom motor be in the second position, also phase
When in calculating on the corresponding AF statistical value curve of the first object distance, the zoom motor of picture pick-up device is in corresponding when the second position
Clarity parameter.
Specifically, reference can be made to the two-dimensional coordinate shown in Fig. 3 being made of the location of zoom motor and clarity parameter
The schematic diagram of each coordinate points in system, x-axis can represent the location of zoom motor in the two-dimensional coordinate system, and y-axis can represent camera shooting
Machine shoot image clarity parameter, P1 (x1, y1) represents the first coordinate points, P2 (x2, y2) represents the second coordinate points, P3 (x3,
Y3 third coordinate points) are represented, wherein the line between P1 and P3 is construed as on the corresponding AF statistical value curve of the first object distance
A part of curve (due to the mobile step-length very little of zoom motor, therefore AF corresponding to the line between P1 and P3 two o'clock is counted
A part of curve on value curve can be approximately straight line), P2 can be regarded as the point on the corresponding AF statistical value curve of the second object distance.
Correspondingly, when P2 is mapped on the line between P1, P3 in corresponding point P4 (x4, y4), the abscissa x2 of abscissa x4 and P2
Identical, i.e., the location of corresponding zoom motor is identical;Ordinate y4 can represent bent in the corresponding AF statistical value of the first object distance
On line, the zoom motor of picture pick-up device is in corresponding clarity parameter, as the 4th clarity parameter when the second position.Into one
Step ground, can seek y4 by triangle proportionate relationship come approximate, specifically, in three using P2 as vertex being made of P1, P2, P3
In angular, there are proportionate relationshipsTherefore it can calculate
Step 205: picture pick-up device compares the 4th clarity parameter of the second clarity parameter and calculating, is tied based on comparing
Fruit, determining zoom next time follow the switching direction of curve.
Wherein, if it is determined that the second clarity parameter is greater than the 4th clarity parameter, then it can determine and be switched to by the first object distance
Second object distance is correct switching direction, therefore can continue to carry out next time according to the direction for switching to the second object distance by the first object distance
Zoom follows the switching of curve;
If it is determined that the second clarity parameter then can determine less than the 4th clarity parameter and be switched to the first object by the second object distance
Away from for correct switching direction, therefore zoom next time can be carried out according to the direction for switching to the first object distance by the second object distance and follow song
The switching of line.
In summary, in the embodiment of the present application, picture pick-up device, can be corresponding in the first object distance of current application during zoom
The first zoom when following curve, record first position locating for zoom motor and the picture pick-up device shooting figure in the picture pick-up device
First corresponding relationship of the first clarity parameter of picture, and follow curve to switch to the second object distance the first zoom of current application
After corresponding second zoom follows curve, the second of the second position locating for zoom motor and picture pick-up device shooting image is recorded
Second zoom is followed curve to switch back into former first zoom and follows curve, remember by the second corresponding relationship of clarity parameter again later
Record the pass corresponding with the picture pick-up device shooting third of third clarity parameter of image of the third place locating for zoom motor at this time
System, in this way, picture pick-up device can be counted based on above-mentioned first corresponding relationship, the second corresponding relationship and the third corresponding relationship of record
Calculate the picture pick-up device follow curve using the first zoom and when zoom motor be in the second position shooting image the 4th clearly
Parameter is spent, and then compares the second clarity parameter and the 4th clarity parameter, can determine zoom next time based on comparative result
Follow the switching direction of curve.By following curve to switch over and switchback the zoom of application, and compare at zoom motor
In identical position, but application is the clarity ginseng of picture pick-up device shooting image when the corresponding zoom of different object distances follows curve
Number, it may be determined that go out the switching direction that zoom next time follows curve, be in different location in zoom motor compared to the prior art
The scheme of the clarity of upper relatively picture pick-up device shooting image enables to zoom during zoom to follow the standard of the switching of curve
True property is higher, and then ensure that picture pick-up device shooting image clarity with higher during zoom.
Conceived based on same application, zoom follows curve during a kind of and zoom is additionally provided in the embodiment of the present application
Zoom follows the switching device of curve during the corresponding zoom of switching method, the principle solved the problems, such as due to the device and this Shen
Please zoom follows the switching method of curve similar during zoom in embodiment, therefore the implementation of the device may refer to method
Implement, overlaps will not be repeated.
Referring to shown in Fig. 4, zoom follows the switching of curve to fill during a kind of zoom provided for the embodiment of the present application two
It sets, comprising:
Processing module 41, for when corresponding first zoom of the first object distance of current application follows curve, record camera shooting to be set
It is first corresponding to shoot the first clarity parameter of image for first position locating for zoom motor in standby and the picture pick-up device
Relationship;It follows curve to be switched to after corresponding second zoom of the second object distance follows curve first zoom, records the change
Second corresponding relationship of the second clarity parameter of the second position locating for times motor and picture pick-up device shooting image;By institute
Stating the second zoom follows curve to switch back into after first zoom follows curve, records the third place locating for the zoom motor
With the third corresponding relationship of the third clarity parameter of picture pick-up device shooting image;
Computing module 42, for calculating according to first corresponding relationship, the second corresponding relationship and third corresponding relationship
Picture pick-up device shooting image when following curve using first zoom and the zoom motor is in the second position
4th clarity parameter;
Determining module 43 is used for the second clarity parameter and the 4th clarity parameter, based on comparing
As a result, determining zoom next time follows the switching direction of curve.
Further, the determining module 43 is specifically used for:
If it is determined that the second clarity parameter is greater than the 4th clarity parameter, then cut according to by first object distance
The direction for shifting to second object distance carries out the switching that zoom next time follows curve;
If it is determined that the second clarity parameter is less than the 4th clarity parameter, then cut according to by second object distance
The direction for shifting to first object distance carries out the switching that zoom next time follows curve.
Further, the computing module 42 is specifically used for:
In the two-dimensional coordinate system being made of position and clarity parameter, the first position and described first is determined clearly
Spend corresponding first coordinate points of parameter, the second position and corresponding second coordinate points of the second clarity parameter, described
The third place and the corresponding third coordinate points of the third clarity parameter;
Based on first coordinate points, the second coordinate points and the third coordinate points, calculates second coordinate points and reflect
Corresponding clarity parameter when penetrating on the line between first coordinate points and the third coordinate points, this by calculating are clear
Clear degree parameter is determined as the 4th clarity parameter.
Further, the processing module 41 is specifically used for:
By the focus motor in the picture pick-up device according to the mobile preset step-length of default moving direction;Wherein, described default
Moving direction be make the object distance focus motor mobile direction when being changed to second object distance by first object distance, and
And the clarity parameter of focus motor picture pick-up device shooting image when moving in the preset step-length is in setting model
In enclosing.
Further, the preset step-length is in preset focal depth range;
Wherein, the computing module 42 is also used to: depth of focus δ is calculated according to the following formula:F is described takes the photograph
As focal length, the D of equipment are the F-number of the picture pick-up device, λ be into the light in the picture pick-up device wavelength it is average
Value.
The embodiment of the present application also provides a kind of electronic equipment, comprising: one or more processors;And one or more meters
Calculation machine readable medium is stored with the journey for following the switching method of curve for executing zoom during zoom on the readable medium
Sequence, wherein when described program is executed by one or more of processors, realize as described in any in the embodiment of the present application one
The step of method.
The embodiment of the present application also provides one or more computer-readable mediums, is stored on the readable medium for holding
Zoom follows the program of the switching method of curve during row zoom, wherein described program is executed by one or more processors
When, so that picture pick-up device executes the method as described in any in the embodiment of the present application one.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more,
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces
The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of device (system) and computer program product
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic
Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as
It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.
Claims (10)
1. zoom follows the switching method of curve during a kind of zoom characterized by comprising
Picture pick-up device records the change in the picture pick-up device when corresponding first zoom of the first object distance of current application follows curve
First corresponding relationship of the first clarity parameter of first position locating for times motor and picture pick-up device shooting image;
First zoom is followed curve to be switched to after corresponding second zoom of the second object distance follows curve by picture pick-up device, record
Second corresponding pass of the second position locating for the zoom motor and the second clarity parameter of picture pick-up device shooting image
System;
Second zoom is followed curve to switch back into after first zoom follows curve by picture pick-up device, records the zoom electricity
The third corresponding relationship of the third place locating for machine and the third clarity parameter of picture pick-up device shooting image;
Picture pick-up device calculates the camera shooting and sets according to first corresponding relationship, the second corresponding relationship and third corresponding relationship
Standby the 4th clarity that image is shot when following curve using first zoom and the zoom motor is in the second position
Parameter;
Picture pick-up device the second clarity parameter and the 4th clarity parameter, based on comparative result, under determining
Zoom follows the switching direction of curve.
2. the method as described in claim 1, which is characterized in that it is described based on comparative result, determine that zoom follows cutting for curve
Direction is changed, is specifically included:
If it is determined that the second clarity parameter is greater than the 4th clarity parameter, then switched to according to by first object distance
The direction of second object distance carries out the switching that zoom next time follows curve;
If it is determined that the second clarity parameter is less than the 4th clarity parameter, then switched to according to by second object distance
The direction of first object distance carries out the switching that zoom next time follows curve.
3. the method as described in claim 1, which is characterized in that calculate and following curve and the change using first zoom
Times motor is in the 4th clarity parameter of the picture pick-up device shooting image when second position, specifically includes:
In the two-dimensional coordinate system being made of position and clarity parameter, the first position and first clarity ginseng are determined
Corresponding first coordinate points of number, the second position and corresponding second coordinate points of the second clarity parameter, the third
Position and the corresponding third coordinate points of the third clarity parameter;
Based on first coordinate points, the second coordinate points and the third coordinate points, calculates second coordinate points and be mapped in
Corresponding clarity parameter when on the line between first coordinate points and the third coordinate points, by the clarity of calculating
Parameter is determined as the 4th clarity parameter.
4. the method as described in claim 1, which is characterized in that follow curve to be switched to the second object distance pair first zoom
The second zoom answered follows curve, specifically includes:
By the focus motor in the picture pick-up device according to the mobile preset step-length of default moving direction;Wherein, the default movement
Direction is to make the object distance focus motor mobile direction when being changed to second object distance by first object distance, also, institute
State the clarity parameter of picture pick-up device shooting image when focus motor moves in the preset step-length within the set range.
5. method as claimed in claim 4, which is characterized in that the preset step-length is in preset focal depth range;
Wherein, depth of focus δ is calculated according to the following formula:F is the focal length of the picture pick-up device, D is that the camera shooting is set
Standby F-number, λ are the wavelength average value of the light into the picture pick-up device.
6. zoom follows the switching device of curve during a kind of zoom characterized by comprising
Processing module, for recording in picture pick-up device when corresponding first zoom of the first object distance of current application follows curve
First corresponding relationship of the first clarity parameter of first position locating for zoom motor and picture pick-up device shooting image;It will
First zoom follows curve to be switched to after corresponding second zoom of the second object distance follows curve, records the zoom motor institute
Second corresponding relationship of the second clarity parameter of the second position at place and picture pick-up device shooting image;Described second is become
It follows curve to switch back into after first zoom follows curve again, records the third place locating for the zoom motor and taken the photograph with described
As the third corresponding relationship of the third clarity parameter of equipment shooting image;
Computing module, for being taken the photograph described in calculating according to first corresponding relationship, the second corresponding relationship and third corresponding relationship
As equipment shoots the cleaning politics, economics, organization, and ideology of image when following curve using first zoom and the zoom motor is in the second position
Clear degree parameter;
Determining module is used for the second clarity parameter and the 4th clarity parameter, based on comparative result, really
Fix the switching direction that a zoom follows curve.
7. device as claimed in claim 6, which is characterized in that the determining module is specifically used for:
If it is determined that the second clarity parameter is greater than the 4th clarity parameter, then switched to according to by first object distance
The direction of second object distance carries out the switching that zoom next time follows curve;
If it is determined that the second clarity parameter is less than the 4th clarity parameter, then switched to according to by second object distance
The direction of first object distance carries out the switching that zoom next time follows curve.
8. device as claimed in claim 6, which is characterized in that the computing module is specifically used for:
In the two-dimensional coordinate system being made of position and clarity parameter, the first position and first clarity ginseng are determined
Corresponding first coordinate points of number, the second position and corresponding second coordinate points of the second clarity parameter, the third
Position and the corresponding third coordinate points of the third clarity parameter;
Based on first coordinate points, the second coordinate points and the third coordinate points, calculates second coordinate points and be mapped in
Corresponding clarity parameter when on the line between first coordinate points and the third coordinate points, by the clarity of calculating
Parameter is determined as the 4th clarity parameter.
9. device as claimed in claim 6, which is characterized in that the processing module is specifically used for:
By the focus motor in the picture pick-up device according to the mobile preset step-length of default moving direction;Wherein, the default movement
Direction is to make the object distance focus motor mobile direction when being changed to second object distance by first object distance, also, institute
State the clarity parameter of picture pick-up device shooting image when focus motor moves in the preset step-length within the set range.
10. device as claimed in claim 9, which is characterized in that the preset step-length is in preset focal depth range;
Wherein, the computing module is also used to: depth of focus δ is calculated according to the following formula:F is the picture pick-up device
Focal length, D be the F-number of the picture pick-up device, λ is wavelength average value into the light in the picture pick-up device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710919737.7A CN107592464B (en) | 2017-09-30 | 2017-09-30 | Zoom follows the switching method and device of curve during a kind of zoom |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710919737.7A CN107592464B (en) | 2017-09-30 | 2017-09-30 | Zoom follows the switching method and device of curve during a kind of zoom |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107592464A CN107592464A (en) | 2018-01-16 |
CN107592464B true CN107592464B (en) | 2019-09-17 |
Family
ID=61053255
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710919737.7A Active CN107592464B (en) | 2017-09-30 | 2017-09-30 | Zoom follows the switching method and device of curve during a kind of zoom |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107592464B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110839126B (en) * | 2018-08-15 | 2021-07-20 | 杭州海康威视数字技术股份有限公司 | Zoom tracking method and device and zoom camera |
CN112135055B (en) * | 2020-09-27 | 2022-03-15 | 苏州科达科技股份有限公司 | Zoom tracking method, device, equipment and storage medium |
CN114710603B (en) * | 2022-03-24 | 2024-02-13 | 深圳市维海德技术股份有限公司 | Temperature drift correction method, system, terminal equipment and medium |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7347371B2 (en) * | 2004-07-30 | 2008-03-25 | Symbol Technologies, Inc. | Aiming pattern for imaging-based bar code readers |
CN103728813B (en) * | 2012-10-15 | 2016-10-26 | 浙江大华技术股份有限公司 | A kind of method of synchronizing focus during zoom |
CN104184932B (en) * | 2013-05-20 | 2018-03-23 | 浙江大华技术股份有限公司 | Ball machine control method and device |
CN103475820B (en) * | 2013-09-23 | 2016-05-18 | 苏州科达科技股份有限公司 | PI method for correcting position and system in a kind of video camera |
CN103546692A (en) * | 2013-11-04 | 2014-01-29 | 苏州科达科技股份有限公司 | Method and system achieving integrated camera automatic focusing |
CN103595920B (en) * | 2013-11-15 | 2016-11-09 | 浙江宇视科技有限公司 | Assisted focused method and device during image capture device, zoom |
CN104301611B (en) * | 2014-10-14 | 2017-09-19 | 浙江宇视科技有限公司 | A kind of bearing calibration of zoom tracking curve and device |
-
2017
- 2017-09-30 CN CN201710919737.7A patent/CN107592464B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN107592464A (en) | 2018-01-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107087107B (en) | Image processing apparatus and method based on dual camera | |
CN109840500B (en) | Three-dimensional human body posture information detection method and device | |
US8564641B1 (en) | Adjusting stereo images | |
CN103067656B (en) | Camera head and image capture method | |
CN107465877B (en) | Track focusing method and device and related media production | |
CN107592464B (en) | Zoom follows the switching method and device of curve during a kind of zoom | |
JP2019194616A (en) | Position detection method, device and equipment based upon image, and storage medium | |
CN103546692A (en) | Method and system achieving integrated camera automatic focusing | |
CN108629220A (en) | A kind of two dimension code reading method, apparatus and equipment | |
CN108270967A (en) | Atomatic focusing method and the electronic equipment for performing this method | |
CN110278382A (en) | A kind of focus method, device, electronic equipment and storage medium | |
CN102713513B (en) | Camera head, image capture method, program and integrated circuit | |
CN106954007A (en) | Camera device and image capture method | |
CN109035330A (en) | Cabinet approximating method, equipment and computer readable storage medium | |
CN110213491B (en) | Focusing method, device and storage medium | |
CN108702450A (en) | Stablize the method for image sequence | |
CN109712193A (en) | A kind of determination method and device of ball machine field angle | |
CN112312113B (en) | Method, device and system for generating three-dimensional model | |
CN110544278B (en) | Rigid body motion capture method and device and AGV pose capture system | |
CN107517345A (en) | Shooting preview method and capture apparatus | |
CN108701361A (en) | Depth value determines method and apparatus | |
CN110751728A (en) | Virtual reality equipment and method with BIM building model mixed reality function | |
EP3309750B1 (en) | Image processing apparatus and image processing method | |
CN104155839B (en) | System and method for providing 3 d image | |
CN104376323A (en) | Object distance determining method and device |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |