CN107105132B - A kind of method and device adjusting Zoom camera precision - Google Patents

A kind of method and device adjusting Zoom camera precision Download PDF

Info

Publication number
CN107105132B
CN107105132B CN201710179136.7A CN201710179136A CN107105132B CN 107105132 B CN107105132 B CN 107105132B CN 201710179136 A CN201710179136 A CN 201710179136A CN 107105132 B CN107105132 B CN 107105132B
Authority
CN
China
Prior art keywords
zoom camera
datum mark
camera
optocoupler
location point
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
Application number
CN201710179136.7A
Other languages
Chinese (zh)
Other versions
CN107105132A (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 CN201710179136.7A priority Critical patent/CN107105132B/en
Publication of CN107105132A publication Critical patent/CN107105132A/en
Application granted granted Critical
Publication of CN107105132B publication Critical patent/CN107105132B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/50Constructional details
    • H04N23/54Mounting of pick-up tubes, electronic image sensors, deviation or focusing coils
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/617Upgrading or updating of programs or applications for camera control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Lens Barrels (AREA)

Abstract

The present invention provides a kind of adjustment Zoom camera precision methods and device, method includes: after Zoom camera powers on, obtain the physical base of Zoom camera on schedule, and physical base is determined as to logic datum mark on schedule, wherein, physical base is the level catastrophe point of optocoupler in Zoom camera on schedule, and logic datum mark is preset control origin;It is subject to logic datum mark, the camera lens by controlling Zoom camera is moved back and forth according to the step-length of setting, returns to logic datum mark, and judge whether Zoom camera in logic datum mark is step out of stepping motor state;If it is determined that Zoom camera is step out of stepping motor state in logic datum mark, the working condition of stepper motor is adjusted;And the physical base for adjusting the camera lens of Zoom camera to obtain Zoom camera is on schedule, the physical base that will acquire is updated to logic datum mark on schedule.It ensure that under step out of stepping motor state, the empty burnt problem of adjustment camera lens guarantees the accuracy of camera lens shooting picture.

Description

A kind of method and device adjusting Zoom camera precision
Technical field
The present invention relates to image acquisition technology more particularly to a kind of methods and dress for adjusting Zoom camera precision It sets.
Background technique
Ball machine (spherical camera) is the representative of modern video monitoring development, its integrated colored integrated camera, holder, Encoder, shield etc. it is multi-functional with it is integrated, it is easy for installation, using simple but powerful, be widely used in open area Monitoring, different occasions can use.And having the function of that the ball machine of cruise function enhances common ball machine, it can root The monitoring of particular range is executed according to preset cruise track.For example ball machine is needed (also known as to cruise preset at 4 monitoring points back and forth Point) monitoring is executed, this 4 monitoring points can be set on the interface of ball machine by controlling holder.Ball machine is just come after starting cruise It returns and executes cruise in this four monitoring points.
Ball machine has many advantages, such as precise positioning, quickly tracking.Stepper motor is one of high speed network ball machine core devices.Step Gear into motor sends rotatory force to bearing to control the rotation of ball machine by belt wheel.Due to ball machine operating ambient temperature Generally -40~70 DEG C, after ball machine icing phenomenon occurs under winter low temperature condition, the step-out that just will appear stepper motor is existing As.
In the prior art, a kind of ball machine step failing out detecting method of CN201310320333.8 and device disclose a kind of ball machine and patrol Step failing out detecting method in boat (PTZ level, vertical rotation), for cloud platform rotation range without the feelings of zero crossing (datum mark) Condition.
But in the prior art, ball machine cloud platform rotation range inaccuracy can only be solved the problems, such as, without can solve due to step Step-out phenomenon into motor leads to the empty burnt problem of zoom lens.
Summary of the invention
The present invention provides a kind of method and device for adjusting Zoom camera precision, can only for solving in the prior art Solving ball machine cloud platform rotation range inaccuracy leads to the empty coke of zoom lens without can solve the step-out phenomenon due to stepper motor Problem.
The embodiment of the present invention provides a kind of method for adjusting Zoom camera precision, which comprises
After Zoom camera powers on, the physical base of the Zoom camera is obtained on schedule, and on schedule by the physical base It is determined as logic datum mark, wherein the physical base is the level catastrophe point of optocoupler in the Zoom camera, institute on schedule Stating logic datum mark is preset control origin;
It is subject to the logic datum mark, the camera lens by controlling the Zoom camera moves back and forth according to the step-length of setting It is dynamic, the logic datum mark is returned to, and judge whether the Zoom camera in the logic datum mark is step out of stepping motor State;
If it is determined that the Zoom camera is step out of stepping motor state in the logic datum mark, the stepping electricity is adjusted The working condition of machine;And the physical base for adjusting the camera lens of the Zoom camera to obtain the Zoom camera is on schedule, will obtain The physical base taken is updated to the logic datum mark on schedule.
In the embodiment of the present invention, determining step out of stepping motor state, by adjusting stepper motor working condition and The camera lens of the whole Zoom camera reacquires physical base on schedule, and updates the position of logic datum mark again, ensure that Under step out of stepping motor state, the empty burnt problem of adjustment camera lens guarantees the accuracy of camera lens shooting picture.
Further, described to judge whether the Zoom camera in the logic datum mark is step out of stepping motor shape State, comprising:
According to the optocoupler of the Zoom camera two opposite orientation location points of the logic datum mark electricity Level values judge whether the Zoom camera is step out of stepping motor state.
In the embodiment of the present invention, the level value of two opposite orientation location points due to optocoupler in physical base on schedule is It is opposite, if according to the optocoupler of the Zoom camera two opposite orientation location points of the logic datum mark electricity Level values be it is identical, then can determine Zoom camera be step out of stepping motor state.
Further, the camera lens of the adjustment Zoom camera is to obtain the physical standard of the Zoom camera Point, comprising:
Determine level value of the optocoupler in the logic datum mark of the Zoom camera, and with the edge preset step-length L The camera lens of the mobile Zoom camera of first direction, until the level value for obtaining the optocoupler of the Zoom camera occurs The location point N of variation;If moving the level value generation that the optocoupler of the Zoom camera has not been obtained along the first direction The location point of variation moves the camera lens of the Zoom camera in a second direction then with the step-length L;The second direction and institute It is opposite to state first direction;
If it is determined that the optocoupler of the Zoom camera is in n-th position level point when being moved to n-th location point Be worth it is different in the level value of the N-1 location point from the optocoupler of the Zoom camera, then using L=1/2L as step-length edge with The contrary direction that the N-1 location point is moved to the n-th location point is mobile, takes the photograph until finding the zoom The level value of the optocoupler of camera different n-th location point and the N-1 location point are returned using L=1/2L as step-length edge The step moved with the contrary direction for being moved to the n-th location point with the N-1 location point, until step-length L=1.
In the embodiment of the present invention, determine that physical base can more quickly determine physical base on schedule again using the above method On schedule, and the time that step-out is corrected can be reduced.
Further, described to judge whether the Zoom camera in the logic datum mark is step out of stepping motor state Before, further includes:
Judge that the Zoom camera is with preset temperature threshold according to the operating temperature of presently described Zoom camera No is low-temperature working state.
In the embodiment of the present invention, however, it is determined that Zoom camera is low-temperature working state, then it is assumed that Zoom camera loses The probability of step is larger, so determining the working condition of lower Zoom camera first.
Further, the working condition of the adjustment stepper motor, comprising:
The revolving speed of the stepper motor of the Zoom camera is reduced, and increases the electric current of the stepper motor, to increase The torque of the stepper motor and power.
In the embodiment of the present invention, increase on the one hand shifting that the torque of stepper motor can make stepper motor be able to drive camera lens It is dynamic, on the other hand, camera lens is prevented to be frozen under low-temperature condition.
The present invention also provides a kind of devices for adjusting Zoom camera precision, comprising:
Determination unit, for after Zoom camera powers on, obtaining the physical base of the Zoom camera on schedule, and by institute It states physical base and is determined as logic datum mark on schedule, wherein the physical base is optocoupler in the Zoom camera on schedule Level catastrophe point, the logic datum mark are preset control origin;
Judging unit, for being subject to the logic datum mark, by controlling the camera lens of the Zoom camera according to setting Fixed step-length moves back and forth, and returns to the logic datum mark, and judge the Zoom camera the logic datum mark whether For step out of stepping motor state;
Adjustment unit, be used for if it is determined that the Zoom camera the logic datum mark be step out of stepping motor state, Adjust the working condition of the stepper motor;And the camera lens of the Zoom camera is adjusted to obtain the object of the Zoom camera Datum mark is managed, the physical base that will acquire is updated to the logic datum mark on schedule.
In the embodiment of the present invention, determining step out of stepping motor state, by adjusting stepper motor working condition and The camera lens of the Zoom camera is adjusted to reacquire physical base on schedule, and updates the position of logic datum mark again, is guaranteed Under step out of stepping motor state, the empty burnt problem of adjustment camera lens guarantees the accuracy of camera lens shooting picture.
Further, the adjustment unit, is specifically used for:
According to the optocoupler of the Zoom camera two opposite orientation location points of the logic datum mark electricity Level values judge whether the Zoom camera is step out of stepping motor state.
Further, the adjustment unit, is specifically used for:
Determine level value of the optocoupler in the logic datum mark of the Zoom camera, and with the edge preset step-length L The camera lens of the mobile Zoom camera of first direction, until the level value for obtaining the optocoupler of the Zoom camera occurs The location point N of variation;If moving the level value generation that the optocoupler of the Zoom camera has not been obtained along the first direction The location point of variation moves the camera lens of the Zoom camera in a second direction then with the step-length L;The second direction and institute It is opposite to state first direction;
If it is determined that the optocoupler of the Zoom camera is in n-th position level point when being moved to n-th location point Be worth it is different in the level value of the N-1 location point from the optocoupler of the Zoom camera, then using L=1/2L as step-length edge with The contrary direction that the N-1 location point is moved to the n-th location point is mobile, takes the photograph until finding the zoom The level value of the optocoupler of camera different n-th location point and the N-1 location point are returned using L=1/2L as step-length edge The step moved with the contrary direction for being moved to the n-th location point with the N-1 location point, until step-length L=1.
Further, described device further include:
Low-temperature working state judging unit, for the operating temperature and preset temperature according to presently described Zoom camera Whether Zoom camera described in threshold decision is low-temperature working state.
Further, the adjustment unit, is specifically used for:
The revolving speed of the stepper motor of the Zoom camera is reduced, and increases the electric current of the stepper motor, to increase The torque of the stepper motor and power.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly introduced, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this For the those of ordinary skill in field, without any creative labor, it can also be obtained according to these attached drawings His attached drawing.
Fig. 1 is a kind of flow diagram of method for adjusting Zoom camera precision provided in an embodiment of the present invention;
Fig. 2 is the mobile schematic diagram of Zoom camera eyeglass provided in an embodiment of the present invention;
Fig. 3 is optocoupler level change schematic diagram provided in an embodiment of the present invention;
Fig. 4 is the mobile schematic diagram of control process control eyeglass provided in an embodiment of the present invention;
Fig. 5 is the schematic diagram of more new logic datum mark provided in an embodiment of the present invention;
Fig. 6 is that two points of step length changing methods provided in an embodiment of the present invention determine the method schematic diagram of physical base on schedule;
Fig. 7 is the flow diagram of the method for another adjustment Zoom camera precision provided in an embodiment of the present invention;
Fig. 8 is a kind of structural schematic diagram of device for adjusting Zoom camera precision provided in an embodiment of the present invention.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention make into It is described in detail to one step, it is clear that the described embodiments are only some of the embodiments of the present invention, rather than whole implementation Example.Based on the embodiments of the present invention, obtained by those of ordinary skill in the art without making creative efforts All other embodiment, shall fall within the protection scope of the present invention.
The present invention provides a kind of method for adjusting Zoom camera precision, as shown in Figure 1, comprising:
Step 101, after Zoom camera powers on, the physical base of the Zoom camera is obtained on schedule, and by the object Reason datum mark is determined as logic datum mark, wherein the physical base is the level of optocoupler in the Zoom camera on schedule Catastrophe point, the logic datum mark are preset control origin;Step 102, it is subject to the logic datum mark, passes through control institute The camera lens for stating Zoom camera is moved back and forth according to the step-length of setting, returns to the logic datum mark, and judge that the zoom is taken the photograph Whether camera is step out of stepping motor state in the logic datum mark;
Step 103, however, it is determined that the Zoom camera is step out of stepping motor state in the logic datum mark, adjusts institute State the working condition of stepper motor;And the camera lens of the Zoom camera is adjusted to obtain the physical standard of the Zoom camera Point, the physical base that will acquire are updated to the logic datum mark on schedule.
In a step 101, physical base is the level catastrophe point of optocoupler in Zoom camera on schedule, and Zoom camera is logical The movement of step motor control camera lens is crossed, and obtains the level value in the optocoupler for the location point being moved to.If getting level Trip point, it is determined that level jump point be physical base on schedule.
In a step 101, logic datum mark is preset control origin, and optionally, logic datum mark is that control program is true Fixed control origin.I.e. the point is set the origin in program by the control program of Zoom camera, to realize zoom camera The adjustment of the parameters of machine is adjusted and is calculated.
As shown in Fig. 2, X-axis is the moving direction of eyeglass in camera lens, and it is moved respectively to E, N, P, M, V location point, It determines the level value of the optocoupler of each location point, and determines that M point is set to level jump point, then using M point position as object Manage datum mark.
As shown in figure 3, in embodiments of the present invention, level value is expressed as high level for 1, and it is low level that level value, which is 0, by It is level jump point that high level, which becomes low level point,.
In embodiments of the present invention, after having determined physical base on schedule, the control program of Zoom camera is by determining object Datum mark is managed as logic datum mark, that is to say, that the control program of Zoom camera thinks logic datum mark and physical base on schedule It is overlapped.
In a step 102, after logic datum mark has been determined, it is also necessary to judge the camera lens of current zoom video camera flexible Whether the logic datum mark obtained after movement can occur stepping step-out.
In embodiments of the present invention, if there is no stepping step-out, program is controlled then according to the step of control program setting The long flexible focusing from logic datum mark moving lens;If it is determined that occur stepping step-out, then control program think camera lens be according to The step-length of program setting is controlled from the flexible focusing of logic datum mark moving lens, but due to stepping step-out, stepper motor Torque cannot drive camera lens normally to move, so will appear phenomenon out of focus.
Optionally, in a step 102, it is subject to logic datum mark, passes through the camera lens of control process control Zoom camera It is moved back and forth according to the step-length of control program setting to return to logic datum mark.
For example, the logic datum mark of control program at this time is also O, then zoom lens as shown in figure 4, physical base is O on schedule The initial position of eyeglass be the physical base corresponding lens structure position O on schedule.
It controls program and sends setting step-length to stepper motor, make stepper motor according to the mirror of setting step-length zoom lens motionless zoom lens Piece is moved back and forth, for example, extending the lens position in-position M of 5 step-lengths using logic datum mark O as starting point, then receiving The lens position for 5 step-lengths that contract returns to starting point O.
Think that eyeglass is moved back and forth on schedule to physics the corresponding lens structure position of O point from physical base in control program The corresponding lens structure position of datum mark O point, if there is no stepping step-out, the position of eyeglass be strictly from from physical base on schedule The corresponding lens structure position of O point, which moves back and forth, has arrived the physical base corresponding lens structure position of O point on schedule, if but occurring After stepping step-out, it is possible that control program sends the instruction of 5 step-lengths of elongation, the locations of structures of eyeglass to stepper motor The N point being only moved in Fig. 4, control program send the instruction for shrinking 5 step-lengths, the locations of structures of eyeglass to stepper motor again It is moved to P point.
After control program revert to starting point, the more position of new logic datum mark, for example, logic datum mark can in Fig. 4 Still O point, logic datum mark it may also can become P point from O point.
In a step 102, after the logic datum mark for returning to control program, it is necessary to determine zoom lens in logic benchmark Whether the corresponding lens structure position of point is stepping desynchronizing state.
Optionally, in embodiments of the present invention, pass through determination two opposite orientation location points of updated logic datum mark Level value determine whether Zoom camera is step out of stepping motor state.
For example, as shown in figure 5, OO point be updated logic datum mark, the direction of OO point to A point is set to first party To then OO point to the direction of B point is second direction, if the level of A point is identical as the level of B point, i.e., is all high level 1 or all Low level 0, then it is assumed that updated logic datum mark be not physical base on schedule, it is determined that the stepper motor stepping of zoom lens Step-out.
Optionally, judge that Zoom camera before whether logic datum mark is stepping desynchronizing state, also wraps in step 102 It includes:
Judge that Zoom camera is low temperature work according to the operating temperature of current zoom video camera and preset temperature threshold Make state.
In embodiments of the present invention, if the operating temperature of Zoom camera is in low-temperature working state, Zoom camera hair The probability of raw stepping step-out is higher, so if the operating temperature of Zoom camera is not in low-temperature working state, it is believed that It is not necessary to determine whether stepping step-out occur.
In embodiments of the present invention, default problem threshold value is Tα, it is T that current work, which does temperature,E, optionally, work as TE<Tα When, determine that Zoom camera is low-temperature working state.
It is optional then in the embodiment of the present invention, can also determine TE-TαDetermine that Zoom camera is low-temperature working when < ε State, it is the tolerance of trigger condition that wherein ε, which is adjustable parameter, can be according to actual conditions such as video camera difference, working environment differences It is adjusted, prevents false triggering.
In step 103, determine that Zoom camera after logic datum mark is step out of stepping motor state, illustrates at this time The torque of stepper motor needs to adjust, and needs to reacquire physical base on schedule, so as to accurate more new logic datum mark.
Optionally, in embodiments of the present invention, the revolving speed of the stepper motor of the Zoom camera is reduced, and increase institute The electric current of stepper motor is stated, so that the torque of the stepper motor and power increase, to realize adjusted turn of stepper motor Square is able to drive the normal stepping of camera lens.
Optionally, in embodiments of the present invention, the torque that can first adjust stepper motor, then obtains physical standard again Point, more new logic datum mark can also first obtain physical base on schedule, then more after new logic datum mark, then adjust stepper motor Torque, be illustrated herein with two embodiments.
Embodiment one:
Zoom camera is being determined after logic datum mark is step out of stepping motor state, with current logic benchmark correspondence Lens structure position be starting point, by the mobile eyeglass of the stepper motor of Zoom camera, and determine each position in moving process Level value a little is set, after determining level jump point, confirms that the point is new logic datum mark, and the torque of stepper motor is increased Add, can realize normal focusing to control the control camera lens movement of program postorder.
Embodiment two
Determine Zoom camera logic datum mark be step out of stepping motor state after, first adjustment stepper motor turn The torque of square, i.e. increasing stepper motor passes through zoom then using the corresponding lens structure position of current logic benchmark as starting point The mobile eyeglass of the stepper motor of video camera, and determine the level value of each location point in moving process, determining level jump point Afterwards, confirm that the point is new logic datum mark, can realize normal focusing to control the control camera lens movement of program postorder.
In embodiments of the present invention, the method for determining physical standard is determined according to the level change of optocoupler, Optionally, in embodiments of the present invention, a kind of variable step is also provided and determines the method for physical base on schedule, specific as follows:
Determine level value of the optocoupler in logic datum mark of Zoom camera, and with preset step-length L along first direction The camera lens of mobile Zoom camera, until obtaining the changed location point N of level value of the optocoupler of Zoom camera;If The changed location point of level value that the optocoupler of Zoom camera has not been obtained is moved along first direction, then with the edge step-length L The camera lens of the mobile Zoom camera of second direction;Second direction is opposite with first direction;
If it is determined that when being moved to n-th location point, the optocoupler of Zoom camera n-th location point level value with The optocoupler of Zoom camera is different in the level value of the N-1 location point, then using L=L/m as step-length edge and the N-1 position The contrary direction movement for being a little moved to n-th location point is set, until finding the level of the optocoupler of Zoom camera It is worth different n-th location point and the N-1 location point, returns and moved using L=L/m as step-length edge with the N-1 location point The step mobile to the contrary direction of n-th location point, until step-length L=1.
In the above-described embodiments, the size of step-length when the value of m determines search next time, m is bigger, the accuracy of search Higher, m is smaller, and the time of search is shorter, m can according to the actual conditions such as difference, the working environment difference of Zoom camera into Row adjustment.
It optionally, in embodiments of the present invention, is the above method under 2 specific explanations with m.
As shown in fig. 6, this method adjusts the torque of stepper motor first, enable stepper motor according to control program to Fixed step-length instruction control camera lens is mobile;As m=2, the above method is that dichotomy variable step determines physical base on schedule, first really It is scheduled on the level of the optocoupler of current logic datum mark, it is assumed that current logic datum mark is p, determines the optocoupler of current p point The level of device is moved to q for after high level, control process control stepper motor is 8 mobile to first direction with step-length first Point, then the direction of p-q is first direction;Determine the level value of the optocoupler of q point, however, it is determined that the level of the optocoupler of q point Value is low level, then illustrates that physical logic point between p point and q point, is then moved with the step-length of half to second direction, i.e., It is mobile with the direction of the point to q to p of step-length 4, until being moved to n point;
Determine the level value of the optocoupler of n point, however, it is determined that the level value of the optocoupler of q point is high level, it is determined that Physical logic point is then mobile to first direction with the step-length of half between n and q, i.e., with step-length 2 to the direction of q point It is mobile, it is moved to m point;
Determine the level value of the optocoupler of m point, however, it is determined that the level value of the optocoupler of m point is low level, it is determined that Physical logic point is then mobile to second direction with the step-length of half between m and q, i.e., with step-length 1 to the direction of q point It is mobile, it is moved to s point, it is determined that the logic datum mark for controlling program on schedule, is then updated to s point for physical base by s point again.
In embodiments of the present invention, however, it is determined that q point is high level, then illustrates that physical base is moved in q point to first direction on schedule Position after dynamic is then continued with setting step-length to first direction movement.
After step 103, after having updated the logic datum mark of control program again, after starting at this time due to video camera certainly The raising of body temperature, in addition the heat that peripheral module operation generates, so that Current Temperatures are in the specified stable model of camera lens work In enclosing, so camera lens is not in the case where freezing, so that the speed of stepper motor and driving current are restored to normally at this time State.
For the ease of the understanding of those skilled in the art, herein for example, the present invention provides a kind of adjustment zoom camera The method of machine precision, specific as shown in Figure 7:
Step 701, Zoom camera powers on;
Step 702, by the flexible of camera lens, the level value of optocoupler at various locations is determined, and true according to level value Earnest manages datum mark, and physical base is set as on schedule currently to control the logic datum mark of program;
Step 703, determine whether the difference of the temperature of current zoom video camera and the temperature threshold of setting is less than adjustable parameter, If so, thening follow the steps 705;It is no to then follow the steps 704;
Step 704, Zoom camera self-test is completed;
Step 705, by controlling program moving lens back and forth movement more new logic datum mark;
Step 706, determine the optocoupler of Zoom camera in the electricity of two opposite orientation location points of logic datum mark Whether level values are equal, if equal, execute step 707;It is no to then follow the steps 704;
Step 707, the revolving speed for reducing stepper motor increases the electric current of stepper motor;
Step 708, physical base is reacquired on schedule in the method for variable step-size search, and determining that physical base resets afterwards on schedule Logic datum mark;
Step 709, the revolving speed for increasing stepper motor reduces the electric current of stepper motor, executes step 704.
Based on same design, the embodiment of the present invention also provides a kind of device for adjusting Zoom camera precision, such as Fig. 8 institute Show, comprising:
Determination unit 801, for after Zoom camera powers on, obtaining the physical base of the Zoom camera on schedule, and The physical base is determined as logic datum mark on schedule, wherein the physical base is optical coupler in the Zoom camera on schedule The level catastrophe point of part, the logic datum mark are preset control origin;
Judging unit 802, for being subject to the logic datum mark, by control the camera lens of the Zoom camera according to The step-length of setting moves back and forth, and returns to the logic datum mark, and judge that the Zoom camera is in the logic datum mark No is step out of stepping motor state;
Adjustment unit 803, be used for if it is determined that the Zoom camera the logic datum mark be step out of stepping motor shape State adjusts the working condition of the stepper motor;And the camera lens of the Zoom camera is adjusted to obtain the Zoom camera Physical base on schedule, the physical base that will acquire is updated to the logic datum mark on schedule.
Further, the adjustment unit 803, is specifically used for:
According to the optocoupler of the Zoom camera two opposite orientation location points of the logic datum mark electricity Level values determine whether the Zoom camera is step out of stepping motor state.
Further, the adjustment unit 803, is specifically used for:
Determine level value of the optocoupler in the logic datum mark of the Zoom camera, and with the edge preset step-length L The camera lens of the mobile Zoom camera of first direction, until the level value for obtaining the optocoupler of the Zoom camera occurs The location point N of variation;If moving the level value generation that the optocoupler of the Zoom camera has not been obtained along the first direction The location point of variation moves the camera lens of the Zoom camera in a second direction then with the step-length L;The second direction and institute It is opposite to state first direction;
If it is determined that the optocoupler of the Zoom camera is in n-th position level point when being moved to n-th location point Be worth it is different in the level value of the N-1 location point from the optocoupler of the Zoom camera, then using L=1/2L as step-length edge with The contrary direction that the N-1 location point is moved to the n-th location point is mobile, takes the photograph until finding the zoom The level value of the optocoupler of camera different n-th location point and the N-1 location point are returned using L=1/2L as step-length edge The step moved with the contrary direction for being moved to the n-th location point with the N-1 location point, until step-length L=1.
Further, described device further include:
Low-temperature working state judging unit 804, for according to the operating temperature of presently described Zoom camera with it is preset Temperature threshold judges whether the Zoom camera is low-temperature working state.
Further, the adjustment unit 803, is specifically used for:
The revolving speed of the stepper motor of the Zoom camera is reduced, and increases the electric current of the stepper motor, to increase The torque of the stepper motor and power.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (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 (8)

1. a kind of method for adjusting Zoom camera precision, which is characterized in that the described method includes:
After Zoom camera powers on, the physical base of the Zoom camera is obtained on schedule, and the physical base is arranged on schedule For logic datum mark, wherein the physical base is the level catastrophe point of optocoupler in the Zoom camera on schedule, described to patrol Collecting datum mark is preset control origin;
It is subject to the logic datum mark, the camera lens by controlling the Zoom camera is moved back and forth according to the step-length of setting, The logic datum mark is returned, and judges whether the Zoom camera in the logic datum mark is step out of stepping motor shape State;
If it is determined that the Zoom camera is step out of stepping motor state in the logic datum mark, the stepper motor is adjusted Working condition;And the physical base for adjusting the camera lens of the Zoom camera to obtain the Zoom camera is on schedule, will acquire The physical base is updated to the logic datum mark on schedule;
It is described to judge the Zoom camera before whether the logic datum mark is step out of stepping motor state, further includes:
According to the operating temperature of presently described Zoom camera and preset temperature threshold judge the Zoom camera whether be Low-temperature working state.
2. the method according to claim 1, wherein the judgement Zoom camera is in the logic benchmark Whether point is step out of stepping motor state, comprising:
According to the optocoupler of the Zoom camera two opposite orientation location points of the logic datum mark level value Judge whether the Zoom camera is step out of stepping motor state.
3. the method according to claim 1, wherein the camera lens of the adjustment Zoom camera is to obtain State the physical base of Zoom camera on schedule, comprising:
Determine level value of the optocoupler in the logic datum mark of the Zoom camera, and with preset step-length L along first The camera lens of the mobile Zoom camera in direction, until the level value for obtaining the optocoupler of the Zoom camera changes Location point N;It changes if being moved along the first direction and the level value of the optocoupler of the Zoom camera having not been obtained Location point, then move the camera lens of the Zoom camera in a second direction with the step-length L;The second direction and described the One is contrary;
If it is determined that when being moved to n-th location point, the optocoupler of the Zoom camera n-th location point level value with The optocoupler of the Zoom camera is different in the level value of the N-1 location point, then using L=1/2L be step-length edge with it is described The contrary direction that the N-1 location point is moved to the n-th location point is mobile, until finding the Zoom camera Optocoupler the different n-th location point and the N-1 location point of level value, return using L=1/2L be step-length edge with The N-1 location point is moved to the step of the contrary direction movement of the n-th location point, until step-length L= 1。
4. method according to any one of claims 1 to 3, which is characterized in that the work of the adjustment stepper motor State, comprising:
The revolving speed of the stepper motor of the Zoom camera is reduced, and increases the electric current of the stepper motor, it is described to increase The torque of stepper motor and power.
5. a kind of device for adjusting Zoom camera precision characterized by comprising
Determination unit, for after Zoom camera powers on, obtaining the physical base of the Zoom camera on schedule, and by the object Reason datum mark is determined as logic datum mark, wherein the physical base is the level of optocoupler in the Zoom camera on schedule Catastrophe point, the logic datum mark are preset control origin;
Judging unit is used to be subject to the logic datum mark, by controlling the camera lens of the Zoom camera according to setting Step-length moves back and forth, and returns to the logic datum mark, and judges whether the Zoom camera in the logic datum mark is step Into motor desynchronizing state;
Adjustment unit, be used for if it is determined that the Zoom camera the logic datum mark be step out of stepping motor state, adjustment The working condition of the stepper motor;And the camera lens of the Zoom camera is adjusted to obtain the physical base of the Zoom camera On schedule, the physical base that will acquire is updated to the logic datum mark on schedule;
Described device further include:
Low-temperature working state judging unit, for according to the operating temperature of presently described Zoom camera and preset temperature threshold Judge whether the Zoom camera is low-temperature working state.
6. device according to claim 5, which is characterized in that the adjustment unit is specifically used for:
According to the optocoupler of the Zoom camera two opposite orientation location points of the logic datum mark level value Judge whether the Zoom camera is step out of stepping motor state.
7. device according to claim 5, which is characterized in that the adjustment unit is specifically used for:
Determine level value of the optocoupler in the logic datum mark of the Zoom camera, and with preset step-length L along first The camera lens of the mobile Zoom camera in direction, until the level value for obtaining the optocoupler of the Zoom camera changes Location point N;It changes if being moved along the first direction and the level value of the optocoupler of the Zoom camera having not been obtained Location point, then move the camera lens of the Zoom camera in a second direction with the step-length L;The second direction and described the One is contrary;
If it is determined that when being moved to n-th location point, the optocoupler of the Zoom camera n-th location point level value with The optocoupler of the Zoom camera is different in the level value of the N-1 location point, then using L=1/2L be step-length edge with it is described The contrary direction that the N-1 location point is moved to the n-th location point is mobile, until finding the Zoom camera Optocoupler the different n-th location point and the N-1 location point of level value, return using L=1/2L be step-length edge with The N-1 location point is moved to the step of the contrary direction movement of the n-th location point, until step-length L= 1。
8. according to the described in any item devices of claim 5 to 7, which is characterized in that the adjustment unit is specifically used for:
The revolving speed of the stepper motor of the Zoom camera is reduced, and increases the electric current of the stepper motor, it is described to increase The torque of stepper motor and power.
CN201710179136.7A 2017-03-23 2017-03-23 A kind of method and device adjusting Zoom camera precision Active CN107105132B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710179136.7A CN107105132B (en) 2017-03-23 2017-03-23 A kind of method and device adjusting Zoom camera precision

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710179136.7A CN107105132B (en) 2017-03-23 2017-03-23 A kind of method and device adjusting Zoom camera precision

Publications (2)

Publication Number Publication Date
CN107105132A CN107105132A (en) 2017-08-29
CN107105132B true CN107105132B (en) 2019-09-17

Family

ID=59675954

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710179136.7A Active CN107105132B (en) 2017-03-23 2017-03-23 A kind of method and device adjusting Zoom camera precision

Country Status (1)

Country Link
CN (1) CN107105132B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3511812B1 (en) * 2018-01-15 2021-06-23 Canon Kabushiki Kaisha Electronic apparatus, method for controlling same, and program
CN108200344A (en) * 2018-01-23 2018-06-22 江苏冠达通电子科技有限公司 The adjustment Zooming method of video camera
CN110958336A (en) * 2019-11-20 2020-04-03 维沃移动通信有限公司 Method and electronic device for controlling motor in telescopic CCM
CN110943655B (en) * 2019-12-13 2021-07-27 苏州智感电子科技有限公司 Self-checking method and system for stepping motor
CN111030525B (en) * 2019-12-13 2021-09-24 苏州智感电子科技有限公司 Motor step-out compensation method and device
CN113485465B (en) * 2021-06-01 2024-08-02 浙江大华技术股份有限公司 Camera holder control method, device, equipment and storage medium
CN113411568B (en) * 2021-06-10 2022-06-14 浙江大华技术股份有限公司 Motor step-out detection method and device, storage medium and electronic device
CN114640792B (en) * 2022-02-09 2024-04-05 浙江大华技术股份有限公司 Position adjustment method and device, electronic equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11331648A (en) * 1998-05-20 1999-11-30 Olympus Optical Co Ltd Electronic image pickup device
CN101604887A (en) * 2009-07-06 2009-12-16 奇瑞汽车股份有限公司 A kind of calibrating motor position sensor system and method
CN103399582A (en) * 2013-07-25 2013-11-20 浙江宇视科技有限公司 Out of step detection method and device of ball machine
CN103546691A (en) * 2013-10-31 2014-01-29 浙江宇视科技有限公司 Method and device for self-regulation of locking force of dome camera
CN104535500A (en) * 2014-12-19 2015-04-22 中国科学院上海光学精密机械研究所 System parameter calibration method for imaging ellipsometer
CN105680665A (en) * 2016-03-22 2016-06-15 佛山市南海区欧谱曼迪科技有限责任公司 System for eliminating stepper motor accumulative error and control method therefor
CN205596047U (en) * 2016-04-28 2016-09-21 深圳市保凌影像科技有限公司 Stepping motor out -of -step preventing device for high -speed pan/tilt dome camera
CN106341649A (en) * 2015-07-07 2017-01-18 杭州海康威视数字技术股份有限公司 Cradle head control method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11331648A (en) * 1998-05-20 1999-11-30 Olympus Optical Co Ltd Electronic image pickup device
CN101604887A (en) * 2009-07-06 2009-12-16 奇瑞汽车股份有限公司 A kind of calibrating motor position sensor system and method
CN103399582A (en) * 2013-07-25 2013-11-20 浙江宇视科技有限公司 Out of step detection method and device of ball machine
CN103546691A (en) * 2013-10-31 2014-01-29 浙江宇视科技有限公司 Method and device for self-regulation of locking force of dome camera
CN104535500A (en) * 2014-12-19 2015-04-22 中国科学院上海光学精密机械研究所 System parameter calibration method for imaging ellipsometer
CN106341649A (en) * 2015-07-07 2017-01-18 杭州海康威视数字技术股份有限公司 Cradle head control method and device
CN105680665A (en) * 2016-03-22 2016-06-15 佛山市南海区欧谱曼迪科技有限责任公司 System for eliminating stepper motor accumulative error and control method therefor
CN205596047U (en) * 2016-04-28 2016-09-21 深圳市保凌影像科技有限公司 Stepping motor out -of -step preventing device for high -speed pan/tilt dome camera

Also Published As

Publication number Publication date
CN107105132A (en) 2017-08-29

Similar Documents

Publication Publication Date Title
CN107105132B (en) A kind of method and device adjusting Zoom camera precision
CN111198561B (en) Motion control method and device for target tracking, computer equipment and storage medium
US20190342503A1 (en) Method for automatic focus and ptz camera
CN104184932A (en) Spherical camera control method and device thereof
CN103728813B (en) A kind of method of synchronizing focus during zoom
CN105446497B (en) A kind of information processing method and electronic equipment
CN105594190B (en) Without blurred picture camera system
CN110392200B (en) Method and apparatus for auto-focusing
CN105516589A (en) Intelligent exposure method and system based on face recognition
CN105955328B (en) The method for control speed and device of cradle head camera
CN105635555A (en) Camera focusing control method, image pick-up device and wearable intelligent terminal
CN104580917A (en) Automatic fast focusing method and automatic fast focusing device
CN110248082A (en) A kind of method and device for planning camera motion controlling curve
CN110771133B (en) Camera lens adjusting method and device, control equipment and control system
CN206505243U (en) Shade and the camera lens module with it
CN113485465B (en) Camera holder control method, device, equipment and storage medium
CN114556879A (en) Time delay detection method, device, system, movable platform and storage medium
CN111586357A (en) Monitoring device and method for automatic focusing of multiple monitoring cameras
CN105245781A (en) Focusing method of simple electric lens
CN112433333A (en) Synchronous parfocal error compensation method for large-zoom-ratio continuous zooming infrared lens
CN112399086B (en) Motion control method and device, storage medium and electronic device
CN108254995A (en) A kind of big zoom camera lens Atomatic focusing method and system
CN110832837B (en) Camera lens adjusting method and device, control equipment and control system
CN204697170U (en) A kind of autofocus system and video monitoring equipment
CN113014802A (en) Control method and device of pan-tilt camera and computer equipment

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