CN107592464A - 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 PDF

Info

Publication number
CN107592464A
CN107592464A CN201710919737.7A CN201710919737A CN107592464A CN 107592464 A CN107592464 A CN 107592464A CN 201710919737 A CN201710919737 A CN 201710919737A CN 107592464 A CN107592464 A CN 107592464A
Authority
CN
China
Prior art keywords
zoom
curve
picture pick
definition parameter
object distance
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
Application number
CN201710919737.7A
Other languages
Chinese (zh)
Other versions
CN107592464B (en
Inventor
陈天钧
陈明珠
虞卫勇
房鑫平
赵军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN201710919737.7A priority Critical patent/CN107592464B/en
Publication of CN107592464A publication Critical patent/CN107592464A/en
Application granted granted Critical
Publication of CN107592464B publication Critical patent/CN107592464B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

Zoom follows the switching method and device of curve during a kind of zoom of the embodiment of the present application offer, to solve zoom process zoom present in prior art follow it is still not accurate enough in the switching of curve, it is difficult to ensure shooting image there is the problem of higher definition.Wherein, the embodiment of the present application is switched over and switchback by following curve to the zoom of application, and compare zoom motor and be in identical position, but the definition parameter of picture pick-up device shooting image when following curve for zoom corresponding to different object distances of application, it can determine that zoom next time follows the switching direction of curve, the scheme of the definition that compares picture pick-up device shooting image is on diverse location in zoom motor in compared with prior art, zoom follows the accuracy of the switching of curve higher during enabling to zoom, and then picture pick-up device shooting image has higher definition during ensure that zoom.

Description

Zoom follows the switching method and device of curve during a kind of zoom
Technical field
The application is related to the switching side that zoom during technical field of video monitoring, more particularly to a kind of zoom follows curve Method and device.
Background technology
As Video Surveillance Industry digitizes, networking and the development in high Qinghua, there is zoom, automatic focusing function The application of integrated camera is also more and more extensive.The lens group of integrated camera includes zoom camera lens and amasthenic lens, Wherein, the change of zoom lens location can cause the position of focus to change, correspondingly, focal length (the i.e. camera lens light of lens group The distance between posterior principal point and focus are learned, wherein, lens optical posterior principal point is) it can also change;Amasthenic lens position changes Becoming can cause the image distance the distance between (i.e. lens optical posterior principal point with image forming medium) of lens group to change.The integration is taken the photograph Zoom motor (zoom motors) and focus motor (focus motors) are also configured with camera can drive the integration to image respectively Zoom camera lens and amasthenic lens move in machine.During integrated camera zoom, due to zoom motor driven zoom Camera lens moves, and focal length can be changed, then original to be clearly situated between as that focus on the imagings such as imaging sensor In matter, the image of shooting is caused to obscure.And in order that obtaining the image shot during zoom keeps clear, it is necessary to make amasthenic lens The movement of zoom camera lens can be followed and moved in real time.
Therefore, prior art proposes curve can be followed to control the movement of zoom motor and focus motor using zoom. Specifically, it can be seen from imaging formula 1/f=1/u+1/v, when object distance u (i.e. lens optical posterior principal point to shooting object away from From the distance between) it is fixed when, there is corresponding relation between focal length f and image distance v, therefore can match somebody with somebody in advance in integrated camera Put zoom corresponding to different object distances and follow curve, wherein, zoom corresponding to any object distance follows curve to represent described any Under object distance, reflecting between the position of the zoom motor of control zoom camera lens movement and the focus motor of control amasthenic lens movement Penetrate relation.It specifically can refer to shown in Fig. 1, illustrate zoom when object distance is 3m, 5m, 10m and infinity and follow curve to illustrate Figure.Wherein, the zoom follow the abscissa of curve represent zoom motor from focal length end to wide burnt end move when position, ordinate Represent focus motor from nearly burnt end to remote burnt end move when position.When between zoom motor and focus motor along a certain thing When the track movement indicated by curve is followed away from corresponding zoom, the definition of the image of integrated camera shooting is preferable.
Inventor has found, integrated camera is during zoom, and zoom motor and focus motor are along different object distances When zoom follows the track movement indicated by curve, there is certain difference for the definition of the image of shooting.In zoom process It is middle to need to follow curve to switch over the zoom of application exactly, to ensure to clap when the zoom after application switches follows curve The definition for the image taken the photograph is higher.
However, the switching that zoom follows curve is generally carried out using following scheme in the prior art:According to zoom motor Position is presently in focus motor and determines that the first zoom follows curve corresponding to the first object distance of current application, then by One zoom curve switch to the second object distance (second object distance is more than the first object distance) respectively corresponding to the second zoom follow curve with And the 3rd the 3rd zoom corresponding to object distance (the 3rd object distance is less than the first object distance) follow on curve, and compare respectively using upper The definition that the second zoom follows curve and the 3rd zoom follows the image shot during curve is stated, and then based on obtained comparison As a result, by the zoom of current application follow curve switch to definition 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 is above-mentioned to apply the always in movement Two zooms follow curve and the 3rd zoom to follow the definition of the image shot during curve to be compared, and are not actually same Compare on individual zoom motor position, the comparative result confidence level finally given is poor.
As can be seen here, followed in existing scheme for zoom process zoom still not accurate enough in the switching of curve, it is difficult to Ensureing the image of shooting has higher definition.
The content of the invention
Zoom follows the switching method and device of curve during a kind of zoom of the embodiment of the present application offer, existing to solve Have followed in scheme for zoom process zoom it is still not accurate enough in the switching of curve, it is difficult to ensure shooting image have compared with The problem of high definition.
The technical scheme that the application provides is as follows:
In a first aspect, zoom follows the switching method of curve during a kind of zoom, including:
Picture pick-up device is recorded in the picture pick-up device when the first zoom corresponding to the object distance of current application first follows curve Zoom motor residing for first position and the picture pick-up device shooting image the first definition parameter the first corresponding relation;
First zoom is followed curve to switch to after the second zoom follows curve corresponding to the second object distance by picture pick-up device, Record the second couple of the second place residing for the zoom motor and the second definition parameter of the 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 3rd position and the 3rd corresponding relation of the 3rd definition parameter of the picture pick-up device shooting image residing for times motor;
Picture pick-up device is taken the photograph described in calculating according to first corresponding relation, the second corresponding relation and the 3rd corresponding relation As the cleaning politics, economics, organization, and ideology of equipment shooting image when following curve using first zoom and the zoom motor is in the second place Clear degree parameter;
Picture pick-up device the second definition parameter and the 4th definition parameter, based on comparative result, really Fix the switching direction that a zoom follows curve.
Further, it is described to be based on comparative result, determine that zoom follows the switching direction of curve, specifically include:
If it is determined that the second definition parameter is more than the 4th definition 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 definition parameter is less than the 4th definition 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, calculate and following curve and the zoom motor is in second place when institute using first zoom The 4th definition parameter of picture pick-up device shooting image is stated, is specifically included:
In the two-dimensional coordinate system being made up of position and definition parameter, the first position and described first clear is determined Spend the first coordinate points, the second place corresponding to parameter and the second coordinate points corresponding to the second definition parameter, described 3rd coordinate points corresponding to 3rd position and the 3rd definition parameter;
Based on first coordinate points, the second coordinate points and the 3rd coordinate points, calculate second coordinate points and reflect Corresponding definition parameter when on the line between first coordinate points and the 3rd coordinate points is penetrated, this by calculating is clear Clear degree parameter is defined as the 4th definition parameter.
Further, curve is followed to switch to the second zoom corresponding to the second object distance to follow curve first zoom, Specifically include:
Focus motor in the picture pick-up device is moved into default step-length according to default moving direction;Wherein, it is described default Moving direction is the direction of focus motor movement when making object distance be changed to second object distance by first object distance, and And the definition parameter of focus motor picture pick-up device shooting image when being moved in the default step-length is in setting model In enclosing.
Further, the default step-length is in default focal depth range;
Wherein, depth of focus δ is calculated according to below equation:F is the focal length of the picture pick-up device, D is described takes the photograph F-number, λ as equipment are the wavelength average value of the light entered in the picture pick-up device.
Second aspect, zoom follows the switching device of curve during a kind of zoom, including:
Processing module, for when the first zoom corresponding to the object distance of current application first follows curve, recording picture pick-up device In zoom motor residing for first position and the first definition parameter of the picture pick-up device shooting image first corresponding close System;Follow curve to switch to after the second zoom follows curve corresponding to the second object distance first zoom, record the zoom The second place and the second corresponding relation of the second definition parameter of the picture pick-up device shooting image residing for motor;By described in Second zoom follows curve to switch back into after first zoom follows curve, record the 3rd position residing for the zoom motor with 3rd corresponding relation of the 3rd definition parameter of the picture pick-up device shooting image;
Computing module, for according to first corresponding relation, the second corresponding relation and the 3rd corresponding relation, calculating institute State picture pick-up device follow curve using first zoom and when the zoom motor is in the second place shooting image the Four definition parameters;
Determining module, for the second definition parameter and the 4th definition parameter, tied based on comparing Fruit, it is determined that zoom follows the switching direction of curve next time.
Further, the determining module is specifically used for:
If it is determined that the second definition parameter is more than the 4th definition 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 definition parameter is less than the 4th definition 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 up of position and definition parameter, the first position and described first clear is determined Spend the first coordinate points, the second place corresponding to parameter and the second coordinate points corresponding to the second definition parameter, described 3rd coordinate points corresponding to 3rd position and the 3rd definition parameter;
Based on first coordinate points, the second coordinate points and the 3rd coordinate points, calculate second coordinate points and reflect Corresponding definition parameter when on the line between first coordinate points and the 3rd coordinate points is penetrated, this by calculating is clear Clear degree parameter is defined as the 4th definition parameter.
Further, the processing module is specifically used for:
Focus motor in the picture pick-up device is moved into default step-length according to default moving direction;Wherein, it is described default Moving direction is the direction of focus motor movement when making object distance be changed to second object distance by first object distance, and And the definition parameter of focus motor picture pick-up device shooting image when being moved in the default step-length is in setting model In enclosing.
Further, the default step-length is in default focal depth range;
Wherein, the computing module is additionally operable to:Depth of focus δ is calculated according to below equation:F is the 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, including:One or more processors;It is and one or more computer-readable Medium, the program for following the switching method of curve for performing zoom during zoom is stored with the computer-readable recording medium, wherein, When described program is by one or more of computing devices, the step of realizing method as described in first aspect is any.
Fourth aspect, one or more computer-readable mediums, it is stored with the computer-readable recording medium for performing zoom mistake 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 take the photograph As equipment perform 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 corresponding to the object distance of current application first first When following curve again, the first of the first position in the picture pick-up device residing for zoom motor and the picture pick-up device shooting image is recorded First corresponding relation of definition parameter, and follow curve to switch to corresponding to the second object distance the first zoom of current application After two zooms follow curve, the second definition for recording the second place residing for zoom motor and the picture pick-up device shooting image is joined The second several corresponding relations, follow curve to switch back into former first zoom the second zoom again afterwards and follow curve, record this time-varying 3rd corresponding relation of the 3rd definition parameter of the 3rd position and the picture pick-up device shooting image residing for times motor, so, Picture pick-up device can calculate the shooting based on above-mentioned first corresponding relation, the second corresponding relation and the 3rd corresponding relation of record 4th definition parameter of equipment shooting image when following curve using the first zoom and zoom motor is in the second place, enters And compare the second definition parameter and the 4th definition parameter, comparative result can be based on, it is determined that zoom follows curve next time Switching direction.By following curve to switch over to the zoom of application and switchback, and compare zoom motor and be in identical Position, but the definition parameter of picture pick-up device shooting image when following curve for zoom corresponding to different object distances applied, can be true Make the switching direction that zoom next time follows curve, compared with prior art in be on diverse location to compare in zoom motor and take the photograph As the scheme of the definition of equipment shooting image, enable to zoom during zoom follow the accuracy of the switching of curve compared with Height, and then picture pick-up device shooting image has higher definition during ensure that zoom.
Brief description of the drawings
Fig. 1 is that zoom when object distance is 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 up of the location of zoom motor and definition 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.
Embodiment
The application is still inadequate in the switching of curve to solve to follow for zoom process zoom present in prior art Accurately, it is difficult to which ensureing the image of shooting has the problem of higher definition, proposes by following curve to enter the zoom of application Row switching and switchback, and compare zoom motor and be in identical position, but that applies follows for zoom corresponding to different object distances The definition parameter of picture pick-up device shooting image during curve, it may be determined that go out the switching direction that zoom next time follows curve, compare The scheme for the definition for comparing picture pick-up device shooting image is on diverse location in zoom motor in the prior art, is enabled 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 With higher definition.
Below in conjunction with the accompanying drawing in the embodiment of the present application, the technical scheme in the embodiment of the present application is carried out clear, complete Site preparation describes, it is clear that described embodiment is only some embodiments of the present application, is not whole embodiments.It is based on The embodiment of the present application, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made Example, belong to the scope of the application protection.
It is to be appreciated that in the description of the present application, the vocabulary such as " first ", " second ", it is only used for distinguishing the mesh described , and it is not intended that instruction or imply relative importance, can not be interpreted as indicating or hint order.
Embodiment one
Shown in reference picture 2, zoom follows the switching method stream of curve during the zoom provided for the embodiment of the present application one Cheng Tu, specifically include:
Step 201:Picture pick-up device records the shooting when the first zoom corresponding to the object distance of current application first follows curve The first of first position residing for zoom motor in equipment and the first definition parameter of the picture pick-up device shooting image is corresponding Relation.
Wherein, picture pick-up device described here can be applied to the integrated camera in video monitoring or ball machine etc., be somebody's turn to do Picture pick-up device includes zoom camera lens, zoom motor, amasthenic lens, focus motor etc..Zoom motor can drive zoom camera lens to enter Row movement, focus motor can drive amasthenic lens to move.Also, corresponding not jljl is previously stored with 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 the track indicated by curve to move, it is ensured that picture pick-up device shooting image has higher definition.
Wherein, the definition parameter of picture pick-up device shooting image is used for image forming medium (such as image biography for characterizing picture pick-up device Sensor etc.) in the readability of image that collects.The definition parameter may include definition evaluation of estimate (FV) etc..On clear The calculating of clear degree parameter can refer to existing image definition evaluation algorithm, is no longer described in detail in the application.
In specific implementation, because the location of zoom motor can reflect focal length, the focus motor of picture pick-up device Location can reflect the image distance of picture pick-up device, also, from imaging formula, it is known that the focal length and picture of 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 Put and position that focus motor is presently in, the object distance for determining current picture pick-up device is the first object distance, and then can determine that and work as The zoom of preceding application follows curve to follow curve for the first zoom corresponding to the first object distance, and records the picture pick-up device and be somebody's turn to do in application When first zoom follows curve, first position and the first definition parameter of the picture pick-up device shooting image residing for zoom motor The first corresponding relation.
Step 202:First zoom is followed curve to switch to the second zoom corresponding to the second object distance to follow song by picture pick-up device After line, the second place residing for zoom motor and the second corresponding pass of the second definition parameter of picture pick-up device shooting image are recorded System.
Here, curve is followed due to correspond to different zooms under different object distances, therefore actual switching zoom follows curve Process, as adjust object distance process.
In specific implementation, the first zoom corresponding to the first object distance is followed curve to switch 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 into the second object distance by the first object distance.And image and set Standby object distance is together decided on by the location of the location of zoom motor and focus motor, therefore picture pick-up device is becoming During times, with the movement of zoom motor, the focus motor in picture pick-up device can be moved according to default moving direction and preset Step-length.
Wherein, the default moving direction is that focus motor moves when the object distance is changed to the second object distance by the first object distance Direction.Here, the first object distance can be more 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 make object distance become hour focus motor movement direction, or make object distance become it is big when focus motor movement side To.When it is implemented, default moving direction can be configured according to the actual requirements.
Also, during switching zoom follows curve, namely in mobile focus motor come during adjusting object distance, Can be that the position of focus motor movement is set to ensure that significant change occurs in the definition that user is detectable shooting image as far as possible Default step-length is put, so that focus motor definition parameter of picture pick-up device shooting image when this is preset and moved in step-length is being set In the range of.
Preferably, default step-length may be configured as in default focal depth range.When it is implemented, can be according to below equation meter Calculate depth of focus δ:Wherein, f is the focal length of the picture pick-up device, D is 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 The small picture pick-up device that may depend on is presently in environment and imaging pattern, such as, if in the preferable environment of light, picture pick-up device Visual light imaging pattern can be started, then wavelength average value can fingering enter the wavelength average value of visible ray in picture pick-up device, if in light In the poor environment of line, picture pick-up device can start infrared imaging pattern, then wavelength average value can fingering enter it is 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 Configure in real time.Because 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, can be according to when proactive when calculating depth of focus As equipment status is calculated in real time, correspondingly, if default step-length is arranged in default focal depth range, preset The size that step-length can combine the depth of focus under current picture pick-up device status is configured.
Step 203:Second zoom is followed curve to switch back into after the first zoom follows curve by picture pick-up device, record zoom electricity The 3rd position and the 3rd corresponding relation of the 3rd definition parameter of picture pick-up device shooting image residing for machine.
Here, because in step 202, the first zoom corresponding to the first object distance is followed curve to switch to by picture pick-up device The second zoom follows curve corresponding to two object distances, actually cannot determine whether that being switched to correct zoom follows on curve, Therefore subsequently in order to verify that the zoom of switching follows curve whether 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 place residing for zoom motor and picture pick-up device shooting After second definition parameter of image, the second zoom can be followed curve to switch back into the first zoom again and follow curve, remembered simultaneously Record the 3rd corresponding relation of the 3rd position residing for zoom motor and the 3rd definition parameter of picture pick-up device shooting image.
Wherein, the second zoom is followed curve to switch to the first zoom to follow curve by picture pick-up device, that is, by object distance by Second object distance switches back into the first object distance again.Specifically can be by controlling opposite direction of the focus motor along above-mentioned default moving direction to continue It is mobile to preset step-length to realize.In following the switching and switchback process of curve in zoom, the step-length of focus motor movement is equal In default focal depth range, therefore the definition parameter of picture pick-up device shooting image can ensure to use as far as possible in setting range The significant change of family imperceptible image definition when watching shooting image.
Step 204:Picture pick-up device closes according to above-mentioned first corresponding relation of record, the second corresponding relation and the 3rd are corresponding System, calculate the cleaning politics, economics, organization, and ideology of picture pick-up device shooting image when following curve using the first zoom and zoom motor is in the second place Clear degree parameter.
Wherein, picture pick-up device shooting figure when following curve using the first zoom and zoom motor is in the second place is calculated 4th definition parameter of picture, specifically can perform and is:In the two-dimensional coordinate system being made up of position and definition parameter, is determined First coordinate points, the second place and the second coordinate corresponding to the second definition parameter corresponding to one position and the first definition parameter Point, the 3rd position and the 3rd coordinate points corresponding to the 3rd definition parameter;Based on the first coordinate points, the second coordinate points and the 3rd Coordinate points, calculate corresponding definition ginseng when the second coordinate points are mapped on the line between the first coordinate points and the 3rd coordinate points Number, is defined as the 4th definition parameter by the definition parameter of calculating.
Inventor has found, when zoom corresponding to application different object distances follows curve, for change corresponding to each object distance Curve is followed again, can be by the location of the location of zoom motor, focus motor and picture pick-up device shooting image Definition parameter three between carry out simulation analysis, draw AF statistical values curve corresponding to the object distance.Wherein, any object distance pair The zoom answered follows curve, has strong correlation between AF statistical values curve corresponding with any object distance.Also, for appointing When AF statistical values curve corresponding to one object distance follows curve for being characterized in using zoom corresponding to any object distance, zoom electricity Mapping between the location of machine present position, focus motor and the definition parameter three of picture pick-up device shooting image is closed System.Based on this, can according to corresponding to the different object distances that simulation analysis go out AF statistical values curve, draw corresponding using different object distances Zoom when following curve, the mapping between the definition parameter of zoom motor present position and picture pick-up device shooting image is closed System.
Therefore, in the embodiment of the present application, can be by the clear of the location of zoom motor and picture pick-up device shooting image In the coordinate system that clear degree parameter is formed, the first coordinate points, second corresponding to first position and the first definition parameter are determined Put with the second definition parameter corresponding to the second coordinate points, the 3rd coordinate points corresponding to the 3rd position and the 3rd definition parameter. Wherein, the first coordinate points and the 3rd coordinate points can be understood as the coordinate points corresponding to the first object distance on AF statistical values curve, Second coordinate points can be understood as the coordinate points on AF statistical values curve corresponding to the second object distance.And due to any object distance pair The AF statistical values curve answered zoom corresponding with any object distance has strong correlation between following curve, therefore calculates shooting and set 4th definition parameter of the standby shooting image when following curve using the first zoom and zoom motor is in the second place, also phase When in calculating on AF statistical values curve, the zoom motor of picture pick-up device is in corresponding during the second place corresponding to the first object distance Definition parameter.
Specifically, reference can be made to the two-dimensional coordinate being made up of the location of zoom motor and definition parameter shown in Fig. 3 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 shooting The definition parameter of machine shooting image, P1 (x1, y1) represents the first coordinate points, P2 (x2, y2) represents the second coordinate points, P3 (x3, Y3 the 3rd coordinate points) are represented, wherein, the line between P1 and P3 is construed as on the corresponding AF statistical values curve of the first object distance A part of curve (due to zoom motor movement step-length very little, therefore corresponding to the line between 2 points of P1 and P3 AF statistics A part of curve on value curve can be approximately straight line), P2 can be regarded as the point on AF statistical values curve corresponding to the second object distance. Correspondingly, when P2 is mapped on the line between P1, P3 in corresponding point P4 (x4, y4), abscissa x4 and P2 abscissa x2 Identical, i.e., the location of corresponding zoom motor is identical;Ordinate y4 can represent bent in AF statistical values corresponding to the first object distance On line, the zoom motor of picture pick-up device is in corresponding definition parameter, as the 4th definition parameter during the second place.Enter one Step ground, can ask for y4, specifically, in three using P2 as summit being made up of P1, P2, P3 by triangle proportionate relationship come approximate In angular, proportionate relationship be presentTherefore it can calculate
Step 205:Picture pick-up device compares the second definition parameter and the 4th definition parameter of calculating, is tied based on comparing Fruit, it is determined that zoom follows the switching direction of curve next time.
Wherein, if it is determined that the second definition parameter is more than the 4th definition parameter, then it can determine that and 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 definition parameter is less than the 4th definition parameter, then it can determine that and the first thing switched to by the second object distance Away from for correct switching direction, therefore zoom next time can be carried out according to the direction that the first object distance is switched to 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 object distance of current application first during zoom The first zoom when following curve, record the first position in the picture pick-up device residing for zoom motor and the picture pick-up device shooting figure First corresponding relation of the first definition 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 place residing for zoom motor and the picture pick-up device shooting image is recorded Second corresponding relation of definition parameter, follow curve to switch back into former first zoom the second zoom again afterwards and follow curve, remember Now the 3rd position residing for zoom motor corresponds to pass with the 3rd of the 3rd definition parameter of the picture pick-up device shooting image for record System, so, picture pick-up device can above-mentioned first corresponding relation, the second corresponding relation and the 3rd corresponding relation based on record, meter Calculate the picture pick-up device follow curve using the first zoom and when zoom motor is in the second place shooting image it is the 4th clear Parameter is spent, and then compares the second definition parameter and the 4th definition parameter, comparative result can be based on, it is determined that zoom next time Follow the switching direction of curve.By following curve to switch over to the zoom of application and switchback, and compare at zoom motor In identical position, but the definition ginseng of picture pick-up device shooting image when following curve for zoom corresponding to different object distances applied Number, it may be determined that go out the switching direction that zoom next time follows curve, compared with prior art in zoom motor be in diverse location The scheme of the upper relatively definition of picture pick-up device shooting image, zoom during zoom is enabled to follow the standard of the switching of curve True property is higher, and then picture pick-up device shooting image has higher definition during ensure that zoom.
Based on same application design, zoom follows curve during additionally providing a kind of and zoom in the embodiment of the present application Zoom follows the switching device of curve during zoom corresponding to switching method, because the device solves the principle of problem 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, repeat part and repeat no more.
Shown in reference picture 4, zoom follows the switching of curve to fill during a kind of zoom provided for the embodiment of the present application two Put, including:
Processing module 41, for when the first zoom corresponding to the object distance of current application first follows curve, record shooting to be set The first of first position residing for zoom motor in standby and the first definition parameter of the picture pick-up device shooting image is corresponding Relation;Follow curve to switch to after the second zoom follows curve corresponding to the second object distance first zoom, record the change The second place and the second corresponding relation of the second definition parameter of the picture pick-up device shooting image residing for times motor;By institute Stating the second zoom follows curve to switch back into after first zoom follows curve, records the 3rd position residing for the zoom motor With the 3rd corresponding relation of the 3rd definition parameter of the picture pick-up device shooting image;
Computing module 42, for according to first corresponding relation, the second corresponding relation and the 3rd corresponding relation, calculating Picture pick-up device shooting image when following curve using first zoom and the zoom motor is in the second place 4th definition parameter;
Determining module 43, for the second definition parameter and the 4th definition parameter, based on comparing As a result, it is determined that zoom follows the switching direction of curve next time.
Further, the determining module 43 is specifically used for:
If it is determined that the second definition parameter is more than the 4th definition 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 definition parameter is less than the 4th definition 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 up of position and definition parameter, the first position and described first clear is determined Spend the first coordinate points, the second place corresponding to parameter and the second coordinate points corresponding to the second definition parameter, described 3rd coordinate points corresponding to 3rd position and the 3rd definition parameter;
Based on first coordinate points, the second coordinate points and the 3rd coordinate points, calculate second coordinate points and reflect Corresponding definition parameter when on the line between first coordinate points and the 3rd coordinate points is penetrated, this by calculating is clear Clear degree parameter is defined as the 4th definition parameter.
Further, the processing module 41 is specifically used for:
Focus motor in the picture pick-up device is moved into default step-length according to default moving direction;Wherein, it is described default Moving direction is the direction of focus motor movement when making object distance be changed to second object distance by first object distance, and And the definition parameter of focus motor picture pick-up device shooting image when being moved in the default step-length is in setting model In enclosing.
Further, the default step-length is in default focal depth range;
Wherein, the computing module 42 is additionally operable to:Depth of focus δ is calculated according to below equation:F takes the photograph to be described Focal length, D as equipment are the F-number of the picture pick-up device, λ is to be averaged into the wavelength of the light in the picture pick-up device Value.
The embodiment of the present application also provides a kind of electronic equipment, including:One or more processors;And one or more meters Calculation machine computer-readable recording medium, the journey for following the switching method of curve for performing zoom during zoom is stored with the computer-readable recording medium Sequence, wherein, when described program is by one or more of computing devices, 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 with the computer-readable recording 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 performs 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, embodiments of the invention can be provided as method, system or computer program Product.Therefore, the present invention can use the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware Apply the form of example.Moreover, the present invention can use the computer for wherein including computer usable program code in one or more The computer program production that usable storage medium is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of product.
The present invention is the flow with reference to method, apparatus (system) and computer program product according to embodiments of the present invention Figure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided The processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in individual square frame or multiple square frames.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creation Property concept, then can make other change and modification to these embodiments.So appended claims be intended to be construed to include it is excellent Select embodiment and fall into having altered and changing for the scope of the invention.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the present invention to the present invention God and scope.So, if these modifications and variations of the present invention belong to the scope of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to comprising including these changes and modification.

Claims (10)

1. zoom follows the switching method of curve during a kind of zoom, it is characterised in that including:
Picture pick-up device records the change in the picture pick-up device when the first zoom corresponding to the object distance of current application first follows curve First position and the first corresponding relation of the first definition parameter of the picture pick-up device shooting image residing for times motor;
First zoom is followed curve to switch to after the second zoom follows curve corresponding to the second object distance by picture pick-up device, record The second of the second place residing for the zoom motor and the second definition parameter of the picture pick-up device shooting image corresponding is closed 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 3rd position and the 3rd corresponding relation of the 3rd definition parameter of the picture pick-up device shooting image residing for machine;
Picture pick-up device calculates the shooting and set according to first corresponding relation, the second corresponding relation and the 3rd corresponding relation 4th definition of the standby shooting image when following curve using first zoom and the zoom motor is in the second place Parameter;
Picture pick-up device the second definition parameter and the 4th definition parameter, based on comparative result, it is determined that under Zoom follows the switching direction of curve.
2. the method as described in claim 1, it is characterised in that it is described to be based on comparative result, determine that zoom follows cutting for curve Direction is changed, is specifically included:
If it is determined that the second definition parameter is more than the 4th definition 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 definition parameter is less than the 4th definition 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, it is characterised in that calculate and following curve and the change using first zoom Times motor is in the 4th definition parameter of the picture pick-up device shooting image during second place, specifically includes:
In the two-dimensional coordinate system being made up of position and definition parameter, the first position and first definition ginseng are determined First coordinate points, the second place and the second coordinate points, the described 3rd corresponding to the second definition parameter corresponding to number 3rd coordinate points corresponding to position and the 3rd definition parameter;
Based on first coordinate points, the second coordinate points and the 3rd coordinate points, calculate second coordinate points and be mapped in Corresponding definition parameter when on the line between first coordinate points and the 3rd coordinate points, by the definition of calculating Parameter is defined as the 4th definition parameter.
4. the method as described in claim 1, it is characterised in that follow curve to switch to the second object distance pair first zoom The second zoom answered follows curve, specifically includes:
Focus motor in the picture pick-up device is moved into default step-length according to default moving direction;Wherein, the default movement Direction is the direction of focus motor movement when making object distance be changed to second object distance by first object distance, also, institute The definition parameter of picture pick-up device shooting image when focus motor moves in the default step-length is stated in setting range.
5. method as claimed in claim 4, it is characterised in that the default step-length is in default focal depth range;
Wherein, depth of focus δ is calculated according to below equation:F is the focal length of the picture pick-up device, D is that the shooting is set Standby F-number, the wavelength average value that λ is the light entered in the picture pick-up device.
6. zoom follows the switching device of curve during a kind of zoom, it is characterised in that including:
Processing module, for when the first zoom corresponding to the object distance of current application first follows curve, recording in picture pick-up device First position and the first corresponding relation of the first definition parameter of the picture pick-up device shooting image residing for zoom motor;Will First zoom follows curve to switch to after the second zoom follows curve corresponding to the second object distance, records the zoom motor institute The second place at place and the second corresponding relation of the second definition parameter of the picture pick-up device shooting image;Described second is become Follow curve to switch back into after first zoom follows curve again, record the 3rd position residing for the zoom motor and taken the photograph with described As the 3rd corresponding relation of the 3rd definition parameter of equipment shooting image;
Computing module, for according to first corresponding relation, the second corresponding relation and the 3rd corresponding relation, being taken the photograph described in calculating As the cleaning politics, economics, organization, and ideology of equipment shooting image when following curve using first zoom and the zoom motor is in the second place Clear degree parameter;
Determining module, for the second definition parameter and the 4th definition parameter, based on comparative result, really Fix the switching direction that a zoom follows curve.
7. device as claimed in claim 6, it is characterised in that the determining module is specifically used for:
If it is determined that the second definition parameter is more than the 4th definition 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 definition parameter is less than the 4th definition 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, it is characterised in that the computing module is specifically used for:
In the two-dimensional coordinate system being made up of position and definition parameter, the first position and first definition ginseng are determined First coordinate points, the second place and the second coordinate points, the described 3rd corresponding to the second definition parameter corresponding to number 3rd coordinate points corresponding to position and the 3rd definition parameter;
Based on first coordinate points, the second coordinate points and the 3rd coordinate points, calculate second coordinate points and be mapped in Corresponding definition parameter when on the line between first coordinate points and the 3rd coordinate points, by the definition of calculating Parameter is defined as the 4th definition parameter.
9. device as claimed in claim 6, it is characterised in that the processing module is specifically used for:
Focus motor in the picture pick-up device is moved into default step-length according to default moving direction;Wherein, the default movement Direction is the direction of focus motor movement when making object distance be changed to second object distance by first object distance, also, institute The definition parameter of picture pick-up device shooting image when focus motor moves in the default step-length is stated in setting range.
10. device as claimed in claim 9, it is characterised in that the default step-length is in default focal depth range;
Wherein, the computing module is additionally operable to:Depth of focus δ is calculated according to below equation:F is the picture pick-up device Focal length, D be the F-number of the picture pick-up device, λ be wavelength average value into the light in the picture pick-up device.
CN201710919737.7A 2017-09-30 2017-09-30 Zoom follows the switching method and device of curve during a kind of zoom Active CN107592464B (en)

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 true CN107592464A (en) 2018-01-16
CN107592464B 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)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110839126A (en) * 2018-08-15 2020-02-25 杭州海康威视数字技术股份有限公司 Zoom tracking method and device and zoom camera
CN112135055A (en) * 2020-09-27 2020-12-25 苏州科达科技股份有限公司 Zoom tracking method, device, equipment and storage medium
CN114710603A (en) * 2022-03-24 2022-07-05 深圳市维海德技术股份有限公司 Temperature drift correction method, system, terminal device and medium

Citations (7)

* Cited by examiner, † Cited by third party
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
CN103475820A (en) * 2013-09-23 2013-12-25 苏州科达科技股份有限公司 Correcting method and system for PI position in camera
CN103546692A (en) * 2013-11-04 2014-01-29 苏州科达科技股份有限公司 Method and system achieving integrated camera automatic focusing
CN103595920A (en) * 2013-11-15 2014-02-19 浙江宇视科技有限公司 Image collection equipment and auxiliary focusing method and device in zooming process
CN103728813A (en) * 2012-10-15 2014-04-16 浙江大华技术股份有限公司 Method for synchronizing focusing operation and zooming operation
CN104184932A (en) * 2013-05-20 2014-12-03 浙江大华技术股份有限公司 Spherical camera control method and device thereof
CN104301611A (en) * 2014-10-14 2015-01-21 浙江宇视科技有限公司 Method and device for correcting zoom tracking curve

Patent Citations (7)

* Cited by examiner, † Cited by third party
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
CN103728813A (en) * 2012-10-15 2014-04-16 浙江大华技术股份有限公司 Method for synchronizing focusing operation and zooming operation
CN104184932A (en) * 2013-05-20 2014-12-03 浙江大华技术股份有限公司 Spherical camera control method and device thereof
CN103475820A (en) * 2013-09-23 2013-12-25 苏州科达科技股份有限公司 Correcting method and system for PI position in camera
CN103546692A (en) * 2013-11-04 2014-01-29 苏州科达科技股份有限公司 Method and system achieving integrated camera automatic focusing
CN103595920A (en) * 2013-11-15 2014-02-19 浙江宇视科技有限公司 Image collection equipment and auxiliary focusing method and device in zooming process
CN104301611A (en) * 2014-10-14 2015-01-21 浙江宇视科技有限公司 Method and device for correcting zoom tracking curve

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110839126A (en) * 2018-08-15 2020-02-25 杭州海康威视数字技术股份有限公司 Zoom tracking method and device and zoom camera
CN110839126B (en) * 2018-08-15 2021-07-20 杭州海康威视数字技术股份有限公司 Zoom tracking method and device and zoom camera
CN112135055A (en) * 2020-09-27 2020-12-25 苏州科达科技股份有限公司 Zoom tracking method, device, equipment and storage medium
CN112135055B (en) * 2020-09-27 2022-03-15 苏州科达科技股份有限公司 Zoom tracking method, device, equipment and storage medium
CN114710603A (en) * 2022-03-24 2022-07-05 深圳市维海德技术股份有限公司 Temperature drift correction method, system, terminal device and medium
CN114710603B (en) * 2022-03-24 2024-02-13 深圳市维海德技术股份有限公司 Temperature drift correction method, system, terminal equipment and medium

Also Published As

Publication number Publication date
CN107592464B (en) 2019-09-17

Similar Documents

Publication Publication Date Title
CN108765328B (en) High-precision multi-feature plane template and distortion optimization and calibration method thereof
CN102550015B (en) Multiple views imaging control device and multiple views filming control method
CN107087107A (en) Image processing apparatus and method based on dual camera
KR102198352B1 (en) Apparatus and method for 3d image calibration in tiled display
TW201520633A (en) Automatic focusing method, and automatic focusing device, image capturing device using the same
EP2357788A1 (en) Autofocus with confidence measure
CN103546692A (en) Method and system achieving integrated camera automatic focusing
CN107465877B (en) Track focusing method and device and related media production
CN109615661A (en) Light-field camera intrinsic parameter caliberating device and method
CN103067656B (en) Camera head and image capture method
CN110278382A (en) A kind of focus method, device, electronic equipment and storage medium
CN108600638B (en) Automatic focusing system and method for camera
CN103617614B (en) A kind of method and system determining ping-pong ball drop point data in video image
CN108270967A (en) Atomatic focusing method and the electronic equipment for performing this method
CN109712193A (en) A kind of determination method and device of ball machine field angle
CN107592464A (en) Zoom follows the switching method and device of curve during a kind of zoom
CN109341537A (en) Dimension measurement method and device based on binocular vision
CN109615664A (en) A kind of scaling method and equipment for optical perspective augmented reality display
CN101943841A (en) Camera head, zoom correction information generating method and program and recording medium
CN103475820A (en) Correcting method and system for PI position in camera
JP2022058658A (en) Device and method for obtaining positioning error map indicating sharpness level of image
EP3309750B1 (en) Image processing apparatus and image processing method
CN110751728B (en) Virtual reality equipment with BIM building model mixed reality function and method
CN105301864B (en) Liquid crystal lens imaging device and liquid crystal lens imaging method
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