WO2015154676A1 - 一种对摄像机进行温度补偿的方法和装置 - Google Patents

一种对摄像机进行温度补偿的方法和装置 Download PDF

Info

Publication number
WO2015154676A1
WO2015154676A1 PCT/CN2015/076095 CN2015076095W WO2015154676A1 WO 2015154676 A1 WO2015154676 A1 WO 2015154676A1 CN 2015076095 W CN2015076095 W CN 2015076095W WO 2015154676 A1 WO2015154676 A1 WO 2015154676A1
Authority
WO
WIPO (PCT)
Prior art keywords
lens
information
motor
temperature
current
Prior art date
Application number
PCT/CN2015/076095
Other languages
English (en)
French (fr)
Inventor
刘园庆
赵光耀
王静
李凯
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2015154676A1 publication Critical patent/WO2015154676A1/zh
Priority to US15/290,785 priority Critical patent/US10048461B2/en

Links

Images

Classifications

    • GPHYSICS
    • G02OPTICS
    • G02BOPTICAL ELEMENTS, SYSTEMS OR APPARATUS
    • G02B7/00Mountings, adjusting means, or light-tight connections, for optical elements
    • G02B7/02Mountings, adjusting means, or light-tight connections, for optical elements for lenses
    • G02B7/028Mountings, adjusting means, or light-tight connections, for optical elements for lenses with means for compensating for changes in temperature or for controlling the temperature; thermal stabilisation
    • GPHYSICS
    • G02OPTICS
    • G02BOPTICAL ELEMENTS, SYSTEMS OR APPARATUS
    • G02B15/00Optical objectives with means for varying the magnification
    • G02B15/14Optical objectives with means for varying the magnification by axial movement of one or more lenses or groups of lenses relative to the image plane for continuously varying the equivalent focal length of the objective
    • G02B15/142Optical objectives with means for varying the magnification by axial movement of one or more lenses or groups of lenses relative to the image plane for continuously varying the equivalent focal length of the objective having two groups only
    • G02B15/1421Optical objectives with means for varying the magnification by axial movement of one or more lenses or groups of lenses relative to the image plane for continuously varying the equivalent focal length of the objective having two groups only the first group being positive
    • GPHYSICS
    • G02OPTICS
    • G02BOPTICAL ELEMENTS, SYSTEMS OR APPARATUS
    • G02B7/00Mountings, adjusting means, or light-tight connections, for optical elements
    • G02B7/02Mountings, adjusting means, or light-tight connections, for optical elements for lenses
    • G02B7/04Mountings, adjusting means, or light-tight connections, for optical elements for lenses with mechanism for focusing or varying magnification
    • GPHYSICS
    • G02OPTICS
    • G02BOPTICAL ELEMENTS, SYSTEMS OR APPARATUS
    • G02B7/00Mountings, adjusting means, or light-tight connections, for optical elements
    • G02B7/02Mountings, adjusting means, or light-tight connections, for optical elements for lenses
    • G02B7/04Mountings, adjusting means, or light-tight connections, for optical elements for lenses with mechanism for focusing or varying magnification
    • G02B7/10Mountings, adjusting means, or light-tight connections, for optical elements for lenses with mechanism for focusing or varying magnification by relative axial movement of several lenses, e.g. of varifocal objective lens
    • G02B7/102Mountings, adjusting means, or light-tight connections, for optical elements for lenses with mechanism for focusing or varying magnification by relative axial movement of several lenses, e.g. of varifocal objective lens controlled by a microcomputer
    • 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/62Control of parameters via user interfaces
    • 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
    • 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/69Control of means for changing angle of the field of view, e.g. optical zoom objectives or electronic zooming

Definitions

  • the present invention relates to the field of image processing technologies, and in particular, to a method and apparatus for temperature compensation of a camera.
  • the operating temperature will vary depending on the environment in which the camera is installed. In addition, the length of time the camera works can also cause changes in the internal temperature of the camera.
  • the change in camera temperature affects the imaging quality of the optical system. Generally speaking, this effect is mainly reflected in three aspects: (1) the change of the refractive index of the medium caused by the temperature change; (2) the change of the radius of curvature and the thickness of the center of the refractive surface of the optical element caused by the temperature change; (3) the temperature change The variation in spacing between optical components in an optical system. If the temperature-induced changes are not properly compensated, it will have a large impact on the image quality. Therefore, how to compensate the temperature of the camera becomes an urgent problem to be solved.
  • the inventors have found that in the prior art, when temperature compensation is performed on the focus lens, it is necessary to calculate based on the absolute distance between the focus lens and the CCD.
  • the focus lens and the CCD are packaged inside the lens barrel, the distance is not suitable for measurement and the accuracy is high, so the implementation is not high.
  • the present invention discloses a method and a device for temperature compensation of a camera, which can compensate for changes in imaging quality caused by temperature changes of the camera by a simple method, and can be highly implemented.
  • a method for temperature compensation of a camera comprising:
  • the corresponding lens is moved to the target moving position according to the obtained lens target moving position.
  • the embodiment of the present invention further has a first possibility, wherein the obtaining the lens target moving position according to the position information of the motor that controls the movement of the camera lens and the temperature information comprises:
  • a lens target moving position is obtained based on the lens current position information and the lens displacement compensation value.
  • the embodiment of the present invention further has a second possibility, wherein the position information and the temperature information of the motor according to the movement of the camera lens are controlled.
  • Obtaining lens displacement compensation values includes:
  • the lens displacement compensation value is obtained based on the lens current position information obtained by controlling the position information of the motor in which the lens is moved, and the temperature information.
  • the embodiment of the present invention further has a third possibility, wherein the current position information of the lens obtained according to the position information of the motor that controls the movement of the lens And obtaining, by the temperature information, a lens displacement compensation value includes:
  • a lens displacement compensation value is obtained according to the correspondence between the temperature information, the current position information of the lens, and the temperature information stored in advance, the lens position information, and the lens displacement compensation value.
  • the embodiment of the present invention further has a fourth possibility, wherein the position information and the temperature information of the motor according to the movement of the control camera lens Obtaining lens displacement compensation values includes:
  • the information, the current zoom factor information, and the current object distance information obtain a focus lens displacement compensation value.
  • the embodiment of the present invention further has a fifth possibility, wherein the current zoom multiple according to the temperature information
  • the zoom lens displacement compensation values obtained include:
  • the zoom lens displacement compensation value is obtained according to the correspondence relationship between the temperature information, the current zoom magnification information, and the pre-stored temperature information, the zoom magnification information, and the zoom lens displacement compensation value.
  • the embodiment of the present invention further has a sixth possibility, wherein the position information of the motor according to the movement of the control focus lens, the current The zoom magnification information obtains the current object distance information and obtains the focus lens displacement compensation value according to the temperature information, the current zoom multiple information, and the current object distance information, including:
  • an apparatus for temperature compensation of a camera comprising:
  • a temperature collecting unit configured to obtain temperature information of a lens of the camera by using a temperature sensor
  • a processing unit configured to obtain a lens target moving position according to position information of the motor that controls movement of the camera lens and the temperature information;
  • control unit configured to control the corresponding lens to move to the target moving position according to the obtained lens target moving position.
  • the embodiment of the present invention further has a seventh possibility, wherein the processing unit includes:
  • a current position information obtaining unit for obtaining a position based on position information of a motor that controls movement of the lens Mirror current position information
  • a displacement compensation value obtaining unit configured to obtain a lens displacement compensation value according to the position information of the motor that controls the movement of the camera lens, and the temperature information;
  • a target moving position obtaining unit configured to obtain a lens target moving position according to the lens current position information and the lens displacement compensation value.
  • the embodiment of the present invention further has an eighth possibility, wherein the displacement compensation value obtaining unit includes:
  • the first displacement compensation value obtaining unit is configured to obtain a lens displacement compensation value according to the lens current position information obtained by controlling the position information of the motor that moves the lens, and the temperature information.
  • the embodiment of the present invention further has a ninth possibility, wherein the displacement compensation value obtaining unit includes:
  • a zoom magnification information obtaining unit configured to obtain current zoom magnification information according to position information of a motor that controls movement of the zoom lens
  • a zoom lens displacement compensation value obtaining unit configured to obtain a zoom lens displacement compensation value according to the temperature information and the current zoom magnification information; and/or a focus lens displacement compensation value obtaining unit for driving the motor according to the focus lens movement
  • the position information, the current zoom factor information obtains current object distance information, and obtains a focus lens displacement compensation value according to the temperature information, the current zoom factor information, and the current object distance information.
  • a camera comprising a lens, a focus lens, a zoom lens, a temperature sensor, a processor, and a motor driver, wherein:
  • the temperature sensor is configured to obtain temperature information of a lens of the camera
  • the processor is configured to determine position information of the motor according to the movement of the camera lens and the temperature Degree information obtains a lens target moving position;
  • the motor driver is configured to control the corresponding lens to move to the target moving position according to the obtained lens target moving position.
  • the embodiment of the present invention further has a tenth possibility, wherein the processor is specifically configured to:
  • the value obtains the lens target moving position.
  • the embodiment of the present invention further has an eleventh possibility, wherein the processor is specifically configured to:
  • the lens displacement compensation value is obtained based on the lens current position information obtained by controlling the position information of the motor in which the lens is moved, and the temperature information.
  • the embodiment of the present invention further has a twelfth possible, wherein the processor is specifically configured to:
  • the current zoom factor information obtains current object distance information and obtains a focus lens displacement compensation value according to the temperature information, the current zoom factor information, and the current object distance information.
  • An advantageous aspect of the embodiment of the present invention is that, in the method for temperature compensation of a camera provided by the embodiment of the present invention, the position information of the motor that controls the movement of the camera lens and the temperature information are used to obtain the lens target moving position. And control the corresponding lens to move to the corresponding Position compensation, which can effectively compensate for changes in imaging quality caused by temperature changes. Since the technical solution does not rely on the position information of the lens which is difficult to obtain with respect to the image sensor, but the position information and the temperature information of the motor which are relatively easy to obtain are used to obtain the lens target moving position, the method is easy to implement and high in implementability.
  • FIG. 1 is a schematic diagram of a camera according to an embodiment of the present invention.
  • FIG. 2 is a schematic diagram of an apparatus for performing temperature compensation on a camera according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of still another embodiment of a device for performing temperature compensation on a camera according to an embodiment of the present disclosure
  • FIG. 4 is a schematic diagram of a first embodiment of a method for temperature compensation of a camera according to an embodiment of the present invention
  • FIG. 5 is a schematic diagram of a second embodiment of a method for temperature compensation of a camera according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of a third embodiment of a method for temperature compensation of a camera according to an embodiment of the present invention.
  • FIG. 7 is a schematic diagram showing the relationship between the distance between the zoom lens and the imaging surface and the zoom magnification
  • FIG. 8 is a schematic diagram showing the relationship between the distance between the focusing lens and the imaging surface and the object distance mapping under a certain zoom magnification
  • FIG. 9 is a schematic diagram of a fourth embodiment of a method for temperature compensation of a camera according to an embodiment of the present invention.
  • FIG. 10 is a schematic diagram of correspondence between temperature information, zoom magnification information, object distance information, and focus lens displacement compensation value according to an embodiment of the present invention.
  • an embodiment of the present invention provides a method and apparatus for temperature compensation of a camera, which can compensate for changes in imaging quality caused by temperature changes of the camera by a simple method, and has high implementability.
  • FIG. 1 is a schematic diagram of a camera according to an embodiment of the present invention.
  • the camera 100 provided by the present invention includes a zoom lens 101 , a focus lens 102 , an aperture 103 , an image sensor 104 , a temperature sensor 105 , a processor 106 , a motor driver 107 , and a zoom lens 101 as shown in FIG. 1 .
  • the motor driver 107 is used to drive the motor to control the corresponding lens or aperture movement. among them:
  • the temperature sensor 105 is configured to obtain temperature information of a lens of the camera.
  • the processor 106 is configured to obtain a lens target moving position according to position information of the motor that controls movement of the camera lens and the temperature information.
  • the motor driver 107 is configured to control the corresponding lens to move to the target moving position according to the obtained lens target moving position.
  • the temperature information measured by the temperature sensor may be the current temperature of the lens or the temperature of the circuit board on the lens.
  • the lens temperature can be obtained by the correspondence between the board temperature and the lens temperature. If the temperature of the previous state of the lens is recorded, the temperature information collected here may also be the amount of temperature change. It can be understood by those skilled in the art that as long as the magnitude of the lens temperature information can be reflected, it can be collected as temperature information, which is not limited herein.
  • the processor is specifically configured to: obtain current lens position information according to position information of a motor that controls movement of the camera lens; obtain a lens displacement compensation value according to position information of the motor that controls movement of the camera lens, and the temperature information; The lens current position information and the lens displacement compensation value obtain a lens target moving position.
  • the processor is configured to obtain current position information of the focus lens according to position information of a motor that controls movement of the focus lens; and/or obtain current current of the zoom lens according to position information of a motor that controls movement of the zoom lens location information.
  • the processor is specifically configured to: obtain a lens displacement compensation value according to the lens current position information obtained by controlling position information of the motor that moves the lens, and the temperature information.
  • the obtaining the lens displacement compensation value according to the temperature information and the current position information of the lens may specifically include: according to the temperature information, the current position information of the lens, and pre-stored temperature information, lens position information, and lens displacement compensation value. The correspondence between the lenses obtains the lens displacement compensation value. It can be understood by those skilled in the art that, in another possible implementation manner, after the lens current position information is obtained according to the position information of the motor that controls the movement of the lens, the temperature information and the current position information of the lens may also be used according to the temperature information. Directly obtain the lens target moving position.
  • the lens can be a focus lens and/or a zoom lens.
  • the processor obtains the lens target moving position according to the position information of the motor that controls the movement of the camera lens and the temperature information, and may include: according to the position of the motor that controls the movement of the focus lens Obtaining a focus lens current position information according to the information; obtaining a focus lens displacement compensation value according to the correspondence between the temperature information, the focus lens current position information, and the pre-stored temperature information, the focus lens position information, and the focus lens displacement compensation value; A focus lens target moving position is obtained based on the focus lens current position information and the lens shift compensation value.
  • the processor obtaining the lens target moving position according to the position information of the motor that controls the movement of the camera lens and the temperature information may include: obtaining a zoom lens according to position information of the motor that controls movement of the zoom lens Current position information; according to the temperature information, the zoom lens current position information, and pre-stored temperature information, zoom lens position A correspondence relationship between the information and the zoom lens displacement compensation value obtains a zoom lens displacement compensation value; and the zoom lens target moving position is obtained according to the zoom lens current position information and the lens displacement compensation value.
  • the processor is specifically configured to: obtain current zoom multiple information according to position information of a motor that controls movement of the zoom lens; and obtain zoom lens displacement according to the temperature information and the current zoom multiple information a compensation value, and/or obtaining current object distance information according to position information of the motor that controls the movement of the focus lens, and obtaining the current object distance information according to the temperature information, the current zoom factor information, and the current object distance information Focus lens displacement compensation value.
  • the zoom lens is used to map the distance of the zoom lens from the imaging surface, and the distance of the focus lens from the imaging surface is mapped by the object distance.
  • only the focus lens may be temperature compensated, or only the zoom lens may be temperature compensated.
  • the processor is specifically configured to: obtain a zoom lens displacement compensation according to the temperature information, the current zoom multiple information, and pre-stored temperature information, zoom magnification information, and a zoom lens displacement compensation value. value.
  • the processor is specifically configured to: obtain current object distance information according to position information of the motor that controls movement of the focus lens, and the current zoom multiple information; and according to the temperature information, the current zoom multiple information, The current object distance information and the pre-stored temperature information, the zoom magnification information, the correspondence between the object distance information and the focus lens displacement compensation value obtain a focus lens displacement compensation value.
  • the motor driver includes a first motor driver and/or a second motor driver, wherein: the first motor driver is configured to control the zoom lens to move to a corresponding target moving position according to the obtained zoom lens target moving position; The second motor driver is used to obtain a focusing lens The target moving position controls the focus lens to move to the corresponding target moving position.
  • the camera can achieve temperature compensation in a simple manner to improve image quality.
  • FIG. 2 is a schematic diagram of an apparatus for performing temperature compensation on a camera according to an embodiment of the present invention.
  • a device for temperature compensation of a camera comprising:
  • a temperature collecting unit 201 configured to obtain temperature information of a lens of the camera by using a temperature sensor
  • the processing unit 202 is configured to obtain a lens target moving position according to position information of the motor that controls movement of the camera lens and the temperature information;
  • the control unit 203 is configured to control the corresponding lens to move to the target moving position according to the obtained lens target moving position.
  • processing unit includes:
  • a current position information obtaining unit configured to obtain lens current position information according to position information of the motor that controls movement of the lens
  • a displacement compensation value obtaining unit configured to obtain a lens displacement compensation value according to the position information of the motor that controls the movement of the camera lens, and the temperature information;
  • a target moving position obtaining unit configured to obtain a lens target moving position according to the lens current position information and the lens displacement compensation value.
  • the displacement compensation value obtaining unit includes:
  • the first displacement compensation value obtaining unit is configured to obtain a lens displacement compensation value according to the lens current position information obtained by controlling the position information of the motor that moves the lens, and the temperature information.
  • the first displacement compensation value obtaining unit is specifically configured to:
  • a lens displacement compensation value is obtained according to the correspondence between the temperature information, the current position information of the lens, and the temperature information stored in advance, the lens position information, and the lens displacement compensation value.
  • the displacement compensation value obtaining unit includes:
  • a zoom magnification information obtaining unit configured to obtain current zoom magnification information according to position information of a motor that controls movement of the zoom lens
  • a zoom lens displacement compensation value obtaining unit configured to obtain a zoom lens displacement compensation value according to the temperature information and the current zoom magnification information; and/or a focus lens displacement compensation value obtaining unit for driving the motor according to the focus lens movement
  • the position information, the current zoom factor information obtains current object distance information, and obtains a focus lens displacement compensation value according to the temperature information, the current zoom factor information, and the current object distance information.
  • the zoom lens displacement compensation value obtaining unit is specifically configured to:
  • the zoom lens displacement compensation value is obtained according to the correspondence relationship between the temperature information, the current zoom magnification information, and the pre-stored temperature information, the zoom magnification information, and the zoom lens displacement compensation value.
  • the focus lens displacement compensation value obtaining unit includes:
  • the object distance information obtaining unit is configured to obtain current object distance information according to the position information of the motor that controls the movement of the focus lens and the current zoom multiple information;
  • a compensation value obtaining unit configured to perform, according to the temperature information, the current zoom multiple information, the current object distance information, and pre-stored temperature information, zoom magnification information, object distance information, and a focus lens displacement compensation value The relationship obtains the focus lens displacement compensation value.
  • the current location information obtaining unit includes:
  • a focus lens position information obtaining unit for obtaining current position information of the focus lens according to position information of a motor that controls movement of the focus lens
  • a zoom lens position information obtaining unit that obtains current position information of the zoom lens according to position information of a motor that controls movement of the zoom lens.
  • control unit includes:
  • a first control unit configured to control the focus lens to move to a corresponding target moving position according to the obtained focus lens target moving position
  • a second control unit configured to control the zoom lens to move to a corresponding target moving position according to the obtained zoom lens target moving position.
  • FIG. 3 is a schematic diagram of still another embodiment of a device for performing temperature compensation on a camera according to an embodiment of the present invention.
  • FIG. 3 is a diagram showing the structure of a hybrid system file data processing apparatus according to another embodiment of the present invention, including at least one processor 301 (for example, a CPU), a memory 302, and at least one communication bus 303 for implementing between these devices. Connect communication.
  • the processor 301 is configured to execute executable modules, such as computer programs, stored in the memory 302.
  • the memory 302 may include a high speed random access memory (RAM: Random Access Memory), and may also include a non-unstable memory. (non-volatile memory), such as at least one disk storage.
  • the memory 302 stores a program 3021, and the program 3021 can be executed by the processor 301.
  • the program includes: obtaining temperature information of a lens of the camera by using a temperature sensor; and determining position information of the motor according to controlling movement of the camera lens; The temperature information obtains a lens target moving position; and the corresponding lens is moved to the target moving position according to the obtained lens target moving position.
  • the program 3021 may further include: obtaining lens current position information according to position information of the motor that controls movement of the camera lens; obtaining lens displacement compensation value according to position information of the motor that controls movement of the camera lens, and the temperature information; The lens current position information and the lens displacement compensation value obtain a lens target moving position.
  • the program 3021 may further include: obtaining a lens displacement compensation value according to the lens current position information obtained by controlling the position information of the motor that moves the lens, and the temperature information.
  • the program 3021 may further include: obtaining a lens displacement compensation value according to the correspondence between the temperature information, the current position information of the lens, the pre-stored temperature information, the lens position information, and the lens displacement compensation value.
  • the program 3021 may further include: obtaining current zoom magnification information according to position information of the motor that controls movement of the zoom lens; obtaining a zoom lens displacement compensation value according to the temperature information, the current zoom multiple information, and/or, according to The position information of the motor that controls the movement of the focus lens, the current zoom factor information obtains the current object distance information, and obtains a focus lens displacement compensation value according to the temperature information, the current zoom factor information, and the current object distance information.
  • the program 3021 may further include: determining, according to the temperature information, the current zoom factor information, and pre-stored temperature information, zoom magnification information, and a zoom lens displacement compensation value. Corresponding relationship obtains the zoom lens displacement compensation value.
  • the program 3021 may further include: obtaining current object distance information according to the position information of the motor that controls the movement of the focus lens, the current zoom factor information; and according to the temperature information, the current zoom factor information, the current object
  • the focus lens displacement compensation value is obtained from the correspondence between the information and the pre-stored temperature information, the zoom magnification information, the object distance information, and the focus lens displacement compensation value.
  • the program 3021 may further include: obtaining current position information of the focus lens according to position information of a motor that controls movement of the focus lens; and/or obtaining the zoom lens according to position information of a motor that controls movement of the zoom lens; Current location information.
  • the program 3021 may further include: controlling the focus lens to move to a corresponding target moving position according to the obtained focus lens target moving position; and/or controlling the zoom lens to move to a corresponding target moving position according to the obtained zoom lens target moving position; .
  • FIG. 4 is a schematic diagram of a first embodiment of a method for temperature compensation of a camera according to an embodiment of the present invention.
  • the method shown in FIG. 4 can be implemented in the camera shown in FIG. 1 for temperature compensation of the camera shown in FIG.
  • the temperature information measured by the temperature sensor may be the current temperature of the lens or the temperature of the circuit board on the lens.
  • the lens temperature can be obtained by the correspondence between the board temperature and the lens temperature. If the temperature of the previous state of the lens is recorded, the temperature information collected here may also be the amount of temperature change. Those skilled in the art can understand that as long as the magnitude of the lens temperature information can be reflected, it can be used as a temperature letter. Information collection is not limited here.
  • the current position information of the lens may be obtained according to the position information of the motor that controls the movement of the camera lens, and then the displacement compensation of the lens is obtained according to the position information of the motor that controls the movement of the camera lens and the temperature information.
  • the value, and then the target position information of the lens is obtained according to the current position information of the lens and the displacement compensation value of the lens.
  • obtaining the lens current position information according to the position information of the motor that controls the movement of the camera lens comprises: obtaining current position information of the focus lens according to position information of the motor that controls the movement of the focus lens; and/or, according to controlling the movement of the zoom lens
  • the position information of the motor obtains the current position information of the zoom lens.
  • obtaining the lens displacement compensation value according to the position information of the motor that controls movement of the camera lens and the temperature information may include: obtaining lens current position information according to position information of the motor that controls movement of the lens; The temperature information and the current position information of the lens obtain a lens displacement compensation value.
  • the obtaining the lens displacement compensation value according to the temperature information and the current position information of the lens may specifically include: according to the temperature information, the current position information of the lens, and pre-stored temperature information, lens position information, and lens displacement compensation value. The correspondence between the lenses obtains the lens displacement compensation value.
  • the temperature information and the current position information of the lens may also be used according to the temperature information. Directly obtain the lens target moving position.
  • the lens can be a focus lens and/or a zoom lens.
  • the position information of the motor according to the movement of the control lens is controlled.
  • obtaining the lens target moving position by the temperature information may include: obtaining focus lens current position information according to position information of the motor that controls movement of the focus lens; and according to the temperature information, the focus lens current position information, and pre-storing temperature information And a corresponding relationship between the focus lens position information and the focus lens displacement compensation value to obtain a focus lens displacement compensation value; and the focus lens target movement position is obtained according to the focus lens current position information and the lens displacement compensation value.
  • obtaining the lens target moving position according to the position information of the motor that controls the movement of the camera lens and the temperature information may include: obtaining the current position of the zoom lens according to the position information of the motor that controls the movement of the zoom lens And obtaining a zoom lens displacement compensation value according to the correspondence between the temperature information, the zoom lens current position information, and the pre-stored temperature information, the zoom lens position information, and the zoom lens displacement compensation value; The position information and the lens displacement compensation value obtain a zoom lens target moving position.
  • obtaining the lens displacement compensation value according to the position information of the motor that controls the movement of the camera lens and the temperature information may include:
  • the information, the current zoom factor information, and the current object distance information obtain a focus lens displacement compensation value.
  • the zoom lens is used to map the distance of the zoom lens from the imaging surface, and the distance of the focus lens from the imaging surface is mapped by the object distance.
  • only the focus lens may be temperature compensated, or only the zoom lens may be temperature compensated.
  • the effects of the focus lens and the zoom lens on the optical path can also be considered simultaneously.
  • the focus lens and the zoom lens are temperature compensated.
  • the moving according to the obtained lens target moving position control corresponding lens to the target moving position includes: obtaining according to The focus lens target moving position controls the focus lens to move to the corresponding target moving position; and/or, the zoom lens is controlled to move to the corresponding target moving position according to the obtained zoom lens target moving position.
  • the corresponding lens is controlled by the motor driver to move to the corresponding target moving position.
  • the position information of the motor that controls the movement of the camera lens and the temperature information are used to obtain the lens target moving position, and the corresponding lens is controlled to move to the corresponding position for compensation, which can effectively compensate the camera due to the temperature. Changes in imaging quality caused by changes. Since the technical solution does not rely on the position information of the lens which is difficult to obtain with respect to the image sensor, but the position information and the temperature information of the motor which are relatively easy to obtain are used to obtain the lens target moving position, the method is easy to implement and high in implementability.
  • FIG. 5 is a schematic diagram of a second embodiment of a method for temperature compensation of a camera according to an embodiment of the present invention.
  • the lens current position information is mapped using the more easily obtained motor position information, and the lens displacement compensation value is obtained by using the correspondence between the temperature information, the lens position information and the lens displacement compensation value, and then according to the current position of the lens.
  • the information and the lens displacement compensation value obtain the lens target position information, which simplifies the operation and is highly implementable.
  • the position of the lens often has a corresponding relationship with the position of the motor that controls its movement, and therefore, the position of the lens can be mapped by the position of the motor that is relatively easy to obtain.
  • the correspondence between the position of the motor and the position of the lens may be saved in advance, and the current position of the lens is obtained according to the corresponding relationship.
  • the way to obtain the position information of the motor can be very flexible.
  • motor control uses a coordinate information to map the actual physical position of the motor, so the position information of the motor can be obtained. For example, the current position of the motor is mapped by the number of revolutions of the motor.
  • the current position of the motor can be recorded in real time by software, and the position information of the motor can be found by software recording information.
  • the motor control uses a feedback device (such as a Hall sensor) to obtain the corresponding position of the motor by querying corresponding feedback information (such as Hall voltage). After obtaining the position of the motor, the current position of the lens can be obtained by the correspondence between the pre-stored motor position and the lens position. According to the position information of the motor that controls the focus lens, the current position of the focus lens can be obtained.
  • the current position of the zoom lens can be obtained according to the positional information of the motor that controls the focus lens.
  • the specific implementation is similar to the method in step S502.
  • the mirror displacement compensation value includes: obtaining a focus lens displacement compensation value according to the temperature information, the focus lens current position information, and pre-stored temperature information, a correspondence relationship between the focus lens position information and the focus lens displacement compensation value.
  • the correspondence between the temperature information, the lens position information and the lens displacement compensation value can be saved through the database.
  • focusPos1_focusPosn is the position information of the focus lens
  • the default part in the table is the corresponding displacement compensation value.
  • the displacement compensation value is obtained by experiment or simulation or provided by the lens manufacturer.
  • the method of obtaining the compensation amount can be directly obtained from the focus lens and the temperature look-up table or interpolation. For example, when the corresponding focus lens position or temperature is not saved in the table or the corresponding value is not found, the corresponding displacement compensation value can be obtained by interpolation, and the interpolation method can be a two-dimensional linear interpolation method.
  • the target moving position of the focus lens can be obtained by adding the focus lens current position information and the focus lens displacement compensation value.
  • the focus lens displacement compensation value obtained in step S504 may be a positive value or a negative value for indicating the moving direction of the lens. Specifically, it may be set in advance to which direction to move to a positive value and to which direction to move to a negative value. Of course, other directions may be used to indicate the direction of displacement of the lens, which is not limited herein.
  • the obtaining the zoom lens displacement compensation value according to the temperature information and the current position information of the zoom lens includes: according to the temperature information, the zoom lens current position information, and pre-stored temperature information, zoom lens position information.
  • a zoom lens shift compensation value is obtained in correspondence with the zoom lens displacement compensation value.
  • the correspondence between the temperature information, the zoom lens position information, and the zoom lens displacement compensation value may be saved through the database.
  • Table 2 where zoomPos1_zoomPosn is the position information of the zoom lens, the default part in the table is the corresponding displacement compensation value.
  • the displacement compensation value is obtained by experiment or simulation or provided by the lens manufacturer.
  • the method of obtaining the compensation amount can be directly obtained from the zoom lens position information and the temperature look-up table or interpolation. For example, when the corresponding zoom lens position or temperature is not saved in the table or the corresponding value is not found, the corresponding displacement compensation value can be obtained by interpolation, and the interpolation method can be a two-dimensional linear interpolation method.
  • zoomPos1 zoomPos2 zoomPos3 zoomPosn
  • the target moving position of the zoom lens can be obtained by adding the zoom lens current position information and the zoom lens displacement compensation value.
  • the zoom lens displacement compensation value obtained in step S506 may be a positive value or a negative value for indicating the moving direction of the lens. Specific can be pre-as needed First, it is set to which direction to move to a positive value, and to which direction to move to a negative value. Of course, other directions may be used to indicate the direction of displacement of the lens, which is not limited herein.
  • the processor controls the zoom lens to move to the zoom lens target moving position by the motor driver; the processor controls the focus lens to move to the focus lens target moving position by the motor driver.
  • the motor driver may be the same motor driver or different motor drivers.
  • the motor position information for controlling the corresponding lens is used to map the distance of the corresponding lens from the imaging surface without depending on the absolute distance of the lens from the imaging surface,
  • the motor position information is relatively easy to obtain, thus improving the feasibility and simplicity of the method.
  • the method provided by the embodiment obtains the lens displacement compensation value by using the correspondence between the temperature, the lens position and the displacement compensation value, thereby obtaining the lens target moving position, and the method is simple to implement and can achieve high precision. Further, in this embodiment, not only the influence of the focus lens on the image quality but also the influence of the zoom lens on the image quality is considered, so as to ensure the high definition of the image is maintained when the temperature changes.
  • the difference from the fifth embodiment is that the target position of the zoom lens is obtained by the correspondence relationship between the temperature, the zoom factor, and the displacement compensation value, which is the temperature, the zoom factor, the object distance, and the displacement compensation.
  • the correspondence of the values is obtained by the focus lens target moving position.
  • FIG. 6 is a schematic diagram of a third embodiment of a method for temperature compensation of a camera according to an embodiment of the present invention.
  • the position of the lens often has a corresponding relationship with the position of the motor that controls its movement, and therefore, the position of the lens can be mapped by the position of the motor that is relatively easy to obtain.
  • the correspondence between the position of the motor and the position of the lens may be saved in advance, and the current position of the lens is obtained according to the corresponding relationship.
  • the way to obtain the position information of the motor can be very flexible.
  • motor control uses a coordinate information to map the actual physical position of the motor, so the position information of the motor can be obtained. For example, the current position of the motor is mapped by the number of revolutions of the motor.
  • the current position of the motor can be recorded in real time by software, and the position information of the motor can be found by software recording information.
  • the motor control uses a feedback device (such as a Hall sensor) to obtain the corresponding position of the motor by querying corresponding feedback information (such as Hall voltage). After obtaining the position of the motor, the current position of the lens can be obtained by the correspondence between the pre-stored motor position and the lens position. According to the position information of the motor that controls the focus lens, the current position of the focus lens can be obtained.
  • the current position of the zoom lens can be obtained according to the positional information of the motor that controls the focus lens.
  • the specific implementation is similar to the method in step S602.
  • the positional information of the zoom lens that is more difficult to acquire relative to the image sensor is converted into zoom factor information.
  • the zoom lens has a different distance from the imaging surface, and the magnification of the photographed object (ie, the zoom magnification) is different, and there is a one-to-one correspondence, so that the zoom lens distance imaging plane can be mapped by the easily obtained zoom magnification.
  • D1 and D2 in FIG. 7 are the distances of the zoom lens from the imaging surface; V1 and V2 are the shooting field size, which are mapped to the zoom magnification.
  • different distances correspond to different imaging multiples, that is, D1 corresponds to V1, and D2 corresponds to V2.
  • the position information of the motor that controls the movement of the focus lens is in turn corresponding to the distance between the zoom lens and the imaging surface (ie, the position information of the zoom lens), so the zoom magnification information can be obtained by controlling the position information of the motor that the zoom lens moves, and the zoom is used.
  • the multiple maps the distance of the zoom lens from the imaging surface.
  • the correspondence between the position information of the motor that controls the movement of the focus lens and the zoom magnification information may be established in advance, and the current zoom magnification information may be obtained through the current motor position information.
  • the obtaining the zoom lens displacement compensation value according to the temperature information and the current zoom factor information includes: according to the temperature information, the current zoom factor information, and pre-saved temperature information, zoom magnification information, and zoom lens displacement Corresponding relationship between compensation values to obtain zoom lens displacement Compensation value.
  • the correspondence between the temperature information, the zoom magnification information and the zoom displacement compensation value can be saved through the database.
  • Table 3 where zoom1-zoomn is the zoom multiple related information, the default part in the table is the corresponding displacement compensation value.
  • the displacement compensation value is obtained by experiment or simulation or provided by the lens manufacturer.
  • the compensation amount can be directly queried from the table. If the corresponding zoom factor or temperature is not in the table, the corresponding compensation value, for example, two-dimensional linear interpolation, is obtained by interpolation.
  • the target moving position of the zoom lens can be obtained by adding the zoom lens current position information and the zoom lens displacement compensation value.
  • the zoom lens displacement compensation value obtained in step S605 may be a positive value or a negative value for indicating the moving direction of the lens. Specifically, it may be set in advance to which direction to move to a positive value and to which direction to move to a negative value. Of course, other directions may be used to indicate the direction of displacement of the lens, which is not limited herein.
  • positional information of the focus lens relative to the image sensor that is more difficult to acquire is converted into object distance information.
  • the distance between the focus lens and the imaging surface is different, and the optimal imaging distance (object distance) of the photographed object is different, and there is a one-to-one correspondence, which can be easily obtained.
  • the object distance maps the distance of the focus lens from the imaging surface.
  • D1 and D2 in FIG. 8 are distances of the focus lens from the imaging surface; L1 and L2 are object distances.
  • different distances correspond to different object distances, that is, D1 corresponds to L1, and D2 corresponds to L2.
  • the correspondence between the position information of the focus lens motor, the zoom magnification information and the object distance information is established, and the third information can be obtained by knowing two of the information.
  • the current object distance information is obtained by using the position information of the motor that controls the movement of the focus lens and the current zoom factor information.
  • the obtaining a focus lens displacement compensation value according to the temperature information, the current zoom multiple information, and the current object distance information includes:
  • the correspondence between the temperature information, the zoom lens position information, and the zoom lens displacement compensation value may be saved through the database. As shown in FIG.
  • zoom1_zoomn is the zoom multiple related information
  • objectDepth1_objectDepthn is the object distance information
  • the default part in the table is the corresponding compensation value, according to the current zoom multiple, object distance and temperature information can be directly from the table
  • the corresponding compensation value is obtained by interpolation.
  • the target moving position of the focus lens can be obtained by adding the focus lens current position information and the focus lens displacement compensation value.
  • the focus lens displacement compensation obtained in step S608 is The value can be positive or negative and is used to indicate the direction of movement of the lens. Specifically, it may be set in advance to which direction to move to a positive value and to which direction to move to a negative value. Of course, other directions may be used to indicate the direction of displacement of the lens, which is not limited herein.
  • the processor controls the zoom lens to move to the zoom lens target moving position by the motor driver; the processor controls the focus lens to move to the focus lens target moving position by the motor driver.
  • the motor driver may be the same motor driver or different motor drivers.
  • steps S602 and S610 there is no necessary sequence of execution between steps S602 and S610. Those skilled in the art can adjust the execution order of the above steps as needed, and can also perform certain steps in parallel, which is not limited herein.
  • the zoom lens when acquiring the current position of the focus lens and the zoom lens, the zoom lens is used to map the distance of the zoom lens from the imaging surface, and the distance of the focus lens from the imaging surface is mapped by the object distance without relying on the lens. Since the absolute distance from the imaging surface is relatively easy to obtain due to the motor position information, the zoom magnification information, and the object distance information, the implementability and simplicity of the method are improved. Further, in this embodiment, not only the influence of the focus lens on the image quality but also the influence of the zoom lens on the image quality is considered, so as to ensure the high definition of the image is maintained when the temperature changes.
  • FIG. 9 is a schematic diagram of a fourth embodiment of a method for temperature compensation of a camera according to an embodiment of the present invention.
  • This embodiment differs from the previous embodiment in that, in some application scenarios, in the case where the slight change in the temperature of the zoom magnification sound is not required, in order to simplify the operation, only the focus lens may be performed. Displacement compensation can also improve the sharpness of the image.
  • S901 Obtain temperature information of a lens of the camera by using a temperature sensor.
  • the position of the lens tends to correspond to the position of the motor that controls its movement, so that the position of the lens can be mapped by the position of the motor that is easier to obtain.
  • the correspondence between the position of the motor and the position of the lens may be saved in advance, and the current position of the lens is obtained according to the corresponding relationship.
  • the way to obtain the position information of the motor can be very flexible.
  • motor control uses a coordinate information to map the actual physical position of the motor, so the position information of the motor can be obtained. For example, the current position of the motor is mapped by the number of revolutions of the motor.
  • the current position of the motor can be recorded in real time by software, and the position information of the motor can be found by software recording information.
  • the motor control uses a feedback device (such as a Hall sensor) to obtain the corresponding position of the motor by querying corresponding feedback information (such as Hall voltage). After obtaining the position of the motor, the current position of the lens can be obtained by the correspondence between the pre-stored motor position and the lens position. According to the position information of the motor that controls the focus lens, the current position of the focus lens can be obtained.
  • the positional information of the zoom lens that is more difficult to acquire relative to the image sensor is converted into zoom factor information.
  • the zoom lens has a different distance from the imaging surface, and the magnification of the photographed object (ie, the zoom magnification) is different, and there is a one-to-one correspondence, so that the zoom lens distance imaging plane can be mapped by the easily obtained zoom magnification. the distance.
  • D1 and D2 in Fig. 7 are the distances of the zoom lens from the imaging surface; V1 and V2 are the size of the shooting field of view, which is mapped to change. Focus multiplier.
  • D1 corresponds to V1
  • D2 corresponds to V2.
  • the position information of the motor that controls the movement of the focus lens is in turn corresponding to the distance between the zoom lens and the imaging surface (ie, the position information of the zoom lens), so the zoom magnification information can be obtained by controlling the position information of the motor that the zoom lens moves, and the zoom is used.
  • the multiple maps the distance of the zoom lens from the imaging surface.
  • the correspondence between the position information of the motor that controls the movement of the focus lens and the zoom magnification information may be established in advance, and the current zoom magnification information may be obtained through the current motor position information.
  • the current object distance information is obtained according to the position information of the motor that controls the movement of the focus lens and the current zoom multiple information.
  • positional information of the focus lens relative to the image sensor that is more difficult to acquire is converted into object distance information.
  • the distance between the focus lens and the imaging surface is different, and the optimal imaging distance (object distance) of the photographed object is different, and there is a one-to-one correspondence, and the focus lens distance imaging surface can be mapped by the easily obtained object distance.
  • D1 and D2 in Fig. 8 are distances of the focusing lens from the imaging surface;
  • L1 and L2 are object distances.
  • different distances correspond to different object distances, that is, D1 corresponds to L1, and D2 corresponds to L2.
  • the correspondence between the position information of the focus lens motor, the zoom magnification information and the object distance information is established, and the third information can be obtained by knowing two of the information.
  • the current object distance information is obtained by using the position information of the motor that controls the movement of the focus lens and the current zoom factor information.
  • the obtaining a focus lens displacement compensation value according to the temperature information, the current zoom multiple information, and the current object distance information includes:
  • zoom1-zoomn is the zoom multiple related information
  • objectDepth1_objectDepthn is the object distance information
  • the default part in the table is the corresponding compensation value.
  • the current zoom factor, object distance and temperature information it can be directly from the table.
  • the corresponding compensation value is obtained by interpolation.
  • the compensation value of the focus lens includes not only the change in the sharpness of the focus lens itself due to temperature, but also the change in the sharpness of the image caused by the temperature change of the zoom lens. This is because, not only when the zoom lens is affected by temperature, but also the zoom factor changes, and the focus condition changes. However, the zoom factor is less affected, so in the case where the zoom factor is not very sensitive, it is possible to directly control only the focus lens for temperature compensation. The effect of the zoom lens on sharpness can also be compensated by the focus lens.
  • the target moving position of the focus lens can be obtained by adding the focus lens current position information and the focus lens displacement compensation value.
  • the focus lens displacement compensation value obtained in step S905 may be a positive value or a negative value for indicating the moving direction of the lens. Specifically, it may be set in advance to which direction to move to a positive value and to which direction to move to a negative value. Of course, other directions may be used to indicate the direction of displacement of the lens, which is not limited herein.
  • the processor controls the focus lens to move to the focus lens target by the motor driver Moving position.
  • the distance of the object lens from the imaging plane is utilized, without relying on the absolute distance between the lens and the imaging surface, due to motor position information, zoom factor information,
  • the object distance information is relatively easy to obtain, thus improving the implementability and simplicity of the method.
  • the operation is simplified, and only the movement of the focus lens is used to compensate for the change in sharpness caused by the displacement of the focus lens and the zoom lens, and it is also possible to achieve Good results.
  • zoom lens can be compensated to compensate for the effects of zoom magnification and sharpness, but in this way, in order to maintain image sharpness, it may be necessary to do the zoom lens. Larger movements will have an impact on the operator's operating experience.
  • the invention may be described in the general context of computer-executable instructions executed by a computer, such as a program module.
  • program modules include routines, programs, objects, components, data structures, and the like that perform particular tasks or implement particular abstract data types.
  • the invention may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are connected through a communication network.
  • program modules can be located in both local and remote computer storage media including storage devices.
  • the various embodiments in the specification are described in a progressive manner, and the same or similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments.
  • the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
  • the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Optics & Photonics (AREA)
  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Lens Barrels (AREA)
  • Studio Devices (AREA)

Abstract

一种对摄像机进行温度补偿的方法和装置,所述方法包括:利用温度传感器获得所述摄像机的镜头的温度信息;根据控制摄像机透镜移动的电机的位置信息以及所述温度信息获得透镜目标移动位置;根据获得的所述透镜目标移动位置控制对应的透镜移动到目标移动位置。本申请提供的方法和装置可以利用简便的方法补偿摄像机由于温度变化引起的成像质量变化,可实施性高。

Description

一种对摄像机进行温度补偿的方法和装置
本申请要求于2014年4月11日提交中国专利局、申请号为201410145736.8、发明名称为“一种对摄像机进行温度补偿的方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及图像处理技术领域,特别是涉及一种对摄像机进行温度补偿的方法和装置。
背景技术
随着数字摄像机的发展,越来越多的摄像机被应用在视频监控领域、视频会议领域等。由于摄像机安装的环境不同,工作温度会有所不同。此外,摄像机工作时间长短也会导致摄像机内部温度的变化。而摄像机温度的变化会对光学系统的成像质量产生影响。一般而言,这种影响主要体现在3个方面:(1)温度变化引起介质折射率的变化;(2)温度变化引起光学元件折射面的曲率半径和中心厚度变化;(3)温度变化引起光学系统中光学元件之间的间隔变化。如果不对温度引起的变化进行合适的补偿,将对成像质量产生很大影响。因此,如何对摄像机进行温度补偿成为一个亟待解决的问题。
现有技术已经存在一种方法,当温度发生变化时,计算聚焦透镜根据温度变化所移动到的位置,并确定是否针对聚焦透镜移动到的位置进行补偿。其在计算聚焦透镜移动到的位置时是基于聚焦透镜在前一状态下所在的位置和CCD(Charge-coupled Device,电荷耦合元件,又可以称为CCD图像传感器)之间的距离与基准位置和CCD之间的距离之比以及相对于基准位置的移动位移相关的信息计算得到的。
发明人在实现本发明的过程中发现,现有技术中,在对聚焦透镜进行温度补偿时,需要依赖于聚焦透镜与CCD之间的绝对距离进行计算。然而,由于聚焦透镜和CCD封装在镜筒内部,距离不宜测量而且精度要求很高,因此其可实施性不高。
发明内容
为解决上述技术问题,本发明公开了一种对摄像机进行温度补偿的方法和装置,可以利用简便的方法补偿摄像机由于温度变化引起的成像质量变化,可实施性高。
技术方案如下:
根据本发明实施例的第一方面,公开了一种对摄像机进行温度补偿的方法,所述方法包括:
利用温度传感器获得所述摄像机的镜头的温度信息;
根据控制摄像机透镜移动的电机的位置信息以及所述温度信息获得透镜目标移动位置;
根据获得的所述透镜目标移动位置控制对应的透镜移动到目标移动位置。
结合本发明实施例的第一方面,本发明实施例还具有第一种可能,其中,所述根据控制摄像机透镜移动的电机的位置信息以及所述温度信息获得透镜目标移动位置包括:
根据控制摄像机透镜移动的电机的位置信息获得透镜当前位置信息;
根据控制摄像机透镜移动的电机的位置信息、所述温度信息获得透镜位移补偿值;
根据所述透镜当前位置信息和所述透镜位移补偿值获得透镜目标移动位置。
结合本发明实施例的第一方面以及本发明实施例的第一种可能,本发明实施例还具有第二种可能,其中,所述根据控制摄像机透镜移动的电机的位置信息、所述温度信息获得透镜位移补偿值包括:
根据控制透镜移动的电机的位置信息获得的透镜当前位置信息、所述温度信息获得透镜位移补偿值。
结合本发明实施例的第一方面以及本发明实施例的第二种可能,本发明实施例还具有第三种可能,其中,所述根据控制透镜移动的电机的位置信息获得的透镜当前位置信息、所述温度信息获得透镜位移补偿值包括:
根据所述温度信息、所述透镜当前位置信息以及预先保存的温度信息、透镜位置信息与透镜位移补偿值之间的对应关系获得透镜位移补偿值。
结合本发明实施例的第一方面以及本发明实施例的第一种可能,本发明实施例还具有第四种可能,其中,所述根据控制摄像机透镜移动的电机的位置信息、所述温度信息获得透镜位移补偿值包括:
根据控制变焦透镜移动的电机的位置信息获得当前变焦倍数信息;
根据所述温度信息、所述当前变焦倍数信息获得变焦透镜位移补偿值,和/或,根据控制聚焦透镜移动的电机的位置信息、所述当前变焦倍数信息获得当前物距信息并根据所述温度信息、所述当前变焦倍数信息、所述当前物距信息获得聚焦透镜位移补偿值。
结合本发明实施例的第一方面以及本发明实施例的第四种可能,本发明实施例还具有第五种可能,其中,所述根据所述温度信息、所述当前变焦倍数信 息获得变焦透镜位移补偿值包括:
根据所述温度信息、所述当前变焦倍数信息以及预先保存的温度信息、变焦倍数信息与变焦透镜位移补偿值之间的对应关系获得变焦透镜位移补偿值。
结合本发明实施例的第一方面以及本发明实施例的第四种可能,本发明实施例还具有第六种可能,其中,,所述根据控制聚焦透镜移动的电机的位置信息、所述当前变焦倍数信息获得当前物距信息并根据所述温度信息、所述当前变焦倍数信息、所述当前物距信息获得聚焦透镜位移补偿值包括:
根据控制聚焦透镜移动的电机的位置信息、所述当前变焦倍数信息获得当前物距信息;
根据所述温度信息、所述当前变焦倍数信息、所述当前物距信息以及预先保存的温度信息、变焦倍数信息、物距信息与聚焦透镜位移补偿值之间的对应关系获得聚焦透镜位移补偿值。
根据本发明实施例的第二方面,公开了一种对摄像机进行温度补偿的装置,所述装置包括:
温度采集单元,用于利用温度传感器获得所述摄像机的镜头的温度信息;
处理单元,用于根据控制摄像机透镜移动的电机的位置信息以及所述温度信息获得透镜目标移动位置;
控制单元,用于根据获得的所述透镜目标移动位置控制对应的透镜移动到目标移动位置。
结合本发明实施例的第二方面,本发明实施例还具有第七种可能,其中,所述处理单元包括:
当前位置信息获得单元,用于根据控制透镜移动的电机的位置信息获得透 镜当前位置信息;
位移补偿值获得单元,用于根据控制摄像机透镜移动的电机的位置信息、所述温度信息获得透镜位移补偿值;
目标移动位置获得单元,用于根据所述透镜当前位置信息和所述透镜位移补偿值获得透镜目标移动位置。
结合本发明实施例的第二方面以及本发明实施例的第七种可能,本发明实施例还具有第八种可能,其中,所述位移补偿值获得单元包括:
第一位移补偿值获得单元,用于根据控制透镜移动的电机的位置信息获得的透镜当前位置信息、所述温度信息获得透镜位移补偿值。
结合本发明实施例的第二方面以及本发明实施例的第七种可能,本发明实施例还具有第九种可能,其中,所述位移补偿值获得单元包括:
变焦倍数信息获得单元,用于根据控制变焦透镜移动的电机的位置信息获得当前变焦倍数信息;
变焦透镜位移补偿值获得单元,用于根据所述温度信息、所述当前变焦倍数信息获得变焦透镜位移补偿值;和/或,聚焦透镜位移补偿值获得单元,用于根据控制聚焦透镜移动的电机的位置信息、所述当前变焦倍数信息获得当前物距信息并根据所述温度信息、所述当前变焦倍数信息、所述当前物距信息获得聚焦透镜位移补偿值。
根据本发明实施例的第三方面,公开了一种摄像机,所述摄像机包括镜头、聚焦透镜、变焦透镜、温度传感器、处理器、电机驱动器,其中:
所述温度传感器用于获得所述摄像机的镜头的温度信息;
所述处理器用于根据控制摄像机透镜移动的电机的位置信息以及所述温 度信息获得透镜目标移动位置;
所述电机驱动器用于根据获得的所述透镜目标移动位置控制对应的透镜移动到目标移动位置。
结合本发明实施例的第三方面,本发明实施例还具有第十种可能,其中,所述处理器具体用于:
根据控制摄像机透镜移动的电机的位置信息获得透镜当前位置信息;根据控制摄像机透镜移动的电机的位置信息、所述温度信息获得透镜位移补偿值;根据所述透镜当前位置信息和所述透镜位移补偿值获得透镜目标移动位置。
结合本发明实施例的第三方面以及本发明实施例的第十种可能,本发明实施例还具有第十一种可能,其中,所述处理器具体用于:
根据控制透镜移动的电机的位置信息获得的透镜当前位置信息、所述温度信息获得透镜位移补偿值。
结合本发明实施例的第三方面以及本发明实施例的第十种可能,本发明实施例还具有第十二种可能,其中,所述处理器具体用于:
根据控制变焦透镜移动的电机的位置信息获得当前变焦倍数信息;根据所述温度信息、所述当前变焦倍数信息获得变焦透镜位移补偿值,和/或,根据控制聚焦透镜移动的电机的位置信息、所述当前变焦倍数信息获得当前物距信息并根据所述温度信息、所述当前变焦倍数信息、所述当前物距信息获得聚焦透镜位移补偿值。
本发明实施例的一个方面能够达到的有益效果为:在本发明实施例提供的对摄像机进行温度补偿的方法中,利用控制摄像机透镜移动的电机的位置信息以及所述温度信息获得透镜目标移动位置,并控制相应的透镜移动到相应的 位置进行补偿,可以有效补偿摄像机由于温度变化引起的成像质量变化。由于技术方案并不依赖于较难获得的透镜相对于图像传感器的位置信息,而是利用较易获得的电机的位置信息、温度信息获得透镜目标移动位置,因此方法易于实现,可实施性高。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本发明实施例提供的摄像机示意图;
图2为本发明实施例提供的对摄像机进行温度补偿的装置一实施例示意图;
图3为本发明实施例提供的对摄像机进行温度补偿的装置又一实施例示意图;
图4为本发明实施例提供的对摄像机进行温度补偿的方法第一实施例示意图;
图5为本发明实施例提供的对摄像机进行温度补偿的方法第二实施例示意图;
图6为本发明实施例提供的对摄像机进行温度补偿的方法第三实施例示意图;
图7为变焦镜片与成像面的距离与变焦倍数映射关系示意图;
图8为某一变焦倍数下聚焦镜片与成像面的距离与物距映射关系示意图;
图9为本发明实施例提供的对摄像机进行温度补偿的方法第四实施例示意图;
图10为本发明实施例提供的温度信息、变焦倍数信息、物距信息与聚焦透镜位移补偿值之间的对应关系表示意图。
具体实施方式
首先对本发明的思想进行阐述。发明人在实现本发明的过程中发现,现有技术中,在对聚焦透镜进行温度补偿时,需要依赖于聚焦透镜与CCD之间的绝对距离进行计算。然而,由于聚焦透镜和CCD封装在镜筒内部,距离不宜测量而且精度要求很高,因此其可实施性不高。
在另一方面,由于现有技术中只考虑到对聚焦透镜因温度变化产生相对CCD位置的变化的补偿方法,但未考虑变焦透镜对成像效果的影响,原理上存在一定缺陷,不可能产生很好的效果。
为解决上述技术问题,本发明实施例提供了一种对摄像机进行温度补偿的方法和装置,可以利用简便的方法补偿摄像机由于温度变化引起的成像质量变化,可实施性高。
为了使本技术领域的人员更好地理解本发明中的技术方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。
实施例一
参见图1,图1为本发明实施例提供的摄像机示意图。
如图1所示,本发明提供的摄像机100如图1所示,包括变焦透镜101,聚焦透镜102,光圈103,图像传感器104,温度传感器105,处理器106,电机驱动器107、控制变焦透镜101的电机ZM108、控制聚焦透镜的电机FM109,控制光圈的电机IM110。其中,电机驱动器107用于驱动电机以控制相应的透镜或光圈移动。其中:
所述温度传感器105,用于获得所述摄像机的镜头的温度信息。
所述处理器106用于根据控制摄像机透镜移动的电机的位置信息以及所述温度信息获得透镜目标移动位置。
所述电机驱动器107用于根据获得的所述透镜目标移动位置控制对应的透镜移动到目标移动位置。
其中,所述温度传感器测量的温度信息可以是镜头的当前温度,也可以是镜头上电路板的温度。当温度传感器测量的温度信息为镜头上电路板的温度时,可以通过电路板温度与镜头温度的对应关系获得镜头温度。如果记录了镜头前一状态的温度,这里采集的温度信息也可以是温度变化量。本领域技术人员可以理解的是,只要能够反映出镜头温度信息的量值均可以作为温度信息采集,在此不限定。
具体实现时,所述处理器具体用于:根据控制摄像机透镜移动的电机的位置信息获得透镜当前位置信息;根据控制摄像机透镜移动的电机的位置信息、所述温度信息获得透镜位移补偿值;根据所述透镜当前位置信息和所述透镜位移补偿值获得透镜目标移动位置。
具体实现时,所述处理器用于根据控制聚焦透镜移动的电机的位置信息获得所述聚焦透镜的当前位置信息;和/或,根据控制变焦透镜移动的电机的位置信息获得所述变焦透镜的当前位置信息。
在一种可能的实现方式中,所述处理器具体用于:根据控制透镜移动的电机的位置信息获得的透镜当前位置信息、所述温度信息获得透镜位移补偿值。其中,根据所述温度信息、所述透镜当前位置信息获得透镜位移补偿值具体可以包括:根据所述温度信息、所述透镜当前位置信息以及预先保存的温度信息、透镜位置信息与透镜位移补偿值之间的对应关系获得透镜位移补偿值。本领域技术人员可以理解的是,在另外一种可能的实现方式中,在根据控制透镜移动的电机的位置信息获得透镜当前位置信息后,也可以根据所述温度信息、所述透镜当前位置信息直接获得透镜目标移动位置。
具体实现时,透镜可以是聚焦透镜和/或变焦透镜。具体实现时,当需要进行温度补偿的透镜是聚焦透镜时,处理器根据控制摄像机透镜移动的电机的位置信息以及所述温度信息获得透镜目标移动位置可以包括:根据控制聚焦透镜移动的电机的位置信息获得聚焦透镜当前位置信息;根据所述温度信息、所述聚焦透镜当前位置信息以及预先保存的温度信息、聚焦透镜位置信息与聚焦透镜位移补偿值之间的对应关系获得聚焦透镜位移补偿值;根据所述聚焦透镜当前位置信息和所述透镜位移补偿值获得聚焦透镜目标移动位置。
当需要进行温度补偿的透镜是变焦透镜时,处理器根据控制摄像机透镜移动的电机的位置信息以及所述温度信息获得透镜目标移动位置可以包括:根据控制变焦透镜移动的电机的位置信息获得变焦透镜当前位置信息;根据所述温度信息、所述变焦透镜当前位置信息以及预先保存的温度信息、变焦透镜位置 信息与变焦透镜位移补偿值之间的对应关系获得变焦透镜位移补偿值;根据所述变焦透镜当前位置信息和所述透镜位移补偿值获得变焦透镜目标移动位置。
在另外一种可能的实现方式中,所述处理器具体用于:根据控制变焦透镜移动的电机的位置信息获得当前变焦倍数信息;根据所述温度信息、所述当前变焦倍数信息获得变焦透镜位移补偿值,和/或,根据控制聚焦透镜移动的电机的位置信息、所述当前变焦倍数信息获得当前物距信息并根据所述温度信息、所述当前变焦倍数信息、所述当前物距信息获得聚焦透镜位移补偿值。
在这一种实现方式中,是通过变焦倍数去映射变焦透镜距离成像面的距离,通过物距去映射聚焦透镜距离成像面的距离的。具体实现时,为了简化操作,可以只对聚焦透镜进行温度补偿,或者只对变焦透镜进行温度补偿。当然,为了提高成像质量,也可以同时考虑聚焦透镜和变焦透镜对光路的影响,同时对聚焦透镜和变焦透镜进行温度补偿。
具体实现时,所述处理器具体用于:根据所述温度信息、所述当前变焦倍数信息以及预先保存的温度信息、变焦倍数信息与变焦透镜位移补偿值之间的对应关系获得变焦透镜位移补偿值。
具体实现时,所述处理器具体用于:根据控制聚焦透镜移动的电机的位置信息、所述当前变焦倍数信息获得当前物距信息;根据所述温度信息、所述当前变焦倍数信息、所述当前物距信息以及预先保存的温度信息、变焦倍数信息、物距信息与聚焦透镜位移补偿值之间的对应关系获得聚焦透镜位移补偿值。
进一步的,所述电机驱动器包括第一电机驱动器和/或第二电机驱动器,其中:所述第一电机驱动器用于根据获得的变焦透镜目标移动位置控制变焦透镜移动到对应的目标移动位置;所述第二电机驱动器用于根据获得的聚焦透镜 目标移动位置控制聚焦透镜移动到对应的目标移动位置。
当然,本领域技术人员可以理解的是,可以使用同一个电机驱动器驱动控制聚焦透镜对应的电机以及控制变焦透镜对应的电机。
在这一实施例中,摄像机可以采用简单的方法实现温度补偿,提高成像质量。其中,摄像机的具体工作原理可以参照实施例四至实施例七的描述,并可以参见图4至图9的示意实现。
实施例二
参见图2,为本发明实施例提供的对摄像机进行温度补偿的装置一实施例示意图。
一种对摄像机进行温度补偿的装置,所述装置包括:
温度采集单元201,用于利用温度传感器获得所述摄像机的镜头的温度信息;
处理单元202,用于根据控制摄像机透镜移动的电机的位置信息以及所述温度信息获得透镜目标移动位置;
控制单元203,用于根据获得的所述透镜目标移动位置控制对应的透镜移动到目标移动位置。
进一步的,所述处理单元包括:
当前位置信息获得单元,用于根据控制透镜移动的电机的位置信息获得透镜当前位置信息;
位移补偿值获得单元,用于根据控制摄像机透镜移动的电机的位置信息、所述温度信息获得透镜位移补偿值;
目标移动位置获得单元,用于根据所述透镜当前位置信息和所述透镜位移补偿值获得透镜目标移动位置。
进一步的,所述位移补偿值获得单元包括:
第一位移补偿值获得单元,用于根据控制透镜移动的电机的位置信息获得的透镜当前位置信息、所述温度信息获得透镜位移补偿值。
进一步的,所述第一位移补偿值获得单元具体用于:
根据所述温度信息、所述透镜当前位置信息以及预先保存的温度信息、透镜位置信息与透镜位移补偿值之间的对应关系获得透镜位移补偿值。
进一步的,所述位移补偿值获得单元包括:
变焦倍数信息获得单元,用于根据控制变焦透镜移动的电机的位置信息获得当前变焦倍数信息;
变焦透镜位移补偿值获得单元,用于根据所述温度信息、所述当前变焦倍数信息获得变焦透镜位移补偿值;和/或,聚焦透镜位移补偿值获得单元,用于根据控制聚焦透镜移动的电机的位置信息、所述当前变焦倍数信息获得当前物距信息并根据所述温度信息、所述当前变焦倍数信息、所述当前物距信息获得聚焦透镜位移补偿值。
进一步的,所述变焦透镜位移补偿值获得单元具体用于:
根据所述温度信息、所述当前变焦倍数信息以及预先保存的温度信息、变焦倍数信息与变焦透镜位移补偿值之间的对应关系获得变焦透镜位移补偿值。
进一步的,所述聚焦透镜位移补偿值获得单元包括:
物距信息获得单元,用于根据控制聚焦透镜移动的电机的位置信息、所述当前变焦倍数信息获得当前物距信息;
补偿值获得单元,用于根据所述温度信息、所述当前变焦倍数信息、所述当前物距信息以及预先保存的温度信息、变焦倍数信息、物距信息与聚焦透镜位移补偿值之间的对应关系获得聚焦透镜位移补偿值。
进一步的,所述当前位置信息获得单元包括:
聚焦透镜位置信息获得单元,用于根据控制聚焦透镜移动的电机的位置信息获得所述聚焦透镜的当前位置信息;和/或
变焦透镜位置信息获得单元,用于根据控制变焦透镜移动的电机的位置信息获得所述变焦透镜的当前位置信息。
进一步的,所述控制单元包括:
第一控制单元,用于根据获得的聚焦透镜目标移动位置控制聚焦透镜移动到对应的目标移动位置;和/或
第二控制单元,用于根据获得的变焦透镜目标移动位置控制变焦透镜移动到对应的目标移动位置。
实施例三
参见图3,为本发明实施例提供的对摄像机进行温度补偿的装置又一实施例示意图。
图3描述了本发明另一个实施例提供的混合系统文件数据处理装置的结构,包括至少一个处理器301(例如CPU),存储器302,和至少一个通信总线303,用于实现这些装置之间的连接通信。处理器301用于执行存储器302中存储的可执行模块,例如计算机程序。存储器302可能包含高速随机存取存储器(RAM:Random Access Memory),也可能还包括非不稳定的存储器 (non-volatile memory),例如至少一个磁盘存储器。
在一些实施方式中,存储器302存储了程序3021,程序3021可以被处理器301执行,这个程序包括:利用温度传感器获得所述摄像机的镜头的温度信息;根据控制摄像机透镜移动的电机的位置信息以及所述温度信息获得透镜目标移动位置;根据获得的所述透镜目标移动位置控制对应的透镜移动到目标移动位置。
其中,所述程序3021还可以包括:根据控制摄像机透镜移动的电机的位置信息获得透镜当前位置信息;根据控制摄像机透镜移动的电机的位置信息、所述温度信息获得透镜位移补偿值;根据所述透镜当前位置信息和所述透镜位移补偿值获得透镜目标移动位置。
其中,所述程序3021还可以包括:根据控制透镜移动的电机的位置信息获得的透镜当前位置信息、所述温度信息获得透镜位移补偿值。
其中,所述程序3021还可以包括:根据所述温度信息、所述透镜当前位置信息以及预先保存的温度信息、透镜位置信息与透镜位移补偿值之间的对应关系获得透镜位移补偿值。
其中,所述程序3021还可以包括:根据控制变焦透镜移动的电机的位置信息获得当前变焦倍数信息;根据所述温度信息、所述当前变焦倍数信息获得变焦透镜位移补偿值,和/或,根据控制聚焦透镜移动的电机的位置信息、所述当前变焦倍数信息获得当前物距信息并根据所述温度信息、所述当前变焦倍数信息、所述当前物距信息获得聚焦透镜位移补偿值。
其中,所述程序3021还可以包括:根据所述温度信息、所述当前变焦倍数信息以及预先保存的温度信息、变焦倍数信息与变焦透镜位移补偿值之间的 对应关系获得变焦透镜位移补偿值。
其中,所述程序3021还可以包括:根据控制聚焦透镜移动的电机的位置信息、所述当前变焦倍数信息获得当前物距信息;根据所述温度信息、所述当前变焦倍数信息、所述当前物距信息以及预先保存的温度信息、变焦倍数信息、物距信息与聚焦透镜位移补偿值之间的对应关系获得聚焦透镜位移补偿值。
其中,所述程序3021还可以包括:根据控制聚焦透镜移动的电机的位置信息获得所述聚焦透镜的当前位置信息;和/或,根据控制变焦透镜移动的电机的位置信息获得所述变焦透镜的当前位置信息。
其中,所述程序3021还可以包括:根据获得的聚焦透镜目标移动位置控制聚焦透镜移动到对应的目标移动位置;和/或根据获得的变焦透镜目标移动位置控制变焦透镜移动到对应的目标移动位置。
实施例四
参见图4,为本发明实施例提供的对摄像机进行温度补偿的方法第一实施例示意图。图4所示的方法可以实施于图1所示的摄像机,用于对图4所示的摄像机进行温度补偿。
S401,利用温度传感器获得所述摄像机的镜头的温度信息。
具体实现时,所述温度传感器测量的温度信息可以是镜头的当前温度,也可以是镜头上电路板的温度。当温度传感器测量的温度信息为镜头上电路板的温度时,可以通过电路板温度与镜头温度的对应关系获得镜头温度。如果记录了镜头前一状态的温度,这里采集的温度信息也可以是温度变化量。本领域技术人员可以理解的是,只要能够反映出镜头温度信息的量值均可以作为温度信 息采集,在此不限定。
S402,根据控制摄像机透镜移动的电机的位置信息以及所述温度信息获得透镜目标移动位置。
具体实现时,为了获得透镜目标移动位置,可以根据控制摄像机透镜移动的电机的位置信息获得透镜的当前位置信息,而后根据控制摄像机透镜移动的电机的位置信息以及所述温度信息获得透镜的位移补偿值,再根据透镜的当前位置信息和透镜的位移补偿值获得透镜的目标位置信息。
具体实现时,根据控制摄像机透镜移动的电机的位置信息获得透镜当前位置信息包括:根据控制聚焦透镜移动的电机的位置信息获得所述聚焦透镜的当前位置信息;和/或,根据控制变焦透镜移动的电机的位置信息获得所述变焦透镜的当前位置信息。
在一种可能的实现方式中,根据控制摄像机透镜移动的电机的位置信息以及所述温度信息获得透镜位移补偿值可以包括:根据控制透镜移动的电机的位置信息获得透镜当前位置信息;根据所述温度信息、所述透镜当前位置信息获得透镜位移补偿值。其中,根据所述温度信息、所述透镜当前位置信息获得透镜位移补偿值具体可以包括:根据所述温度信息、所述透镜当前位置信息以及预先保存的温度信息、透镜位置信息与透镜位移补偿值之间的对应关系获得透镜位移补偿值。本领域技术人员可以理解的是,在另外一种可能的实现方式中,在根据控制透镜移动的电机的位置信息获得透镜当前位置信息后,也可以根据所述温度信息、所述透镜当前位置信息直接获得透镜目标移动位置。
具体实现时,透镜可以是聚焦透镜和/或变焦透镜。具体实现时,当需要进行温度补偿的透镜是聚焦透镜时,根据控制摄像机透镜移动的电机的位置信 息以及所述温度信息获得透镜目标移动位置可以包括:根据控制聚焦透镜移动的电机的位置信息获得聚焦透镜当前位置信息;根据所述温度信息、所述聚焦透镜当前位置信息以及预先保存的温度信息、聚焦透镜位置信息与聚焦透镜位移补偿值之间的对应关系获得聚焦透镜位移补偿值;根据所述聚焦透镜当前位置信息和所述透镜位移补偿值获得聚焦透镜目标移动位置。
当需要进行温度补偿的透镜是变焦透镜时,根据控制摄像机透镜移动的电机的位置信息以及所述温度信息获得透镜目标移动位置可以包括:根据控制变焦透镜移动的电机的位置信息获得变焦透镜当前位置信息;根据所述温度信息、所述变焦透镜当前位置信息以及预先保存的温度信息、变焦透镜位置信息与变焦透镜位移补偿值之间的对应关系获得变焦透镜位移补偿值;根据所述变焦透镜当前位置信息和所述透镜位移补偿值获得变焦透镜目标移动位置。
在另外一种可能的实现方式中,根据控制摄像机透镜移动的电机的位置信息、所述温度信息获得透镜位移补偿值可以包括:
根据控制变焦透镜移动的电机的位置信息获得当前变焦倍数信息;
根据所述温度信息、所述当前变焦倍数信息获得变焦透镜位移补偿值,和/或,根据控制聚焦透镜移动的电机的位置信息、所述当前变焦倍数信息获得当前物距信息并根据所述温度信息、所述当前变焦倍数信息、所述当前物距信息获得聚焦透镜位移补偿值。
在这一种实现方式中,是通过变焦倍数去映射变焦透镜距离成像面的距离,通过物距去映射聚焦透镜距离成像面的距离的。具体实现时,为了简化操作,可以只对聚焦透镜进行温度补偿,或者只对变焦透镜进行温度补偿。当然,为了提高成像质量,也可以同时考虑聚焦透镜和变焦透镜对光路的影响,同时 对聚焦透镜和变焦透镜进行温度补偿。
S403,根据获得的所述透镜目标移动位置控制对应的透镜移动到目标移动位置。
当所述透镜目标移动位置包括焦透镜目标移动位置和/或获得的聚焦透镜目标移动位置时,所述根据获得的所述透镜目标移动位置控制对应的透镜移动到目标移动位置包括:根据获得的聚焦透镜目标移动位置控制聚焦透镜移动到对应的目标移动位置;和/或,根据获得的变焦透镜目标移动位置控制变焦透镜移动到对应的目标移动位置。具体实现时,通过电机驱动器控制相应的透镜移动到对应的目标移动位置。
在本发明实施例提供的方法中,利用控制摄像机透镜移动的电机的位置信息以及所述温度信息获得透镜目标移动位置,并控制相应的透镜移动到相应的位置进行补偿,可以有效补偿摄像机由于温度变化引起的成像质量变化。由于技术方案并不依赖于较难获得的透镜相对于图像传感器的位置信息,而是利用较易获得的电机的位置信息、温度信息获得透镜目标移动位置,因此方法易于实现,可实施性高。
实施例五
参见图5,为本发明实施例提供的对摄像机进行温度补偿的方法第二实施例示意图。在这一实施例中,使用较易获得的电机位置信息映射透镜当前位置信息,并利用温度信息、透镜位置信息与透镜位移补偿值之间的对应关系获得透镜位移补偿值,然后根据透镜当前位置信息和透镜位移补偿值获得透镜目标位置信息,简化了操作,可实施性高。
S501,利用温度传感器获得所述摄像机的镜头的温度信息。
S502,根据控制聚焦透镜移动的电机的位置信息获得所述聚焦透镜的当前位置信息。
透镜位置与控制其移动的电机的位置往往具有对应关系,因此,可以通过较容易获得的电机的位置映射透镜的位置。具体实现时,也可以预先保存电机位置与透镜位置之间的对应关系,根据所述对应关系来获得透镜的当前位置。具体实现时,获取电机的位置信息的方式可以是非常灵活的。一般电机控制都会使用一个坐标信息映射电机的实际物理位置,因此可以获得电机的位置信息。例如,通过电机的转动圈数映射电机的当前位置。在一种可能的实现方式中,在电机开环控制下,可以由软件驱动实时记录电机当前位置,通过软件记录信息即可查到电机位置信息。在另外一种可能的实现方式中,电机闭环控制下,电机控制使用反馈器件(如霍尔传感器),通过查询相应反馈信息(如霍尔电压)即可获得电机相应位置。获得电机位置后,则可以通过预先保存的电机位置与透镜位置之间的对应关系,获得透镜的当前位置。根据控制聚焦透镜的电机的位置信息,则可以获得聚焦透镜的当前位置。
S503,根据控制变焦透镜移动的电机的位置信息获得所述变焦透镜的当前位置信息。
对应地,根据变控制聚焦透镜的电机的位置信息,则可以获得变焦透镜的当前位置。具体实现与步骤S502中的方法类似。
S504,根据所述温度信息、所述聚焦透镜的当前位置信息获得聚焦透镜位移补偿值。
其中,所述根据所述温度信息、所述聚焦透镜的当前位置信息获得聚焦透 镜位移补偿值包括:根据所述温度信息、所述聚焦透镜当前位置信息以及预先保存的温度信息、聚焦透镜位置信息与聚焦透镜位移补偿值之间的对应关系获得聚焦透镜位移补偿值。具体实现时,可以通过数据库保存温度信息、透镜位置信息与透镜位移补偿值之间的对应关系。如表1所示,其中focusPos1—focusPosn是聚焦透镜的位置信息,表内缺省部分是相应的位移补偿值。其中位移补偿值是通过实验或仿真得到的或镜头厂商提供的。获取补偿量的方法可以直接根据聚焦透镜及温度查表或插值得到。例如,当对应的聚焦透镜位置或温度未保存在表中或未查找到与之对应的数值,则可以通过插值的方法获取相应的位移补偿值,插值的方法可以为二维的线性插值方法。
表1
  …… 0℃ 10℃ 20℃ 30℃ ……
focusPos1            
focusPos2            
focusPos3            
……            
focusPosn            
S505,根据所述聚焦透镜当前位置信息和所述聚焦透镜位移补偿值获得聚焦透镜的目标移动位置。
将聚焦透镜当前位置信息和聚焦透镜位移补偿值相加则可以获得聚焦透镜的目标移动位置。需要说明的是,在步骤S504中获得的聚焦透镜位移补偿值可以是正值也可以是负值,用于表明透镜的移动方向。具体可以根据需要预先设定向具体哪个方向移动为正值,向哪个方向移动为负值。当然,也可以采取其他方式表示透镜的位移方向,在此不限定。
S506,根据所述温度信息、所述变焦透镜的当前位置信息获得变焦透镜位 移补偿值。
其中,所述根据所述温度信息、所述变焦透镜的当前位置信息获得变焦透镜位移补偿值包括:根据所述温度信息、所述变焦透镜当前位置信息以及预先保存的温度信息、变焦透镜位置信息与变焦透镜位移补偿值之间的对应关系获得变焦透镜位移补偿值。具体实现时,可以通过数据库保存温度信息、变焦透镜位置信息与变焦透镜位移补偿值之间的对应关系。如表2所示,其中zoomPos1—zoomPosn是变焦透镜的位置信息,表内缺省部分是相应的位移补偿值。其中位移补偿值是通过实验或仿真得到的或镜头厂商提供的。获取补偿量的方法可以直接根据变焦透镜位置信息及温度查表或插值得到。例如,当对应的变焦透镜位置或温度未保存在表中或未查找到与之对应的数值,则可以通过插值的方法获取相应的位移补偿值,插值的方法可以为二维的线性插值方法。
表2
  …… 0℃ 10℃ 20℃ 30℃ ……
zoomPos1            
zoomPos2            
zoomPos3            
……            
zoomPosn            
S507,根据所述变焦透镜当前位置信息和所述变焦透镜位移补偿值获得变焦透镜的目标移动位置。
将变焦透镜当前位置信息和变焦透镜位移补偿值相加则可以获得变焦透镜的目标移动位置。需要说明的是,在步骤S506中获得的变焦透镜位移补偿值可以是正值也可以是负值,用于表明透镜的移动方向。具体可以根据需要预 先设定向具体哪个方向移动为正值,向哪个方向移动为负值。当然,也可以采取其他方式表示透镜的位移方向,在此不限定。
S508,控制变焦透镜和聚焦透镜移动到对应的目标移动位置。
具体实现时,处理器通过电机驱动器控制变焦透镜移动到变焦透镜目标移动位置;处理器通过电机驱动器控制聚焦透镜移动到聚焦透镜目标移动位置。其中,所述电机驱动器可以是同一个电机驱动器,也可以是不同的电机驱动器。
需要说明的是,步骤S502至步骤S508之间并没有必然的先后执行顺序,本领域技术人员可以根据需要调整上述步骤的执行顺序,也可以让某几个步骤并行的执行,在此不限定。
在这一实施例中,在获取聚焦透镜和变焦透镜的当前位置时,利用了控制相应透镜的电机位置信息映射对应透镜距离成像面的距离,而无需依赖于透镜与成像面的绝对距离,由于电机位置信息比较容易获得,因此,提高了方法的可实施性与简便性。此外,本实施例提供的方法利用温度、透镜位置与位移补偿值之间的对应关系获得透镜位移补偿值,进而获得透镜目标移动位置,方法实现简单,也能够达到较高的精确度。此外,在这一实施例中,不仅考虑聚焦透镜对成像质量的影响,还考虑了变焦透镜对成像质量的影响,以保证在温度发生变化时维持图像较高的清晰度。
需要说明的是,本领域技术人员可以理解的是,在对变焦倍数不敏感的情况下,为了简化操作,也可以只对聚焦透镜进行位移补偿,也能够提高图像的清晰度。当然,也可以只对变焦透镜进行补偿,以补偿变焦倍数和清晰度的影响,但这种方式下,为了保持图像清晰度可能需要对变焦透镜做较大幅度的移动,会给操作者的操作体验带来一定影响。
实施例六
在本发明第六实施例中,与第五实施例不同的是,是通过温度、变焦倍数、位移补偿值的对应关系获得变焦透镜目标移动位置,是通过温度、变焦倍数、物距、位移补偿值的对应关系获得聚焦透镜目标移动位置的。
参见图6,为本发明实施例提供的对摄像机进行温度补偿的方法第三实施例示意图。
S601,利用温度传感器获得所述摄像机的镜头的温度信息。
S602,根据控制聚焦透镜移动的电机的位置信息获得所述聚焦透镜的当前位置信息。
透镜位置与控制其移动的电机的位置往往具有对应关系,因此,可以通过较容易获得的电机的位置映射透镜的位置。具体实现时,也可以预先保存电机位置与透镜位置之间的对应关系,根据所述对应关系来获得透镜的当前位置。具体实现时,获取电机的位置信息的方式可以是非常灵活的。一般电机控制都会使用一个坐标信息映射电机的实际物理位置,因此可以获得电机的位置信息。例如,通过电机的转动圈数映射电机的当前位置。在一种可能的实现方式中,在电机开环控制下,可以由软件驱动实时记录电机当前位置,通过软件记录信息即可查到电机位置信息。在另外一种可能的实现方式中,电机闭环控制下,电机控制使用反馈器件(如霍尔传感器),通过查询相应反馈信息(如霍尔电压)即可获得电机相应位置。获得电机位置后,则可以通过预先保存的电机位置与透镜位置之间的对应关系,获得透镜的当前位置。根据控制聚焦透镜的电机的位置信息,则可以获得聚焦透镜的当前位置。
S603,根据控制变焦透镜移动的电机的位置信息获得所述变焦透镜的当前位置信息。
对应地,根据变控制聚焦透镜的电机的位置信息,则可以获得变焦透镜的当前位置。具体实现与步骤S602中的方法类似。
S604,根据控制变焦透镜移动的电机的位置信息获得当前变焦倍数信息。
在本发明这一实施例中,将较难获取的变焦透镜相对图像传感器的位置信息转化为变焦倍数信息。如图7所示,变焦透镜距离成像面的距离不同,拍摄物体的放大倍数(即变焦倍数)不同,且存在一一对应的关系,因此可以通过容易得到的变焦倍数去映射变焦透镜距离成像面的距离。其中,图7中的D1、D2为变焦镜片距离成像面的距离;V1和V2为拍摄视场大小,其映射到了变焦倍数。其中,不同的距离对应不同的成像倍数,即D1与V1相对应,D2与V2相对应。而控制聚焦透镜移动的电机的位置信息又与变焦透镜与成像面的距离(即变焦透镜的位置信息)具有对应关系,因此可以通过控制变焦透镜移动的电机的位置信息获得变焦倍数信息,使用变焦倍数映射变焦透镜距离成像面的距离。具体实现时,可以预先建立控制聚焦透镜移动的电机的位置信息与变焦倍数信息的对应关系,通过当前电机位置信息即可获得对应的当前变焦倍数信息。
S605,根据所述温度信息、所述当前变焦倍数信息获得变焦透镜位移补偿值。
其中,所述根据所述温度信息、所述当前变焦倍数信息获得变焦透镜位移补偿值包括:根据所述温度信息、所述当前变焦倍数信息以及预先保存的温度信息、变焦倍数信息与变焦透镜位移补偿值之间的对应关系获得变焦透镜位移 补偿值。具体实现时,可以通过数据库保存温度信息、变焦倍数信息与变焦位移补偿值之间的对应关系。如表3所示,其中zoom1—zoomn是变焦倍数相关信息,表内缺省部分是相应的位移补偿值。其中位移补偿值是通过实验或仿真得到的或镜头厂商提供的。根据当前的变焦倍数及温度信息可以直接从表中查询补偿量,如果对应变焦倍数或温度不在表中,则通过插值的方法获取对应的补偿值,例如二维的线性插值。
表3
  …… 0℃ 10℃ 20℃ 30℃ ……
zoom1            
zoom2            
zoom3            
……            
zoomn            
S606,根据所述变焦透镜当前位置信息和所述变焦透镜位移补偿值获得变焦透镜的目标移动位置。
将变焦透镜当前位置信息和变焦透镜位移补偿值相加则可以获得变焦透镜的目标移动位置。需要说明的是,在步骤S605中获得的变焦透镜位移补偿值可以是正值也可以是负值,用于表明透镜的移动方向。具体可以根据需要预先设定向具体哪个方向移动为正值,向哪个方向移动为负值。当然,也可以采取其他方式表示透镜的位移方向,在此不限定。
S607,根据控制聚焦透镜移动的电机的位置信息、所述当前变焦倍数信息获得当前物距信息。
在本发明这一实施例中,将较难获取的聚焦透镜相对图像传感器的位置信息转化为物距信息。如图8所示,聚焦透镜距离成像面的距离不同,拍摄物体的最佳成像距离(物距)不同,且存在一一对应的关系,可以通过容易得到的 物距去映射聚焦透镜距离成像面的距离其中,图8中的D1、D2为聚焦镜片距离成像面的距离;L1和L2为物距。其中,不同的距离对应不同的物距,即D1与L1相对应,D2与L2相对应。具体实现时,建立聚焦透镜电机的位置信息、变焦倍数信息和物距信息三者的对应关系,知道其中2个信息即可求得第三个。对应到本发明,则是利用控制聚焦透镜移动的电机的位置信息、所述当前变焦倍数信息获得当前物距信息的。
S608,根据所述温度信息、所述当前变焦倍数信息、所述当前物距信息获得聚焦透镜位移补偿值。
其中,根据所述温度信息、所述当前变焦倍数信息、所述当前物距信息获得聚焦透镜位移补偿值包括:
根据所述温度信息、所述当前变焦倍数信息、所述当前物距信息以及预先保存的温度信息、变焦倍数信息、物距信息与聚焦透镜位移补偿值之间的对应关系获得聚焦透镜位移补偿值。具体实现时,可以通过数据库保存温度信息、变焦透镜位置信息与变焦透镜位移补偿值之间的对应关系。如图10所示,其中zoom1—zoomn是变焦倍数相关信息,objectDepth1—objectDepthn是物距信息,表内缺省部分是相应的补偿值,根据当前的变焦倍数、物距及温度信息可以直接从表中查询补偿量,如果对应变焦倍数、温度或物距不在表中,则通过插值的方法获取对应的补偿值。
S609,根据所述聚焦透镜当前位置信息和所述聚焦透镜位移补偿值获得聚焦透镜的目标移动位置。
将聚焦透镜当前位置信息和聚焦透镜位移补偿值相加则可以获得聚焦透镜的目标移动位置。需要说明的是,在步骤S608中获得的聚焦透镜位移补偿 值可以是正值也可以是负值,用于表明透镜的移动方向。具体可以根据需要预先设定向具体哪个方向移动为正值,向哪个方向移动为负值。当然,也可以采取其他方式表示透镜的位移方向,在此不限定。
S610,控制变焦透镜和聚焦透镜移动到对应的目标移动位置。
具体实现时,处理器通过电机驱动器控制变焦透镜移动到变焦透镜目标移动位置;处理器通过电机驱动器控制聚焦透镜移动到聚焦透镜目标移动位置。其中,所述电机驱动器可以是同一个电机驱动器,也可以是不同的电机驱动器。
需要说明的是,步骤S602至步骤S610之间并没有必然的先后执行顺序,本领域技术人员可以根据需要调整上述步骤的执行顺序,也可以让某几个步骤并行的执行,在此不限定。
在这一实施例中,在获取聚焦透镜和变焦透镜的当前位置时,利用了控变焦倍数映射变焦透镜距离成像面的距离,通过物距映射聚焦透镜距离成像面的距离,而无需依赖于透镜与成像面的绝对距离,由于电机位置信息、变焦倍数信息、物距信息比较容易获得,因此,提高了方法的可实施性与简便性。此外,在这一实施例中,不仅考虑聚焦透镜对成像质量的影响,还考虑了变焦透镜对成像质量的影响,以保证在温度发生变化时维持图像较高的清晰度。
实施例七
参见图9,为本发明实施例提供的对摄像机进行温度补偿的方法第四实施例示意图。
这一实施例与前一实施例不同的是,在某些应用场景下对变焦倍数音温度发生的微弱变化要求不高的情况下,为了简化操作,也可以只对聚焦透镜进行 位移补偿,也能够提高图像的清晰度。
S901,利用温度传感器获得所述摄像机的镜头的温度信息。
S902,根据控制聚焦透镜移动的电机的位置信息获得所述聚焦透镜的当前位置信息。
透镜位置与控制其移动的电机的位置往往具有对应关系,因此可以通过较容易获得的电机的位置映射透镜的位置。具体实现时,也可以预先保存电机位置与透镜位置之间的对应关系,根据所述对应关系来获得透镜的当前位置。具体实现时,获取电机的位置信息的方式可以是非常灵活的。一般电机控制都会使用一个坐标信息映射电机的实际物理位置,因此可以获得电机的位置信息。例如,通过电机的转动圈数映射电机的当前位置。在一种可能的实现方式中,在电机开环控制下,可以由软件驱动实时记录电机当前位置,通过软件记录信息即可查到电机位置信息。在另外一种可能的实现方式中,电机闭环控制下,电机控制使用反馈器件(如霍尔传感器),通过查询相应反馈信息(如霍尔电压)即可获得电机相应位置。获得电机位置后,则可以通过预先保存的电机位置与透镜位置之间的对应关系,获得透镜的当前位置。根据控制聚焦透镜的电机的位置信息,则可以获得聚焦透镜的当前位置。
S903,根据控制变焦透镜移动的电机的位置信息获得当前变焦倍数信息。
在本发明这一实施例中,将较难获取的变焦透镜相对图像传感器的位置信息转化为变焦倍数信息。如图7所示,变焦透镜距离成像面的距离不同,拍摄物体的放大倍数(即变焦倍数)不同,且存在一一对应的关系,因此可以通过容易得到的变焦倍数去映射变焦透镜距离成像面的距离。其中,图7中的D1、D2为变焦镜片距离成像面的距离;V1和V2为拍摄视场大小,其映射到了变 焦倍数。其中,不同的距离对应不同的成像倍数,即D1与V1相对应,D2与V2相对应。。而控制聚焦透镜移动的电机的位置信息又与变焦透镜与成像面的距离(即变焦透镜的位置信息)具有对应关系,因此可以通过控制变焦透镜移动的电机的位置信息获得变焦倍数信息,使用变焦倍数映射变焦透镜距离成像面的距离。具体实现时,可以预先建立控制聚焦透镜移动的电机的位置信息与变焦倍数信息的对应关系,通过当前电机位置信息即可获得对应的当前变焦倍数信息。
S904,根据控制聚焦透镜移动的电机的位置信息、所述当前变焦倍数信息获得当前物距信息。
在本发明这一实施例中,将较难获取的聚焦透镜相对图像传感器的位置信息转化为物距信息。如图8所示,聚焦透镜距离成像面的距离不同,拍摄物体的最佳成像距离(物距)不同,且存在一一对应的关系,可以通过容易得到的物距去映射聚焦透镜距离成像面的距离其中,图8中的D1、D2为聚焦镜片距离成像面的距离;L1和L2为物距。其中,不同的距离对应不同的物距,即D1与L1相对应,D2与L2相对应。具体实现时,建立聚焦透镜电机的位置信息、变焦倍数信息和物距信息三者的对应关系,知道其中2个信息即可求得第三个。对应到本发明,则是利用控制聚焦透镜移动的电机的位置信息、所述当前变焦倍数信息获得当前物距信息的。
S905,根据所述温度信息、所述当前变焦倍数信息、所述当前物距信息获得聚焦透镜位移补偿值。
其中,根据所述温度信息、所述当前变焦倍数信息、所述当前物距信息获得聚焦透镜位移补偿值包括:
根据所述温度信息、所述当前变焦倍数信息、所述当前物距信息以及预先保存的温度信息、变焦倍数信息、物距信息与聚焦透镜位移补偿值之间的对应关系获得聚焦透镜位移补偿值。如表4所示,其中zoom1—zoomn是变焦倍数相关信息,objectDepth1—objectDepthn是物距信息,表内缺省部分是相应的补偿值,根据当前的变焦倍数、物距及温度信息可以直接从表中查询补偿量,如果对应变焦倍数、温度或物距不在表中,则通过插值的方法获取对应的补偿值。
需要说明的是,与前一实施例不同的是,这里聚焦透镜的补偿值不仅包括聚焦透镜本身因温度引起的清晰度的变化,还包括变焦透镜因温度变化而引起图像清晰度的变化。这是因为,变焦透镜受温度影响后,不仅变焦倍数会发生变化,而且聚焦情况会发生变化。但是变焦倍数受影响较小,所以在对变焦倍数不是很敏感的情况下,可以直接只控制聚焦透镜做温度补偿即可。变焦透镜对清晰度的影响也可以通过聚焦透镜进行补偿。
S906,根据所述聚焦透镜当前位置信息和所述聚焦透镜位移补偿值获得聚焦透镜的目标移动位置。
将聚焦透镜当前位置信息和聚焦透镜位移补偿值相加则可以获得聚焦透镜的目标移动位置。需要说明的是,在步骤S905中获得的聚焦透镜位移补偿值可以是正值也可以是负值,用于表明透镜的移动方向。具体可以根据需要预先设定向具体哪个方向移动为正值,向哪个方向移动为负值。当然,也可以采取其他方式表示透镜的位移方向,在此不限定。
S907,控制聚焦透镜移动到聚焦透镜目标移动位置。
具体实现时,处理器通过电机驱动器控制聚焦透镜移动到聚焦透镜目标移 动位置。
在这一实施例中,在获取聚焦透镜的当前位置时,利用了物距映射聚焦透镜距离成像面的距离,而无需依赖于透镜与成像面的绝对距离,由于电机位置信息、变焦倍数信息、物距信息比较容易获得,因此,提高了方法的可实施性与简便性。此外,在这一实施例中,在对变焦倍数不敏感的情形下,简化了操作,仅用聚焦透镜的移动来对聚焦透镜和变焦透镜的位移引起的清晰度变化进行补偿,也能达到较好的效果。
需要说明的是,本领域技术人员可以理解,当然,也可以只对变焦透镜进行补偿,以补偿变焦倍数和清晰度的影响,但这种方式下,为了保持图像清晰度可能需要对变焦透镜做较大幅度的移动,会给操作者的操作体验带来一定影响。
需要说明的是,由于对方法实施例进行详细的阐述,对装置实施例的描述较为简单,本领域技术人员可以理解的是,可以参照方法实施例构造本发明的装置实施例。本领域技术人员在不付出创造性劳动下获取的其他实现方式均属于本发明的保护范围。
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括 所述要素的过程、方法、物品或者设备中还存在另外的相同要素。本发明可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践本发明,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置实施例而言,由于其基本相似于方法实施例,所以描述得比较简单,相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。以上所述仅是本发明的具体实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。

Claims (15)

  1. 一种对摄像机进行温度补偿的方法,其特征在于,所述方法包括:
    利用温度传感器获得所述摄像机的镜头的温度信息;
    根据控制摄像机透镜移动的电机的位置信息以及所述温度信息获得透镜目标移动位置;
    根据获得的所述透镜目标移动位置控制对应的透镜移动到目标移动位置。
  2. 根据权利要求1所述的方法,其特征在于,所述根据控制摄像机透镜移动的电机的位置信息以及所述温度信息获得透镜目标移动位置包括:
    根据控制摄像机透镜移动的电机的位置信息获得透镜当前位置信息;
    根据控制摄像机透镜移动的电机的位置信息、所述温度信息获得透镜位移补偿值;
    根据所述透镜当前位置信息和所述透镜位移补偿值获得透镜目标移动位置。
  3. 根据权利要求2所述的方法,其特征在于,所述根据控制摄像机透镜移动的电机的位置信息、所述温度信息获得透镜位移补偿值包括:
    根据控制透镜移动的电机的位置信息获得的透镜当前位置信息、所述温度信息获得透镜位移补偿值。
  4. 根据权利要求3所述的方法,其特征在于,所述根据控制透镜移动的电机的位置信息获得的透镜当前位置信息、所述温度信息获得透镜位移补偿值包括:
    根据所述温度信息、所述透镜当前位置信息以及预先保存的温度信息、透镜位置信息与透镜位移补偿值之间的对应关系获得透镜位移补偿值。
  5. 根据权利要求2所述的方法,其特征在于,所述根据控制摄像机透镜移动的电机的位置信息、所述温度信息获得透镜位移补偿值包括:
    根据控制变焦透镜移动的电机的位置信息获得当前变焦倍数信息;
    根据所述温度信息、所述当前变焦倍数信息获得变焦透镜位移补偿值,和/或,根据控制聚焦透镜移动的电机的位置信息、所述当前变焦倍数信息获得当前物距信息并根据所述温度信息、所述当前变焦倍数信息、所述当前物距信息获得聚焦透镜位移补偿值。
  6. 根据权利要求5所述的方法,其特征在于,所述根据所述温度信息、所述当前变焦倍数信息获得变焦透镜位移补偿值包括:
    根据所述温度信息、所述当前变焦倍数信息以及预先保存的温度信息、变焦倍数信息与变焦透镜位移补偿值之间的对应关系获得变焦透镜位移补偿值。
  7. 根据权利要求5所述的方法,其特征在于,所述根据控制聚焦透镜移动的电机的位置信息、所述当前变焦倍数信息获得当前物距信息并根据所述温度信息、所述当前变焦倍数信息、所述当前物距信息获得聚焦透镜位移补偿值包括:
    根据控制聚焦透镜移动的电机的位置信息、所述当前变焦倍数信息获得当前物距信息;
    根据所述温度信息、所述当前变焦倍数信息、所述当前物距信息以及预先保存的温度信息、变焦倍数信息、物距信息与聚焦透镜位移补偿值之间的对应关系获得聚焦透镜位移补偿值。
  8. 一种对摄像机进行温度补偿的装置,其特征在于,所述装置包括:
    温度采集单元,用于利用温度传感器获得所述摄像机的镜头的温度信息;
    处理单元,用于根据控制摄像机透镜移动的电机的位置信息以及所述温度信息获得透镜目标移动位置;
    控制单元,用于根据获得的所述透镜目标移动位置控制对应的透镜移动到目标移动位置。
  9. 根据权利要求8所述的装置,其特征在于,所述处理单元包括:
    当前位置信息获得单元,用于根据控制透镜移动的电机的位置信息获得透镜当前位置信息;
    位移补偿值获得单元,用于根据控制摄像机透镜移动的电机的位置信息、所述温度信息获得透镜位移补偿值;
    目标移动位置获得单元,用于根据所述透镜当前位置信息和所述透镜位移补偿值获得透镜目标移动位置。
  10. 根据权利要求9所述的装置,其特征在于,所述位移补偿值获得单元包括:
    第一位移补偿值获得单元,用于根据控制透镜移动的电机的位置信息获得的透镜当前位置信息、所述温度信息获得透镜位移补偿值。
  11. 根据权利要求9所述的装置,其特征在于,所述位移补偿值获得单元包括:
    变焦倍数信息获得单元,用于根据控制变焦透镜移动的电机的位置信息获得当前变焦倍数信息;
    变焦透镜位移补偿值获得单元,用于根据所述温度信息、所述当前变焦倍数信息获得变焦透镜位移补偿值;和/或,聚焦透镜位移补偿值获得单元,用于根据控制聚焦透镜移动的电机的位置信息、所述当前变焦倍数信息获得当前 物距信息并根据所述温度信息、所述当前变焦倍数信息、所述当前物距信息获得聚焦透镜位移补偿值。
  12. 一种摄像机,其特征在于,所述摄像机包括镜头、聚焦透镜、变焦透镜、温度传感器、处理器、电机驱动器,其中:
    所述温度传感器用于获得所述摄像机的镜头的温度信息;
    所述处理器用于根据控制摄像机透镜移动的电机的位置信息以及所述温度信息获得透镜目标移动位置;
    所述电机驱动器用于根据获得的所述透镜目标移动位置控制对应的透镜移动到目标移动位置。
  13. 根据权利要求12所述的摄像机,其特征在于,所述处理器具体用于:
    根据控制摄像机透镜移动的电机的位置信息获得透镜当前位置信息;根据控制摄像机透镜移动的电机的位置信息、所述温度信息获得透镜位移补偿值;根据所述透镜当前位置信息和所述透镜位移补偿值获得透镜目标移动位置。
  14. 根据权利要求13所述的摄像机,其特征在于,所述处理器具体用于:
    根据控制透镜移动的电机的位置信息获得的透镜当前位置信息、所述温度信息获得透镜位移补偿值。
  15. 根据权利要求13所述的摄像机,其特征在于,所述处理器具体用于:
    根据控制变焦透镜移动的电机的位置信息获得当前变焦倍数信息;根据所述温度信息、所述当前变焦倍数信息获得变焦透镜位移补偿值,和/或,根据控制聚焦透镜移动的电机的位置信息、所述当前变焦倍数信息获得当前物距信息并根据所述温度信息、所述当前变焦倍数信息、所述当前物距信息获得聚焦透镜位移补偿值。
PCT/CN2015/076095 2014-04-11 2015-04-08 一种对摄像机进行温度补偿的方法和装置 WO2015154676A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/290,785 US10048461B2 (en) 2014-04-11 2016-10-11 Method and apparatus for performing temperature compensation for camera

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410145736.8A CN104092933B (zh) 2014-04-11 2014-04-11 一种对摄像机进行温度补偿的方法和装置
CN201410145736.8 2014-04-11

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US15/290,785 Continuation US10048461B2 (en) 2014-04-11 2016-10-11 Method and apparatus for performing temperature compensation for camera

Publications (1)

Publication Number Publication Date
WO2015154676A1 true WO2015154676A1 (zh) 2015-10-15

Family

ID=51640613

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/076095 WO2015154676A1 (zh) 2014-04-11 2015-04-08 一种对摄像机进行温度补偿的方法和装置

Country Status (3)

Country Link
US (1) US10048461B2 (zh)
CN (1) CN104092933B (zh)
WO (1) WO2015154676A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112378540A (zh) * 2020-11-03 2021-02-19 上海艾为电子技术股份有限公司 一种镜头模组外部温度的测量方法、测量装置及电子设备

Families Citing this family (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104092933B (zh) * 2014-04-11 2017-12-05 华为技术有限公司 一种对摄像机进行温度补偿的方法和装置
US9664877B2 (en) * 2015-08-14 2017-05-30 Gopro, Inc. Prism-based focal plane adjustment for thermal compensation in a lens assembly
BR112018001321A2 (pt) 2015-08-17 2018-09-11 Cummins Filtration Ip, Inc. sistema de auto drenagem para um separador de água e combustível por vácuo e pressão laterais
KR102508248B1 (ko) * 2015-08-20 2023-03-08 삼성전자주식회사 중력 및 온도 센서를 이용한 카메라의 자동 초점 조절 방법, 카메라 제어 장치, 및 카메라 시스템
CN105242709B (zh) * 2015-11-01 2017-03-15 重庆工商职业学院 一种模具温度自适应控制方法
JP6602979B2 (ja) * 2016-07-11 2019-11-06 オリンパス株式会社 内視鏡装置
CN107111095A (zh) * 2016-09-05 2017-08-29 深圳市大疆创新科技有限公司 镜头模组
US20180149826A1 (en) * 2016-11-28 2018-05-31 Microsoft Technology Licensing, Llc Temperature-adjusted focus for cameras
US10802244B2 (en) 2017-06-30 2020-10-13 Semiconductor Components Industries, Llc Methods and apparatus for focus control in an imaging system
US10162149B1 (en) * 2017-06-30 2018-12-25 Semiconductor Components Industries, Llc Methods and apparatus for focus control in an imaging system
CN107942601A (zh) * 2017-12-25 2018-04-20 天津天地伟业电子工业制造有限公司 一种基于温度补偿的步进电机镜头聚焦方法
JP7086755B2 (ja) * 2018-06-29 2022-06-20 キヤノン株式会社 レンズ装置および撮像装置
CN109218624B (zh) * 2018-11-15 2020-10-13 中国科学院光电技术研究所 一种光电跟踪系统的温度调焦补偿方法
CN109391776B (zh) * 2018-12-07 2020-11-24 中国航空工业集团公司洛阳电光设备研究所 一种用于光电吊舱连续变焦红外组件的调焦补偿控制方法
CN109871219A (zh) * 2019-01-04 2019-06-11 信利光电股份有限公司 一种摄像头的高低温烧录方法及系统
CN111722355A (zh) * 2019-03-19 2020-09-29 杭州海康微影传感科技有限公司 基于温度补偿对热成像镜头进行调焦的方法和装置
CN112147755B (zh) * 2019-06-27 2022-01-14 华为技术有限公司 光学镜头组、摄像头及终端设备
WO2021072648A1 (en) * 2019-10-15 2021-04-22 Qualcomm Incorporated Active depth sensing based autofocus
CN111077624A (zh) * 2019-12-13 2020-04-28 中国航空工业集团公司洛阳电光设备研究所 一种连续变焦红外热像仪自动温补调焦控制方法
WO2021189404A1 (zh) * 2020-03-27 2021-09-30 深圳市大疆创新科技有限公司 温漂系数补偿方法、装置、镜头、成像装置和可移动平台
CN112099181B (zh) * 2020-11-20 2021-04-30 基合半导体(宁波)有限公司 镜头驱动装置及摄像装置
WO2022250600A1 (en) * 2021-05-26 2022-12-01 Acuvi Ab Control system for optical zoom and focus for miniature camera modules
CN114415329A (zh) * 2021-12-23 2022-04-29 山东神戎电子股份有限公司 一种改善长焦镜头聚焦清晰点位置偏移的方法
CN114466136B (zh) * 2022-01-10 2023-08-08 浙江大华技术股份有限公司 聚焦方法、装置、摄像机和存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050099523A1 (en) * 2003-11-06 2005-05-12 Canon Kabushiki Kaisha Image sensing apparatus, control method therefor, program, and storage medium
CN101197938A (zh) * 2006-12-07 2008-06-11 Lg电子株式会社 根据温度控制摄像机的装置和方法
CN103389559A (zh) * 2013-08-01 2013-11-13 山东神戎电子股份有限公司 基于温度变化补偿的红外镜头及补偿方法
CN104092933A (zh) * 2014-04-11 2014-10-08 华为技术有限公司 一种对摄像机进行温度补偿的方法和装置

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3017250B2 (ja) * 1990-06-11 2000-03-06 オリンパス光学工業株式会社 カメラの温度補正装置
JPH07248445A (ja) * 1994-03-14 1995-09-26 Sony Corp ズームレンズ装置
CN100555016C (zh) 2005-09-09 2009-10-28 鸿富锦精密工业(深圳)有限公司 数码相机镜头及应用该镜头的数码相机模组
US7697218B2 (en) * 2007-12-26 2010-04-13 Canon Kabushiki Kaisha Lens control apparatus, lens barrel, imaging apparatus, and optical apparatus
WO2013031227A1 (ja) * 2011-09-01 2013-03-07 パナソニック株式会社 撮像装置およびプログラム
US8837931B2 (en) * 2012-09-28 2014-09-16 Axis Ab Trend-based temperature compensation for a monitoring device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050099523A1 (en) * 2003-11-06 2005-05-12 Canon Kabushiki Kaisha Image sensing apparatus, control method therefor, program, and storage medium
CN101197938A (zh) * 2006-12-07 2008-06-11 Lg电子株式会社 根据温度控制摄像机的装置和方法
CN103389559A (zh) * 2013-08-01 2013-11-13 山东神戎电子股份有限公司 基于温度变化补偿的红外镜头及补偿方法
CN104092933A (zh) * 2014-04-11 2014-10-08 华为技术有限公司 一种对摄像机进行温度补偿的方法和装置

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112378540A (zh) * 2020-11-03 2021-02-19 上海艾为电子技术股份有限公司 一种镜头模组外部温度的测量方法、测量装置及电子设备

Also Published As

Publication number Publication date
US10048461B2 (en) 2018-08-14
CN104092933B (zh) 2017-12-05
CN104092933A (zh) 2014-10-08
US20170031128A1 (en) 2017-02-02

Similar Documents

Publication Publication Date Title
WO2015154676A1 (zh) 一种对摄像机进行温度补偿的方法和装置
KR102143456B1 (ko) 심도 정보 취득 방법 및 장치, 그리고 이미지 수집 디바이스
EP3676802B1 (en) Image processing device that utilizes built-in dynamic camera models to support rapid determination of camera intrinsics and method of operating same
US9335622B2 (en) Information processing device and information processing system
WO2018142496A1 (ja) 三次元計測装置
US10063792B1 (en) Formatting stitched panoramic frames for transmission
CN103090846A (zh) 一种测距装置、测距系统及其测距方法
JP6535524B2 (ja) 撮像装置
CN103778640B (zh) 一种基于微球靶标的物方远心显微视觉系统标定方法
JP6702765B2 (ja) 焦点調節装置およびその制御方法、撮像装置、プログラム、記憶媒体
CN103475820B (zh) 一种摄像机中pi位置校正方法及系统
WO2020181409A1 (zh) 拍摄装置参数标定方法、设备及存储介质
JP6357646B2 (ja) 撮像装置
CN104268863A (zh) 一种变倍校正方法和设备
Lin et al. Real-time low-cost omni-directional stereo vision via bi-polar spherical cameras
WO2015071174A1 (en) Controlled long-exposure imaging of a celestial object
CN104811688B (zh) 图像获取装置及其图像形变检测方法
JP5925109B2 (ja) 画像処理装置、その制御方法、および制御プログラム
KR101854355B1 (ko) 다중센서를 선택적으로 이용하는 영상보정 장치
Qian et al. Image distortion correction for single-lens stereo vision system employing a biprism
US10529084B2 (en) Image processing method, electronic device, and non-transitory computer readable storage medium
CN109891872A (zh) 用于成像设备的图像稳定化控制设备
JP2017163386A (ja) カメラパラメータ推定装置、カメラパラメータ推定方法、及びプログラム
JP2014103490A (ja) ロボットカメラ制御装置、そのプログラム及び多視点ロボットカメラシステム
JP6457775B2 (ja) 3次元形状計測装置及び3次元形状計測方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15776391

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15776391

Country of ref document: EP

Kind code of ref document: A1